/* Custom Local Fonts Load */
@font-face {
    font-family: 'MessinaSans-Black';
    src: url('../../_assets/fonts/MessinaSans-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MessinaSans-Bold';
    src: url('../../_assets/fonts/MessinaSans-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MessinaSans-Regular';
    src: url('../../_assets/fonts/MessinaSans-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MessinaSerif-Light';
    src: url('../../_assets/fonts/MessinaSerif-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-fancy: 'MessinaSans-Black', sans-serif;
    --font-body: 'MessinaSans-Regular', sans-serif;
    --font-book: 'MessinaSerif-Light', serif;
    --font-display: 'MessinaSans-Bold', sans-serif;

    --heading-1: clamp(3.5rem, 2rem + 5vw, 7.5rem);
    --heading-1-alt: clamp(2.5rem, 1.8rem + 2.5vw, 5rem);
    --heading-5: clamp(1.13rem, 1.004rem + 0.63vw, 1.57rem);
    --giant-letter-color: var(--accent);
}

/* ============================================================
   NOISE TEXTURE OVERLAY
   ============================================================ */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.6;
    mix-blend-mode: normal;
}

.noise-overlay svg {
    width: 100%;
    height: 100%;
}


*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: clip;
}

.body-editorial {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg-gradient);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.hide-mobile { display: none; }
@media (min-width: 640px) { .hide-mobile { display: block; } }

/* ============================================================
   NAVIGATION
   ============================================================ */
.top-nav {
    position: absolute;
    top: 0; left: 0; width: 100%;
    z-index: 100;
    transform: translateY(-100%);
    will-change: transform;
    background: transparent;
}

.nav-container {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 3% 0 3%;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-ucv {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.logo-posgrado {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.logo-ucv + .logo-posgrado {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 16px;
}

.logo-sgi {
    height: 44px;
    width: auto;
    object-fit: contain;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 16px;
    filter: brightness(0) invert(1);
}

.logo-sunedu {
    height: 28px;
    width: auto;
    object-fit: contain;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 16px;
}

.nav-status-text {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-light);
    text-transform: uppercase;
    line-height: 1.4;
    text-align: center;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-inline-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 24px;
}

.roll-link {
    display: inline-block;
    height: 1.4em;
    overflow: hidden;
    vertical-align: top;
    position: relative;
    font-size: clamp(1rem, 0.85rem + 0.4vw, 1.35rem);
    font-weight: 600;
    color: var(--text);
}

.roll-container {
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.roll-link:hover .roll-container {
    transform: translateY(-50%);
}

.roll-primary, .roll-secondary {
    display: block;
    line-height: 1.4;
    font-family: var(--font-display);
}

.roll-secondary {
    color: var(--accent);
}

/* ============================================================
   STICKY NAV BAR (burger + CTA)
   ============================================================ */
.sticky-nav-bar {
    position: fixed;
    right: 28px;
    top: 28px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: scale(0);
    transform-origin: center right;
    will-change: transform;
}

/* CTA pill button */
.nav-cta-pill {
    display: inline-flex;
    align-items: center;
    padding: 0 22px;
    height: 56px;
    background: var(--accent);
    color: var(--bg) !important;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 34, 65, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.nav-cta-pill:hover {
    background-color: var(--accent-light);
    transform: scale(1.05);
    color: #ffffff !important;
}

@media (min-width: 1024px) {
    .nav-cta-pill {
        height: 72px;
        padding: 0 30px;
        font-size: 13px;
    }
}

/* Burger button (ya no necesita position:fixed propio) */
.burger-btn-wrapper {
    transform-origin: center;
    will-change: transform;
}


.burger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    cursor: pointer;
    border-radius: 50%;
    background-color: var(--accent-light);
    box-shadow: 0 4px 20px rgba(0, 34, 65, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.burger-btn:hover {
    background-color: black;
    transform: scale(1.05);
}

@media (min-width: 1024px) {
    .burger-btn {
        width: 72px;
        height: 72px;
    }
}

#magnetoText {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#magnetoText::before,
#magnetoText::after {
    width: 24px;
    content: '';
    display: block;
    height: 2px;
    position: relative;
    background-color: var(--white);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1024px) {
    #magnetoText::before,
    #magnetoText::after {
        width: 30px;
    }
}

#magnetoText::before {
    top: 4px;
}

#magnetoText::after {
    top: -4px;
}

/* Active State (X conversion) */
.burger-btn.active #magnetoText::before {
    transform: rotate(-45deg);
    top: 1px;
}

.burger-btn.active #magnetoText::after {
    transform: rotate(45deg);
    top: -1px;
}

/* ============================================================
   SLIDE-OUT MENU DRAWER
   ============================================================ */
.navbar-overlay-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 9997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-overlay-bg.active {
    opacity: 1;
    pointer-events: auto;
}

.nav-slide-panel {
    position: fixed;
    top: 1vh;
    right: 0;
    width: 100%;
    height: 98vh;
    z-index: 9998;
    background: var(--bg-gradient, var(--bg));
    color: var(--white);
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    padding: 30px;
    transform: translateX(101%);
    will-change: transform;
    user-select: none;
    outline: none;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

@media (max-width: 639px) {
    .nav-slide-panel {
        width: 98%;
        right: 1%;
        border-radius: 16px;
    }
}

@media (min-width: 640px) {
    .nav-slide-panel {
        width: 60%;
        padding: 60px;
    }
}

@media (min-width: 1024px) {
    .nav-slide-panel {
        width: 40%;
        padding: 80px;
    }
}

.circles-bg {
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.slide-panel-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

.slide-panel-top {
    margin-top: 40px;
}

@media (min-width: 768px) {
    .slide-panel-top {
        margin-top: 80px;
    }
}

.slide-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.slide-nav-links li {
    overflow: hidden;
}

.slide-nav-item {
    display: inline-flex;
    align-items: center;
    color: var(--white);
    font-size: clamp(2rem, 1.5rem + 2.5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none !important;
    transform: translateY(120%);
    will-change: transform;
    transition: color 0.3s ease;
}

.slide-dot {
    width: 12px;
    height: 12px;
    background-color: var(--white);
    border-radius: 50%;
    margin-right: 16px;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    display: inline-block;
}

.slide-nav-item p {
    font-family: var(--font-fancy);
    transform: translateX(-28px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 0;
    display: inline-block;
}

.slide-nav-item:hover {
    color: var(--accent-light);
}

.slide-nav-item:hover .slide-dot {
    transform: scale(1);
    opacity: 1;
    background-color: var(--accent-light);
}

.slide-nav-item:hover p {
    transform: translateX(0);
}

.slide-panel-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slide-info-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-light);
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.slide-email {
    font-size: clamp(1.2rem, 1rem + 1vw, 2rem);
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.slide-email:hover {
    color: var(--accent-light);
}

.slide-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.slide-social-btn {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid rgba(244, 244, 241, 0.2);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #F4F4F1;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(15px);
}

.slide-social-btn:hover {
    background-color: var(--white);
    color: var(--accent);
    border-color: var(--white);
}

/* ============================================================
   HERO — Sticky + Scroll Parallax (like portfolio)
   ============================================================ */
.hero-sticky-wrapper {
    margin-bottom: -100vh;
    padding: 0;
}

.hero-editorial {
    position: sticky;
    top: 0;
    display: flex;
    min-height: 100svh;
    width: 100%;
    align-items: flex-end;
    padding-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    padding-top: clamp(4rem, 3rem + 3vw, 8rem);
    padding-left: 3%;
    padding-right: 3%;
    background: var(--bg-gradient);
    will-change: transform, opacity;
}

/* Mobile: centra el contenido verticalmente para evitar espacio vacío en celulares largos */
@media (max-width: 639px) {
    .hero-editorial {
        padding-top: 4.5rem;
        padding-bottom: 1.5rem;
        align-items: center;
    }
}

/* Short viewports (e.g. 1366x768 laptops) */
@media (max-height: 800px) and (min-width: 1024px) {
    .hero-editorial {
        padding-top: 6.5rem;
        padding-bottom: 1.5rem;
        align-items: flex-end;
    }
    .hero-name-row {
        margin-bottom: -0.5rem;
    }
    /* Title at 1366x768: 6vw = ~82px — bold and large */
    .giant-letter {
        font-size: clamp(3.5rem, 6vw, 6.5rem) !important;
    }
    .hero-grid-content {
        padding-top: 0.5rem;
    }
    /* Force image height with !important to win over min-width queries */
    .hero-col-center {
        height: 52vh !important;
    }
    .hero-col-left {
        gap: 1rem;
    }
    .hero-cta-wrap {
        transform: scale(1.1) !important;
    }
    .hero-avail-date {
        font-size: clamp(2rem, 3.5vw, 3.5rem) !important;
    }
    .hero-who-am-i {
        font-size: clamp(0.95rem, 1.1vw, 1.25rem);
    }
}

.hero-scroll-spacer {
    height: 100svh;
}

@media (max-width: 1023px) {
    .hero-sticky-wrapper {
        margin-bottom: 0;
    }
    .hero-editorial {
        position: relative;
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 3.5rem;
        align-items: stretch;
    }
    .hero-scroll-spacer {
        display: none;
    }
    .hero-available {
        position: relative;
        align-items: flex-end;
        transform: none;
    }
}

.hero-inner {
    position: relative;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
}

/* --- Giant Letters Row --- */
.hero-name-row {
    width: 100%;
    overflow: clip;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hero-name-overflow {
    overflow: clip;
    width: 100%;
}

.hero-giant-letters {
    display: flex;
    flex-direction: column;
    width: 100%;
    line-height: 0.85;
    gap: 0;
}

/* Each line has its own clip container so translateY(120%) is properly hidden */
.letter-clip {
    overflow: hidden;
    display: block;
    width: 100%;
}

.giant-letter {
    font-family: var(--font-fancy);
    font-weight: 800;
    font-size: var(--heading-1);
    color: var(--giant-letter-color);
    display: block;
    transform: translateY(120%);
    will-change: transform;
    letter-spacing: -0.04em;
    line-height: 0.9;
    width: 100%;
    text-align: center;
}

/* Mobile: título más compacto */
@media (max-width: 639px) {
    .giant-letter {
        font-size: clamp(2rem, 9vw, 3.2rem);
        line-height: 0.92;
    }
}

/* Spinning Star */
.hero-star {
    flex-shrink: 0;
    transform: translateX(100%);
    will-change: transform;
    vertical-align: top;
}

.hero-star svg {
    width: var(--heading-1-alt);
    height: var(--heading-1-alt);
    fill: var(--accent);
    animation: spin 5s linear infinite;
    vertical-align: top;
    display: inline-block;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- 3-Column Grid (matches portfolio grid-cols-12) --- */
.hero-grid-content {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 2.5rem;
    width: 100%;
    padding-top: clamp(1.25rem, 0.5rem + 3vw, 3.5rem);
}

/* Mobile: stack grid naturally con menos padding-top */
@media (max-width: 639px) {
    .hero-grid-content {
        padding-top: 0.75rem;
        row-gap: 0;
    }
}

/* Fix nav overlap at intermediate desktop (~1366px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .hero-grid-content {
        padding-top: 1.5rem;
    }
    .hero-col-left {
        gap: 2rem;
    }
}

/* Left Column: 4 cols */
.hero-col-left {
    grid-column: span 12;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem; /* mobile: gap compacto */
}

@media (min-width: 640px) {
    .hero-col-left {
        grid-column: span 4;
        gap: 1.5rem;
        align-items: flex-start;
    }
}

/* Arrow */
.hero-arrow-wrap {
    overflow: hidden;
}

.hero-arrow {
    width: 24px; height: 24px;
    color: var(--text-light);
    transform: translateX(-100%);
    will-change: transform;
}

@media (min-width: 768px) {
    .hero-arrow { width: 32px; height: 32px; }
}

/* Who Am I Text — character-by-character animation */
.hero-who-am-i {
    opacity: 0;
    font-family: var(--font-body);
    font-size: var(--heading-5);
    font-weight: 500;
    line-height: 1.4;
    max-width: 30ch;
    overflow: clip;
    color: var(--text);
    text-align: center;
}

@media (min-width: 640px) {
    .hero-who-am-i {
        max-width: 37ch;
        text-align: left;
    }
}

.hero-who-am-i .word-wrap {
    display: inline-block;
    overflow: clip;
    white-space: nowrap;
}

.hero-who-am-i .letter {
    display: inline-block;
    transform: translateY(120%);
    will-change: transform;
    opacity: 0;
}

/* CTA Button */
.hero-cta-wrap {
    position: relative;
    overflow: hidden;
    transform-origin: left;
}

@media (min-width: 640px) {
    .hero-cta-wrap { transform: scale(1.5); }
}

.hero-cta-btn {
    display: flex;
    transform: translateY(100%);
    will-change: transform;
    font-family: var(--font-display);
    font-size: 12px; font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent);
    padding: 12px 28px;
    border: 2px solid var(--accent);
    border-radius: 50px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    text-decoration: none !important;
}

.hero-cta-btn:hover {
    background: var(--accent);
    color: var(--white) !important;
    transform: translateY(-2px) !important;
}

/* Center Column: Image (4 cols) */
.hero-col-center {
    grid-column: span 4; /* mobile: ocupa 4 de 12 cols (fila junto al bloque right) */
    position: relative;
    margin-top: 0.75rem;
    height: 140px;
    border-radius: 24px;
    overflow: hidden;
    user-select: none;
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) {
    .hero-col-center {
        margin-top: 0;
        height: 100%;
        max-width: 32rem;
    }
}

@media (min-width: 768px) {
    .hero-col-center { height: 50vh; }
}

@media (min-width: 1024px) and (min-height: 801px) {
    .hero-col-center { height: min(60vh, calc(100svh - 30rem)); }
}

@media (min-width: 1280px) and (min-height: 801px) {
    .hero-col-center { height: min(68vh, calc(100svh - 30rem)); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: var(--bg-gradient-image);
}

.hero-profile-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 24px;
    transform: scale(0.9);
    will-change: transform;
}

/* Right Column: Info (8 cols mobile — comparte fila con center) */
.hero-col-right {
    grid-column: span 8;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 120px;
    overflow: visible;
    text-align: end;
    margin-top: 0.75rem;
}

@media (min-width: 640px) {
    .hero-col-right {
        grid-column: span 4;
        margin-top: 0;
    }
}

/* hero-available: en mobile se posiciona en la parte inferior del col-right */
.hero-available {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transform: translateY(100%);
    will-change: transform;
    gap: 4px;
}

@media (max-width: 639px) {
    .hero-available {
        gap: 4px;
    }
    .hero-avail-date {
        font-size: clamp(2.3rem, 9vw, 3rem) !important;
    }
    .sgi-mini {
        height: 32px;
    }
    .hero-avail-text {
        font-size: 0.65rem;
    }   
}

.hero-sgi-row {
    display: flex; align-items: center; gap: 8px;
}

.sgi-mini { height: 48px; width: auto; }

.hero-avail-label {
    font-family: var(--font-display);
    font-size: 10px; letter-spacing: 2px;
    color: var(--text-light); text-transform: uppercase;
    font-weight: 500;
}

.hero-avail-text {
    font-family: var(--font-display);
    font-size: clamp(0.75rem, 0.7rem + 0.2vw, 1rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1.4;
    color: var(--text);
}

.hero-avail-date {
    font-family: var(--font-fancy);
    font-size: var(--heading-1-alt);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--accent);
}

/* ============================================================
   FORM SECTION
   ============================================================ */
.form-section {
    position: relative;
    background: #171a36;
    padding: 5% 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px 24px 0 0;
}

.form-section-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 3%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Typography Headings Class Declarations (Replicated from Portfolio) */
.heading-1 {
    font-size: var(--heading-1);
    font-family: var(--font-fancy);
    line-height: 0.85;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    font-weight: 800;
}

#what-i-do {
    overflow: hidden;
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    #what-i-do {
        justify-content: flex-start;
    }
}

#what-i-do .letters {
    display: inline-block;
    transform: translateY(120%);
    will-change: transform;
    opacity: 0;
}

.heading-2 {
    font-size: clamp(1.9531rem, 1.496rem + 2.2854vw, 3.5529rem);
    font-family: var(--font-fancy);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.heading-3 {
    font-size: clamp(1.5625rem, 1.2474rem + 1.5755vw, 2.6653rem);
    font-family: var(--font-fancy);
    font-weight: 700;
}

.heading-4 {
    font-size: clamp(1.25rem, 1.0359rem + 1.0707vw, 1.9995rem);
    font-family: var(--font-fancy);
    font-weight: 600;
}

.heading-5 {
    font-size: var(--heading-5);
    font-family: var(--font-fancy);
    font-weight: 600;
}

.heading-6 {
    font-size: clamp(1rem, 0.928rem + 0.36vw, 1.25rem);
    font-family: var(--font-fancy);
    font-weight: 700;
}

/* Standalone Benefits Section (Replicated from Portfolio services) */
.benefits-section {
    position: relative;
    z-index: 10;
    padding-top: clamp(4rem, 2rem + 6vw, 8rem);
    padding-bottom: clamp(5rem, 3rem + 5vw, 9rem);
    background-color: #F4F4F1;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
}

@media (min-width: 1024px) {
    .benefits-section {
        background-color: #F4F4F1;
        border-top-left-radius: 64px;
        border-top-right-radius: 64px;
    }
}

#what-i-do {
    color: var(--bg);
}

.benefits-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 3%;
}

.benefits-intro-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 5%;
    margin-bottom: 3%;
    opacity: 0;
    width: 100%;
}

@media (min-width: 768px) {
    .benefits-intro-grid {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        column-gap: 2.5rem;
        align-items: start;
    }
}

.benefits-intro-label {
    grid-column: 1 / span 12;
    text-align: center;
    color: var(--accent-light);
    text-transform: uppercase;
    font-size: var(--heading-6);
    margin-bottom: 16px;
    font-family: var(--font-display);
    font-weight: 700;
}

.benefits-intro-text {
    grid-column: 1 / span 12;
    font-family: var(--font-body);
    font-size: var(--heading-4);
    font-weight: 600;
    color: var(--bg);
    line-height: 1.3;
    text-align: center;
    text-wrap: balance;
}

@media (min-width: 768px) {
    .benefits-intro-label {
        grid-column: 4 / span 4;
        text-align: center;
        margin-bottom: 0;
    }
    
    .benefits-intro-text {
        grid-column: 8 / span 5;
        text-align: left;
    }
}

/* ============================================================
   BENEFITS REDESIGN — Split Tabbed Layout (Concepto 1)
   ============================================================ */
.benefits-split-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: stretch;
    min-height: 520px;
    width: 100%;
    margin-bottom: 40px;
}

.benefits-tabs-menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: flex-start;
}

.benefit-tab-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-radius: 16px;
    background-color: #FFFFFF;
    border: 1px solid rgba(0, 34, 65, 0.06);
    text-align: left;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 34, 65, 0.02);
    font-family: var(--font-fancy);
    outline: none;
    width: 100%;
}

.benefit-tab-btn:hover {
    border-color: rgba(0, 34, 65, 0.15);
    box-shadow: 0 8px 20px rgba(0, 34, 65, 0.06);
}

.benefit-tab-btn:hover .benefit-tab-icon {
    transform: translateX(4px);
}

.benefit-tab-btn.active {
    background-color: var(--bg);
    border-color: var(--bg);
    box-shadow: 0 12px 28px rgba(0, 34, 65, 0.15);
}

.benefit-tab-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-light);
    font-family: var(--font-fancy);
    transition: color 0.4s ease;
}

.benefit-tab-text {
    font-size: clamp(1.05rem, 0.95rem + 0.3vw, 1.25rem);
    font-weight: 700;
    color: var(--bg);
    flex-grow: 1;
    margin-left: 16px;
    transition: color 0.4s ease;
}

.benefit-tab-btn.active .benefit-tab-text {
    color: #FFFFFF;
}

.benefit-tab-icon {
    width: 24px;
    height: 24px;
    stroke: var(--bg);
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.4s ease;
}

.benefit-tab-btn.active .benefit-tab-icon {
    stroke: #FFFFFF;
    transform: translateX(4px);
}

.benefits-display-panel {
    position: relative;
    width: 100%;
    border-radius: 24px;
    background-color: #FFFFFF;
    border: 1px solid rgba(0, 34, 65, 0.06);
    box-shadow: 0 12px 36px rgba(0, 34, 65, 0.04);
    overflow: hidden;
}

.benefit-display-card {
    display: none;
    opacity: 0;
    width: 100%;
    height: 100%;
}

.benefit-display-card.active {
    display: block;
    opacity: 1;
}

.benefit-card-inner {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    padding: 48px;
    gap: 32px;
    align-items: center;
    min-height: 520px;
    height: 100%;
}

.benefit-card-txt {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.benefit-display-title {
    font-family: var(--font-fancy);
    font-size: clamp(1.4rem, 1.2rem + 1vw, 2.2rem);
    font-weight: 800;
    color: var(--bg);
    margin-bottom: 16px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.benefit-display-desc {
    font-family: var(--font-book);
    font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1.05rem);
    color: rgba(0, 34, 65, 0.75);
    line-height: 1.6;
    margin-bottom: 24px;
}

.benefit-display-subpoints {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benefit-sub-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.benefit-sub-icon {
    color: var(--red-ucv);
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.benefit-sub-row p {
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 0.8rem + 0.1vw, 0.95rem);
    font-weight: 700;
    color: var(--bg);
    line-height: 1.4;
    margin: 0;
}

.benefit-card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
}

.benefit-image {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px; /* Borde redondeado */
    box-shadow: 0 12px 28px rgba(0, 34, 65, 0.1); /* Sombra elegante */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.benefit-image:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 36px rgba(0, 34, 65, 0.16);
}

.benefit-decor-shape {
    width: 160px;
    height: 160px;
    color: rgba(129, 188, 233, 0.15);
    animation: floatShape 6s ease-in-out infinite;
}

.benefit-decor-shape.second-decor {
    color: rgba(227, 6, 19, 0.08);
}

.benefit-decor-shape.third-decor {
    color: rgba(129, 188, 233, 0.15);
}

.benefit-decor-shape.fourth-decor {
    color: rgba(227, 6, 19, 0.08);
}

.benefit-decor-shape svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(8deg);
    }
}

/* Responsive Styles for Split Layout */
@media (max-width: 1023px) {
    .benefits-split-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        min-height: auto;
    }

    .benefits-tabs-menu {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .benefit-tab-btn {
        padding: 16px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 6px;
        border-radius: 12px;
    }

    .benefit-tab-text {
        margin-left: 0;
        font-size: 0.95rem;
        line-height: 1.2;
    }

    .benefit-tab-icon {
        display: none;
    }

    .benefits-display-panel {
        border-radius: 20px;
    }

    .benefit-card-inner {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        min-height: auto;
    }

    .benefit-card-visual {
        display: none;
    }
}

/* Centered Form Section */
.form-section-inner-centered {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 3%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.form-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-section-inner-centered .form-section-desc {
    max-width: 500px;
    margin-bottom: 20px;
}

.form-section-inner-centered .form-section-right {
    width: 100%;
    max-width: 550px;
}

.form-section-label {
    font-family: var(--font-fancy);
    font-size: 10px; letter-spacing: 3px;
    color: var(--accent-light); text-transform: uppercase;
    font-weight: 600; display: block; margin-bottom: 20px;
}

.form-section-title {
    font-family: var(--font-fancy);
    font-weight: 800;
    font-size: clamp(28px, 3vw, 42px);
    color: var(--accent);
    line-height: 1.15; margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.form-section-desc {
    font-family: var(--font-book);
    font-size: 15px; line-height: 1.7;
    color: var(--text-light); max-width: 460px; margin-bottom: 40px;
}

/* Stats */
.stats-row {
    display: flex; gap: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-block { display: flex; flex-direction: column; }

.stat-num {
    font-family: var(--font-fancy);
    font-size: 40px; font-weight: 800;
    color: var(--accent); line-height: 1;
}

.stat-plus {
    font-family: var(--font-fancy);
    font-size: 24px; font-weight: 800;
    color: var(--accent-light);
}

.stat-text {
    font-family: var(--font-book);
    font-size: 12px; color: var(--text-light);
    margin-top: 6px; line-height: 1.4;
}

/* Form Card */
.form-card-editorial {
    background: var(--white);
    border: 1px solid rgba(129, 188, 233, 0.3);
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.form-card-editorial:hover {
    box-shadow: 0 8px 60px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.form-card-top {
    background: var(--accent);
    padding: 16px 24px;
    display: flex; align-items: center; gap: 12px;
}

.form-card-dot {
    width: 8px; height: 8px;
    background: var(--accent-light);
    border-radius: 50%;
    animation: dotPulse 2s infinite ease-in-out;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(129,188,233,0.5); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(129,188,233,0); }
}

.form-card-label {
    font-family: var(--font-display);
    font-size: 12px; color: var(--white); font-weight: 600;
}

.iframe-container {
    padding: 0; background: var(--white); min-height: 380px;
}

.formCRM { width: 100%; border: none; min-height: 380px; }

#form-banner {
    background: var(--white) !important;
    position: relative; opacity: 1;
    margin: 0 !important; padding: 0 !important;
    border-radius: 12px; overflow: hidden;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    padding: 30px 0; color: #fff;
    background: var(--accent);
}

footer a { color: #fff; text-decoration: none; }
.bg-blue-ucv { background: var(--accent); }

/* ============================================================
   PRESERVED STYLES
   ============================================================ */
.l-container { padding: 60px 0; }
#descripcion-carrera { background: var(--bg); }
.text-blue-ucv { color: var(--bg); }
.form-control {
    border-radius: 0; border: 1px solid var(--bg);
    height: calc(1.6em + .75rem + 2px) !important;
    color: var(--bg); background-color: #FCFAF2;
    font-family: var(--font-body); appearance: auto;
}
.nav-pills .nav-link.active { color: #fff; background-color: var(--bg); }
.btn-ucv { background: var(--red-ucv); border-radius: 13px; border: var(--red-ucv); }
.text-red-ucv { color: var(--red-ucv); }
::placeholder { color: var(--bg) !important; font-family: var(--font-body); }
.descripcion-carrera { font-family: var(--font-book); font-size: 24px; line-height: 35px; }
.block-list ul li { margin-bottom: 10px; }
.form-group { margin-bottom: .5rem; }
iframe { max-width: 100%; }
.btn-form {
    font-family: var(--font-display); width: 100%;
    background: var(--red-ucv) !important;
    border-color: var(--red-ucv) !important; color: white;
}
#acreditaciones { background: var(--bg); }
#acreditaciones li { list-style: none; }
#acreditaciones p { color: white; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .hero-grid-content {
        column-gap: 1.5rem;
    }
    .form-section-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .stats-row { flex-wrap: wrap; gap: 24px; }
    .nav-center { display: none; }
}

@media (max-width: 767px) {
    .nav-container { padding: 16px 4% 0 4%; }
    .logo-ucv { height: 30px; }
    .logo-posgrado { height: 30px; }
    .logo-ucv + .logo-posgrado { padding-left: 12px; }
    .logo-sgi { height: 22px; padding-left: 12px; }
    .logo-sunedu { height: 22px; padding-left: 12px; }
    .nav-status-text { display: none; }
    .nav-inline-links { display: none; }

    /* Show burger menu button by default on mobile so users can navigate */
    .burger-btn-wrapper {
        transform: scale(1) !important;
        right: 16px;
        top: 16px;
    }
    .burger-btn {
        width: 48px;
        height: 48px;
    }
    #magnetoText::before, #magnetoText::after {
        width: 20px;
    }

    .hero-cta-wrap { transform: scale(1.1) !important; }
    .form-section-inner { padding: 0 4%; gap: 40px; }
    .form-section-title { font-size: 26px; }
    .stat-num { font-size: 30px; }
    .row-reverse { flex-direction: column-reverse; }
    .l-container { padding: 30px 0; }

    /* Benefits Accordion Mobile Tuning */
    .benefit-item {
        padding: 16px 0;
    }
    .benefit-content {
        padding-left: 32px; /* standard mobile indent */
    }
    .benefit-number {
        width: 36px;
    }
    .benefit-name {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .hide-mobile-strict { display: none !important; }
    .hero-cta-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   EDITORIAL FOOTER
   ============================================================ */
.editorial-footer {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 60px 3%;
    background: var(--bg-gradient, var(--bg));
    color: var(--text);
    max-width: 1920px;
    margin: -32px auto 0 auto;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    z-index: 13;
}

@media (min-width: 768px) {
    .editorial-footer {
        gap: 80px;
        padding: 80px 3%;
    }
}

@media (min-width: 1024px) {
    .editorial-footer {
        margin-top: -64px;
        border-top-left-radius: 64px;
        border-top-right-radius: 64px;
    }
}

.footer-top-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    row-gap: 40px;
    column-gap: 2.5rem;
    width: 100%;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.col-menu {
    grid-column: span 12;
}

.col-socials, .col-resources {
    grid-column: span 6;
}

@media (min-width: 768px) {
    .col-menu {
        grid-column: span 6;
    }
    .col-socials, .col-resources {
        grid-column: span 3;
    }
}

.footer-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
    font-weight: 700;
    border-bottom: 1px solid rgba(56, 57, 46, 0.2);
    padding-bottom: 8px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-roll-link {
    display: inline-block;
    height: 1.5em;
    overflow: hidden;
    vertical-align: top;
    position: relative;
    font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.15rem);
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
    width: fit-content;
}

.footer-roll-container {
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-roll-link:hover .footer-roll-container {
    transform: translateY(-50%);
}

.footer-roll-primary, .footer-roll-secondary {
    display: block;
    line-height: 1.5;
    font-family: var(--font-display);
}

.footer-roll-secondary {
    color: var(--accent);
}

/* Bottom Grid */
.footer-bottom-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    row-gap: 30px;
    width: 100%;
    align-items: center;
}

.footer-bottom-copyright {
    grid-column: span 12;
    order: 2;
    text-align: center;
}

.footer-bottom-times {
    grid-column: span 12;
    order: 1;
    text-align: center;
}

.footer-bottom-scroll {
    display: none;
    order: 3;
}

@media (min-width: 768px) {
    .footer-bottom-copyright {
        grid-column: span 6;
        order: 1;
        text-align: left;
    }
    .footer-bottom-times {
        grid-column: span 3;
        order: 2;
        text-align: left;
    }
    .footer-bottom-scroll {
        display: flex;
        grid-column: span 3;
        justify-content: flex-end;
        order: 3;
    }
}

.footer-copyright-text {
    font-family: var(--font-fancy);
    font-size: clamp(1.1rem, 0.9rem + 1vw, 2.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
}

.time-label {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 1.5px;
    margin-bottom: 2px;
}

.time-value {
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.15rem);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
}

.time-value:hover {
    color: var(--accent);
    text-decoration: none;
}

.time-value:last-child {
    margin-bottom: 0;
}

/* Scroll to Top Button */
.scroll-top-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--blue-ucv);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 34, 65, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.scroll-top-btn:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: scale(1.05);
}

.scroll-top-btn svg {
    width: 24px;
    height: 24px;
}

@media (min-width: 1024px) {
    .scroll-top-btn {
        width: 80px;
        height: 80px;
    }
    .scroll-top-btn svg {
        width: 32px;
        height: 32px;
    }
}

/* ============================================================
   NOISE TEXTURING OVERLAY
   ============================================================ */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.15;
    mix-blend-mode: overlay;
}

.noise-overlay svg {
    width: 100vw;
    height: 100vh;
    display: block;
}

/* ============================================================
   LOGROS / RANKINGS SECTION — Fondo blanco, texto azul
   ============================================================ */
.logros-section {
    position: relative;
    z-index: 12;
    margin-top: -32px;
    padding-top: clamp(4rem, 2rem + 6vw, 8rem);
    padding-bottom: clamp(2rem, 1rem + 3vw, 4rem);
    background-color: #F4F4F1;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .logros-section {
        margin-top: -64px;
        border-top-left-radius: 64px;
        border-top-right-radius: 64px;
    }
}

/* Heading */
.logros-heading-text {
    color: var(--bg);
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.logros-letters {
    display: inline-block;
    transform: translateY(120%);
    will-change: transform;
    opacity: 0;
}

/* Intro grid — mismo layout que benefits */
.logros-intro-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 5%;
    opacity: 0;
    width: 100%;
}

@media (min-width: 768px) {
    .logros-intro-grid {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        column-gap: 2.5rem;
        align-items: start;
    }
}

.logros-intro-label {
    grid-column: 1 / span 12;
    text-align: center;
    color: var(--accent-light);
    text-transform: uppercase;
    font-size: var(--heading-6);
    margin-bottom: 16px;
    font-family: var(--font-display);
    font-weight: 700;
}

.logros-intro-text {
    grid-column: 1 / span 12;
    font-family: var(--font-body);
    font-size: var(--heading-4);
    font-weight: 600;
    color: var(--bg);
    line-height: 1.3;
    text-align: center;
    text-wrap: balance;
}

@media (min-width: 768px) {
    .logros-heading-text {
        justify-content: flex-start;
    }

    .logros-intro-label {
        grid-column: 4 / span 4;
        text-align: center;
        margin-bottom: 0;
    }

    .logros-intro-text {
        grid-column: 8 / span 5;
        text-align: left;
    }
}

/* Achievements Slider container & controls */
.achievements-swiper-container {
    position: relative;
    width: 100%;
    margin-top: clamp(2rem, 1rem + 3vw, 4rem);
    overflow: visible;
}

.achievements-swiper {
    width: 100%;
    padding: 10px 5px 20px 5px !important;
    overflow: hidden;
}

/* Slide flex stretch */
.achievement-slide {
    height: auto !important; /* Permite que todas las tarjetas se estiren a la misma altura */
    display: flex;
}

/* Achievement Card base styling */
.achievement-card {
    background-color: #F4F4F1;
    border: 1px solid rgba(0, 34, 65, 0.08);
    border-radius: 24px;
    padding: 32px 24px;
    width: 100%;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 34, 65, 0.03);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.35s ease, 
                border-color 0.35s ease;
}

.achievement-card-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Hover premium state */
.achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0, 34, 65, 0.12);
    background-color: #FFFFFF;
    border-color: rgba(0, 34, 65, 0.15);
}

.achievement-category {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-light);
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
}

.achievement-title {
    font-family: var(--font-fancy);
    font-size: clamp(1.2rem, 1.15rem + 0.2vw, 1.45rem);
    font-weight: 800;
    color: var(--bg);
    margin: 0 0 12px 0;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.achievement-desc {
    font-family: var(--font-book);
    font-size: clamp(0.85rem, 0.8rem + 0.2vw, 0.95rem);
    color: rgba(0, 34, 65, 0.65);
    line-height: 1.5;
    margin: 0;
}

.achievement-logo-wrap {
    margin-top: 28px;
    width: 100%;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.achievement-logo {
    max-height: 55px;
    max-width: 85%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.achievement-card:hover .achievement-logo {
    transform: scale(1.06);
}

/* Slider Controls (Arrows & Pagination) */
.achievements-slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin-top: 36px;
    width: 100%;
}

.achievements-prev,
.achievements-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(0, 34, 65, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
}

.achievements-prev:hover,
.achievements-next:hover {
    background-color: var(--bg);
    color: #FFFFFF;
    border-color: var(--bg);
    transform: scale(1.05);
}

.achievements-pagination {
    display: flex !important;
    gap: 8px;
    justify-content: center;
    align-items: center;
    width: auto !important;
    position: static !important;
}

.achievements-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(0, 34, 65, 0.2) !important;
    opacity: 1 !important;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0 !important;
}

.achievements-pagination .swiper-pagination-bullet-active {
    width: 20px !important;
    border-radius: 4px !important;
    background: var(--bg) !important;
}

/* Ocultar paginación de puntos en dispositivos móviles para evitar desbordamiento horizontal */
@media (max-width: 767px) {
    .achievements-pagination {
        display: none !important;
    }
    .achievements-slider-controls {
        gap: 36px; /* Aumenta el espacio de interacción entre flechas */
    }
}

/* ============================================================
   CTA + FORM SECTION — Colores invertidos (azul oscuro + blanco)
   ============================================================ */
.cta-form-section {
    position: relative;
    z-index: 11;
    margin-top: -32px;
    padding-top: clamp(4rem, 2rem + 6vw, 8rem);
    padding-bottom: clamp(4rem, 2rem + 6vw, 8rem);
    background: var(--bg-gradient, var(--bg));
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .cta-form-section {
        margin-top: -64px;
        border-top-left-radius: 64px;
        border-top-right-radius: 64px;
    }
}

/* Heading animado (igual que #what-i-do pero en blanco) */
.cta-heading-text {
    color: #FFFFFF;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.cta-letters {
    display: inline-block;
    transform: translateY(120%);
    will-change: transform;
    opacity: 0;
}

/* Intro grid (mismo layout que .benefits-intro-grid) */
.cta-intro-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 5%;
    opacity: 0;
    width: 100%;
}

@media (min-width: 768px) {
    .cta-intro-grid {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        column-gap: 2.5rem;
        align-items: start;
    }
}

.cta-intro-label {
    grid-column: 1 / span 12;
    text-align: center;
    color: var(--accent);
    text-transform: uppercase;
    font-size: var(--heading-6);
    margin-bottom: 16px;
    font-family: var(--font-display);
    font-weight: 700;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cta-intro-label:hover {
    color: #FFFFFF;
    text-decoration: none;
}

.cta-intro-text {
    grid-column: 1 / span 12;
    font-family: var(--font-body);
    font-size: var(--heading-3);
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.3;
    text-align: center;
    text-wrap: balance;
}

.cta-logos-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.cta-logo {
    height: auto;
    object-fit: contain;
}

.cta-logo-ucv {
    height: 44px;
}

.cta-logo-sube {
    height: 44px;
}

.cta-logo-ucv + .cta-logo-posgrado,
.cta-logo-ucv + .cta-logo-sube {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 20px;
}

.cta-logo-licenciada {
    height: 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 20px;
}

.cta-logo-sgi {
    height: 44px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 20px;
    filter: brightness(0) invert(1);
}

@media (max-width: 767px) {
    .cta-logos-wrap {
        display: none;
    }
}

@media (min-width: 768px) {
    .cta-heading-text {
        justify-content: flex-start;
    }

    .cta-intro-label {
        grid-column: 4 / span 4;
        text-align: center;
        margin-bottom: 0;
    }

    .cta-intro-text {
        grid-column: 1 / span 7;
        text-align: left;
    }

    .cta-logos-wrap {
        grid-column: 8 / span 5;
        justify-content: flex-end;
    }
}

/* Grilla y columnas de la sección de formulario */
.cta-form-grid {
    display: flex;
    flex-direction: column-reverse; /* Formulario arriba, imagen abajo en mobile */
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 40px;
    margin-top: 40px;
    width: 100%;
}

@media (min-width: 1024px) {
    .cta-form-grid {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        column-gap: 2.5rem;
        align-items: center;
    }
}

.cta-image-col {
    width: 100%;
    display: block;
}

.cta-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    width: 100%;
}

.cta-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg); /* Coincide con el fondo de la sección */
    z-index: 2;
    will-change: transform;
}

.cta-side-image {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    display: block;
    transform: scale(0.95); /* Comienza escalada pequeña como la Hero Image */
    will-change: transform;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

@media (min-width: 1024px) {
    .cta-image-col {
        grid-column: span 5;
    }
    .cta-form-col {
        grid-column: span 7;
    }
    .cta-image-wrapper {
        border-radius: 32px;
    }
    .cta-side-image {
        height: 600px; /* coincide con el min-height del iframe */
        max-height: 600px;
    }
}

.formCRM {
    width: 100%;
    min-height: 600px;
    border: none;
    background: transparent;
    display: block;
}

/* ============================================================
   MODALIDADES FULLSCREEN OVERLAY
   ============================================================ */
.modalidades-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100svh;
    background-color: rgba(0, 34, 65, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modalidades-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;
}

/* Premium Close Button */
.modalidades-close-btn {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.modalidades-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg) scale(1.05);
}

.close-icon-svg {
    width: 24px;
    height: 24px;
}

/* Cards Stack Container */
.modalidades-container {
    position: relative;
    z-index: 5;
    width: 90%;
    max-width: 920px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.modalidades-container::-webkit-scrollbar {
    width: 6px;
}

.modalidades-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
}

/* Modality Card */
.modalidades-card,
.modalidades-card:hover,
.modalidades-card:focus,
.modalidades-card * {
    text-decoration: none !important;
}

.modalidades-card {
    background-color: #F4F4F1;
    border-radius: 32px;
    padding: 24px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, background-color 0.35s ease;
}

/* Card Hover Animations */
.modalidades-card:hover {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    background-color: #FFFFFF;
}

.modalidades-card-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Circle Badge Icon */
.modalidad-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--bg);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.35s ease;
}

.modalidades-card:hover .modalidad-icon-circle {
    transform: scale(1.08) rotate(-5deg);
    background-color: #E30613; /* Brand red on hover */
}

.modalidad-svg {
    width: 42px;
    height: 42px;
    stroke: currentColor;
    display: block;
}

/* Card Text Title */
.modalidad-title {
    font-family: var(--font-fancy);
    font-size: clamp(1.4rem, 2.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--bg);
    transition: color 0.3s ease;
}

.modalidades-card:hover .modalidad-title {
    color: #E30613;
}

.modalidades-card-right {
    display: flex;
    align-items: center;
}

/* Card Button */
.modalidades-btn {
    background-color: var(--bg);
    color: #FFFFFF !important;
    font-family: var(--font-fancy);
    font-size: clamp(14px, 1.1vw, 17px);
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 35px;
    text-align: center;
    white-space: nowrap;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.modalidades-card:hover .modalidades-btn {
    background-color: #E30613;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(223, 6, 19, 0.35);
}

/* RESPONSIVE DESIGN */
@media (max-width: 767px) {
    .modalidades-close-btn {
        top: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
    
    .close-icon-svg {
        width: 20px;
        height: 20px;
    }

    .modalidades-container {
        gap: 16px;
        padding: 16px 5px;
        max-height: 80vh;
    }

    .modalidades-card {
        border-radius: 24px;
        padding: 16px 20px;
    }

    .modalidades-card-left {
        gap: 16px;
    }

    .modalidad-icon-circle {
        width: 54px;
        height: 54px;
    }

    .modalidad-svg {
        width: 28px;
        height: 28px;
    }

    .modalidad-title {
        font-size: clamp(1.1rem, 3.8vw, 1.6rem);
    }

    .modalidades-btn {
        padding: 10px 20px;
        font-size: 13px;
        border-radius: 25px;
    }
}

@media (max-width: 480px) {
    .modalidades-card {
        padding: 12px 14px;
        border-radius: 20px;
    }

    .modalidades-card-left {
        gap: 12px;
    }

    .modalidad-icon-circle {
        width: 44px;
        height: 44px;
    }

    .modalidad-svg {
        width: 22px;
        height: 22px;
    }

    .modalidad-title {
        font-size: 0.95rem;
        letter-spacing: -0.03em;
    }

    .modalidades-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}

.cta-logo-posgrado, .cta-logo-sube {
    height: 44px;
}

/* ============================================================
   GLOBAL HIGHLIGHT BLOCK & RESPONSIVE TITLE WRAPPING
   ============================================================ */
.highlight-block {
    background-color: var(--accent);
    color: var(--bg) !important;
    padding: 2px 12px;
    display: inline-block;
    line-height: 1.1;
    vertical-align: middle;
}

@media (min-width: 768px) {
    .hide-mobile-flex {
        display: flex !important;
    }
    .show-mobile-flex {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .hide-mobile-flex {
        display: none !important;
    }
    .show-mobile-flex {
        display: flex !important;
    }
    #giantLettersMobile .giant-letter {
        white-space: nowrap !important;
        font-size: clamp(1.6rem, 7.5vw, 2.6rem) !important;
    }
}
