:root {
    --cobach-blue: #082b54;
    --cobach-blue-dark: #051c35;
    --cobach-blue-light: #164f83;
    --cobach-red: #b4202a;
    --cobach-red-dark: #941922;
    --white: #ffffff;
    --background: #ffffff;
    --background-soft: #f4f7fa;
    --text: #263442;
    --muted: #667586;
    --border: #e4eaf0;
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 8px 24px rgba(8, 43, 84, .08);
    --shadow: 0 20px 50px rgba(8, 43, 84, .13);
    --container: 1200px;
}

/* =========================================
   01. RESET
========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* =========================================
   02. CONTAINER
========================================= */
.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

/* =========================================
   03. TOPBAR
========================================= */
.topbar {
    background: var(--cobach-blue-dark);
    color: rgba(255, 255, 255, .86);
    font-size: .84rem;
}

.topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.topbar-contact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-separator {
    color: rgba(255, 255, 255, .35);
}

/* =========================================
   04. HEADER
========================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
}

.brand-mark {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 13px;
    overflow: hidden;
}

.brand-logo {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.brand-title {
    color: var(--cobach-blue);
    font-size: 1.07rem;
    font-weight: 900;
    line-height: 1;
}

.brand-subtitle {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 650;
}

/* Compatibilidad con navegación simple previa */
.main-navigation {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 3px;
}

.nav-link {
    padding: 10px;
    border-radius: 9px;
    font-size: .89rem;
    font-weight: 650;
    transition: background .2s ease, color .2s ease;
}

.nav-link:hover {
    color: var(--cobach-blue);
    background: #eef4f8;
}

.nav-portal {
    margin-left: 8px;
    padding: 11px 17px;
    border-radius: 11px;
    color: var(--white);
    background: var(--cobach-red);
    font-size: .87rem;
    font-weight: 850;
    box-shadow: 0 9px 22px rgba(180, 32, 42, .20);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 10px;
    border: 0;
    border-radius: 11px;
    background: #eef3f7;
}

.mobile-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    background: var(--cobach-blue);
    border-radius: 4px;
}

/* =========================================
   05. HERO
========================================= */
.hero {
    min-height: 650px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 70px 0 120px;
    color: var(--white);
    background:
        radial-gradient(circle at 85% 10%, rgba(255,255,255,.13), transparent 27%),
        linear-gradient(125deg, #051c35 0%, #092f59 47%, #155287 100%);
}

.hero::before {
    content: "";
    position: absolute;
    width: 540px;
    height: 540px;
    right: -240px;
    bottom: -300px;
    border-radius: 50%;
    background: rgba(180, 32, 42, .33);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
    gap: 60px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    padding: 8px 15px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .03em;
}

.hero h1 {
    max-width: 790px;
    margin: 24px 0 20px;
    color: var(--white);
    font-size: clamp(2.8rem, 5vw, 5.1rem);
    line-height: .98;
    letter-spacing: -.048em;
}

.hero-description {
    max-width: 690px;
    margin: 0;
    color: rgba(255,255,255,.86);
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    position: relative;
    z-index: 10;
}

.button {
    min-height: 50px;
    padding: 0 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 11px;
    font-weight: 820;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-arrow {
    font-size: 1.05rem;
    transition: transform .2s ease;
}

.button:hover .button-arrow {
    transform: translateX(4px);
}

.button-primary {
    color: var(--white);
    background: linear-gradient(135deg, #c8202f, #ab1824);
    box-shadow: 0 12px 28px rgba(180,32,42,.30);
}

.button-primary:hover {
    background: linear-gradient(135deg, #d32636, #b71926);
}

.button-light {
    color: var(--cobach-blue);
    background: var(--white);
    box-shadow: 0 10px 26px rgba(0,0,0,.12);
}

.hero-info-card {
    padding: 28px;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 24px;
    background: rgba(255,255,255,.09);
    backdrop-filter: blur(15px);
    box-shadow: 0 25px 70px rgba(0,0,0,.18);
}

.hero-card-label {
    color: rgba(255,255,255,.67);
    font-size: .78rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.hero-info-card h2 {
    margin: 8px 0 24px;
    color: var(--white);
    font-size: 1.55rem;
}

.hero-info-card h2 span {
    display: block;
    margin-top: 4px;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,.73);
}

.institution-data {
    display: grid;
}

.institution-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.institution-item:last-child {
    border-bottom: 0;
}

.institution-label {
    display: block;
    margin-bottom: 5px;
    color: rgba(255,255,255,.61);
    font-size: .78rem;
}

.institution-item strong {
    font-size: .98rem;
}

/* =========================================
   06. QUICK LINKS
========================================= */
.quick-links {
    position: relative;
    z-index: 20;
    margin-top: -62px;
    padding-bottom: 15px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 22px 55px rgba(8,43,84,.14);
}

.quick-card {
    min-height: 185px;
    padding: 25px 26px;
    border: 0;
    border-right: 1px solid var(--border);
    border-radius: 0;
    background: var(--white);
    box-shadow: none;
    transition: background .2s ease;
}

.quick-card:last-child {
    border-right: 0;
}

.quick-card:hover {
    background: #f8fafc;
}

.quick-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #edf4f9;
    font-size: 1.3rem;
}

.quick-card h3 {
    margin: 16px 0 6px;
    color: var(--cobach-blue);
    font-size: 1.05rem;
}

.quick-card p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.55;
}

.quick-card a,
.quick-card .quick-link-action {
    display: inline-flex;
    margin-top: 14px;
    color: var(--cobach-red);
    font-size: .86rem;
    font-weight: 850;
}

/* =========================================
   07. SECTIONS
========================================= */
.section {
    padding: 90px 0;
}

.quick-links + .section {
    padding-top: 105px;
}

.section-soft {
    background: var(--background-soft);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 42px;
}

.section-eyebrow,
.cta-eyebrow {
    color: var(--cobach-red);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .13em;
}

.section-heading h2 {
    margin: 10px 0 14px;
    color: var(--cobach-blue);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.1;
    letter-spacing: -.035em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
    font-size: 1rem;
}

/* =========================================
   08. INSTITUTION FEATURES
========================================= */
.institution-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.feature-card {
    min-height: 300px;
    position: relative;
    padding: 34px 30px 30px;
    overflow: hidden;
    border: 1px solid #d9e3ed;
    border-radius: 18px;
    background: var(--white);
    transition: transform .25s ease, box-shadow .25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(8,43,84,.12);
}

.feature-badge {
    position: absolute;
    top: -1px;
    left: 30px;
    width: 54px;
    height: 62px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 13px;
    color: white;
    background: var(--cobach-blue);
    font-size: 1.05rem;
    font-weight: 900;
    z-index: 5;
    clip-path: polygon(0 0, 100% 0, 100% 76%, 50% 100%, 0 76%);
}

.feature-badge-red {
    background: linear-gradient(180deg, #c81e2e, #a51321);
}

.feature-card-primary {
    color: white;
    border: 3px solid rgba(255,255,255,.78);
    outline: 3px solid #0b4c8a;
    background:
        radial-gradient(circle at 30% 10%, rgba(28,111,185,.55), transparent 44%),
        linear-gradient(135deg, #062b55 0%, #06427d 53%, #062c56 100%);
    box-shadow: 0 17px 35px rgba(4,47,91,.30);
}

.feature-card-primary:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 48px rgba(4,47,91,.38);
}

.feature-primary-content {
    min-height: 230px;
    padding-top: 45px;
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 25px;
    align-items: center;
}

.feature-secondary-content {
    min-height: 230px;
    padding-top: 68px;
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 20px;
    align-items: start;
}

.feature-copy h3 {
    margin: 0 0 11px;
    color: var(--cobach-blue);
    font-size: 1.12rem;
}

.feature-copy p {
    margin: 0;
    color: var(--muted);
    font-size: .94rem;
    line-height: 1.75;
}

.feature-card-primary .feature-copy h3 {
    color: var(--white);
}

.feature-card-primary .feature-copy p {
    color: rgba(255,255,255,.88);
}

.feature-accent {
    width: 42px;
    height: 3px;
    margin-bottom: 17px;
    border-radius: 100px;
    background: var(--cobach-red);
}

.feature-icon {
    width: 95px;
    height: 95px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: white;
    border: 1px solid #dae4ec;
    font-size: 2.5rem;
    box-shadow: 0 11px 26px rgba(8,43,84,.10);
}

.feature-icon-large {
    width: 125px;
    height: 125px;
    font-size: 3.7rem;
}

.feature-dots {
    position: absolute;
    left: 22px;
    bottom: 18px;
    width: 100px;
    display: grid;
    grid-template-columns: repeat(6, 7px);
    gap: 7px;
    opacity: .30;
}

.feature-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2293d4;
}

/* =========================================
   09. SERVICES
========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    min-height: 235px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    border: 1px solid #dce4ec;
    border-radius: 17px;
    background: var(--white);
    transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.service-tag {
    align-self: flex-start;
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--cobach-red);
    background: #fbebed;
    font-size: .72rem;
    font-weight: 800;
}

.service-card h3 {
    margin: 17px 0 9px;
    color: var(--cobach-blue);
}

.service-card p {
    flex: 1;
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.68;
}

.service-card a {
    margin-top: auto;
    color: var(--cobach-blue);
    font-size: .88rem;
    font-weight: 850;
}

/* =========================================
   10. CTA
========================================= */
.portal-cta {
    padding: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    border-radius: var(--radius-lg);
    color: var(--white);
    background: linear-gradient(125deg, var(--cobach-blue-dark), var(--cobach-blue-light));
    box-shadow: var(--shadow);
}

.portal-cta h2 {
    margin: 8px 0;
    color: var(--white);
    font-size: 2rem;
}

.portal-cta p {
    max-width: 600px;
    margin: 0;
    color: rgba(255,255,255,.72);
}

/* =========================================
   11. FOOTER
========================================= */
.site-footer {
    margin-top: 40px;
    padding: 60px 0 25px;
    color: var(--white);
    background: var(--cobach-blue-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 45px;
}

.footer-brand {
    margin-bottom: 14px;
    font-size: 1.3rem;
    font-weight: 900;
}

.footer-description {
    max-width: 330px;
}

.site-footer p {
    color: rgba(255,255,255,.63);
    line-height: 1.6;
}

.site-footer h3 {
    margin: 0 0 16px;
    font-size: .95rem;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: rgba(255,255,255,.63);
    font-size: .88rem;
    transition: color .2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    margin-top: 46px;
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,.11);
    color: rgba(255,255,255,.49);
    font-size: .82rem;
}

/* =========================================
   12. TABLET
========================================= */
@media (max-width: 1050px) {
    .main-navigation {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .hero {
        min-height: auto;
        padding: 100px 0 120px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-info-card {
        max-width: 600px;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-card:nth-child(2) {
        border-right: 0;
    }

    .quick-card:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }

    .institution-grid {
        grid-template-columns: 1fr 1fr;
    }

    .feature-card-primary {
        grid-column: 1 / -1;
    }

    .feature-primary-content {
        grid-template-columns: 120px 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================
   FEATURE PREMIUM — FORMACIÓN ACADÉMICA
========================================================== */

.feature-card-primary {
    position: relative;

    min-height: 320px;

    padding: 38px 34px;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,.35);

    outline: none;

    border-radius: 22px;

    background:
        radial-gradient(
            circle at 12% 20%,
            rgba(41,137,216,.55),
            transparent 35%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(0,144,216,.20),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #06284d 0%,
            #063f77 48%,
            #062a52 100%
        );

    box-shadow:
        0 22px 52px
        rgba(4, 40, 76, .30);
}

.feature-card-primary::before {
    content: "";

    position: absolute;

    width: 240px;
    height: 240px;

    right: -100px;
    top: -110px;

    border-radius: 50%;

    border:
        35px solid
        rgba(255,255,255,.035);
}

.feature-card-primary::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: -70px;
    bottom: -100px;

    border-radius: 50%;

    background:
        rgba(180,32,42,.15);
}

.feature-card-primary .feature-copy {
    position: relative;

    z-index: 3;
}

.feature-card-primary .feature-copy h3 {
    margin: 0 0 12px;

    color: #ffffff;

    font-size: 1.42rem;
    font-weight: 850;

    letter-spacing: -.02em;
}

.feature-card-primary .feature-copy p {
    color:
        rgba(255,255,255,.84);

    font-size: .97rem;

    line-height: 1.75;
}

.feature-card-primary .feature-accent {
    width: 50px;

    background:
        linear-gradient(
            90deg,
            #d42132,
            #f05a67
        );
}

.feature-card-primary .feature-icon {
    position: relative;

    z-index: 3;

    border:
        5px solid
        rgba(255,255,255,.85);

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #eef6fb
        );

    box-shadow:
        0 18px 35px
        rgba(0,0,0,.22);
}

.feature-card-primary .feature-badge {
    box-shadow:
        0 8px 18px
        rgba(0,0,0,.18);
}

.feature-card-primary:hover {
    transform:
        translateY(-7px)
        scale(1.008);

    box-shadow:
        0 30px 65px
        rgba(4,40,76,.38);
}


/* =========================================
   13. MOBILE
========================================= */
@media (max-width: 650px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .topbar {
        display: none;
    }

    .header-inner {
        min-height: 70px;
    }

    .brand-mark {
        width: 44px;
        height: 44px;
        font-size: .68rem;
    }

    .hero {
        padding:
            70px 0
            155px;
    }

    .hero h1 {
        font-size: 2.55rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .quick-links {
        margin-top: -72px;
    }

    .quick-grid,
    .institution-grid,
    .services-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .quick-card {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .quick-card:last-child {
        border-bottom: 0;
    }

    .section {
        padding: 65px 0;
    }

    .quick-links + .section {
        padding-top: 85px;
    }

    .feature-card-primary {
        grid-column: auto;
    }

    .feature-card {
        min-height: auto;
    }

    .feature-primary-content,
    .feature-secondary-content {
        min-height: 0;
        grid-template-columns: 1fr;
        padding-top: 62px;
    }

    .feature-icon,
    .feature-icon-large {
        width: 92px;
        height: 92px;
        font-size: 2.6rem;
    }

    .feature-dots {
        display: none;
    }

    .portal-cta {
        padding: 30px;
        flex-direction: column;
        align-items: stretch;
    }

    .portal-cta h2 {
        font-size: 1.65rem;
    }

    .footer-bottom {
        flex-direction: column;
    }
    
    
/* ==========================================================
   FOOTER - IDENTIDAD INSTITUCIONAL
========================================================== */

.footer-institution {
    max-width: 330px;
}


/* Logo + nombre */

.footer-brand {
    display: inline-flex;
    align-items: center;

    gap: 16px;

    margin-bottom: 20px;

    color: #ffffff;

    text-decoration: none;
}


/* Imagen institucional */

.footer-logo {
    display: block;

    width: 82px;
    height: 82px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 18px;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, .20);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


.footer-brand:hover .footer-logo {
    transform: translateY(-3px);

    box-shadow:
        0 14px 32px rgba(0, 0, 0, .26);
}


    /* Nombre */
    
    .footer-brand-text {
        display: flex;
        flex-direction: column;
    
        line-height: 1.15;
    }
    
    
    .footer-brand-text strong {
        color: #ffffff;
    
        font-size: 1.15rem;
        font-weight: 850;
    
        letter-spacing: .01em;
    }
    
    
    .footer-brand-text span {
        margin-top: 5px;
    
        color: rgba(255, 255, 255, .72);
    
        font-size: .84rem;
        font-weight: 600;
    }
    
    
    /* Descripción */
    
    .footer-description {
        max-width: 310px;
    
        margin:
            0 0
            20px;
    
        color: rgba(255, 255, 255, .68);
    
        line-height: 1.7;
    }
    
    
    /* Datos institucionales */
    
    .footer-institution-data {
        display: flex;
        flex-direction: column;
    
        gap: 8px;
    }
    
    
    .footer-institution-data p {
        margin: 0;
    
        display: flex;
        align-items: center;
    
        gap: 7px;
    
        font-size: .82rem;
    }
    
    
    .footer-institution-data p span {
        color: rgba(255, 255, 255, .48);
    }
    
    
    .footer-institution-data p strong {
        color: rgba(255, 255, 255, .82);
    
        font-weight: 650;
    }
    
    
    /* ==========================================================
       RESPONSIVE
    ========================================================== */
    
    @media (max-width: 600px) {
    
        .footer-institution {
            max-width: 100%;
        }
    
        .footer-brand {
            gap: 13px;
        }
    
        .footer-logo {
            width: 68px;
            height: 68px;
    
            border-radius: 15px;
        }
    
        .footer-brand-text strong {
            font-size: 1rem;
        }
    
        .footer-brand-text span {
            font-size: .78rem;
        }
    
    }
}