/* =========================================================
   DEV UAP – Frontend Design System
   Universidad Amazónica de Pando
   ========================================================= */

/* ── Google Fonts ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Design Tokens ────────────────────────────────────── */
:root {
    --red: #e30613;
    --red-dark: #b8040f;
    --red-light: #fde8e9;
    --blue: #164194;
    --blue-dark: #0d2d6b;
    --blue-light: #e8eef8;
    --white: #ffffff;
    --off-white: #f8f9fc;
    --border: #e5e9f0;
    --text: #1a1f36;
    --muted: #6b7280;
    --light-muted: #9ca3af;

    --nav-h: 72px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-pill: 100px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .12);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, .14);

    --ease: cubic-bezier(.4, 0, .2, 1);
    --fast: 220ms;
    --med: 380ms;
}

/* ── Reset ────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

/* ── Utility ──────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 56px;
}

.section {
    padding: 96px 0;
}

.section-sm {
    padding: 64px 0;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

.gap-3 {
    gap: 24px;
}

/* ── Fade-up animation ────────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    /* Moderated height for better visual balance */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all var(--med) var(--ease);
}

.nav.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-mobile-overlay {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.nav-brand-logo {
    height: 48px;
    /* Balanced size for the centered navbar */
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
    display: block;
}

.nav-brand-separator {
    width: 1px;
    height: 32px;
    background: #e2e8f0;
    margin: 0 4px;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-brand-text strong {
    font-size: .8rem;
    font-weight: 800;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.nav-brand-text span {
    font-size: .68rem;
    color: var(--muted);
    font-weight: 500;
}

.nav-m-icon {
    display: none; /* Hidden on desktop */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px; /* Reduced space between items */
}

.nav-link {
    padding: 8px 12px; /* Reduced padding */
    font-size: 0.92rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.2px;
    transition: all 0.3s var(--ease);
    display: flex;
    align-items: center;
    position: relative;
    border-radius: 12px;
    height: 40px;
    /* Centered interaction area */
}

.nav-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--blue-light);
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
    opacity: 0.6;
    transform: scale(1);
}

/* Active indicator dot */
.nav-link.active::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--red);
    border-radius: 50%;
}

/* Language Selector */
.nav-lang {
    position: relative;
}

.nav-lang-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--blue-dark);
    transition: all var(--fast) var(--ease);
}

.nav-lang-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-lang-btn .chevron {
    transition: transform var(--fast) var(--ease);
    opacity: 0.5;
}

.nav-lang-btn[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

.nav-lang-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 160px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 18px;
    padding: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--fast) var(--ease);
    z-index: 1001;
}

.nav-lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    transition: all var(--fast);
}

.lang-option:hover {
    background: #f1f5f9;
    color: var(--blue-dark);
}

.lang-option.active {
    background: var(--blue-light);
    color: var(--blue);
    font-weight: 700;
}

.nav-cta {
    padding: 8px 18px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    font-size: .88rem;
    font-weight: 700;
    transition: all var(--fast) var(--ease);
    white-space: nowrap;
}

.cta-inscription {
    background: var(--blue-light);
    color: var(--blue-dark) !important;
}

.cta-student {
    background: rgba(22, 65, 148, 0.05);
    color: var(--blue-dark) !important;
}

.cta-campus {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white) !important;
    box-shadow: 0 4px 12px rgba(227, 6, 19, .15);
}

.nav-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.cta-campus:hover {
    box-shadow: 0 8px 20px rgba(227, 6, 19, .25);
}

.nav-cta svg {
    opacity: 0.8;
    transition: transform var(--fast) var(--ease);
}

.nav-cta:hover svg {
    transform: translate(1px, -1px);
    opacity: 1;
}

.nav-cta::after {
    display: none;
}

/* ── Submenu Support ─────────────────────────────────── */
.nav-menu li {
    position: relative;
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 250px;
    background: var(--white);
    border-top: 3px solid var(--blue);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 16px 16px;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1001;
}

.nav-menu li:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-submenu li {
    width: 100%;
}

.nav-submenu a {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    font-size: 0.93rem;
    font-weight: 500;
    color: #334155;
    border-radius: 10px;
    transition: all 0.25s var(--ease);
}

.nav-submenu a:hover {
    background: var(--blue-light);
    color: var(--blue);
    transform: translateX(5px);
}

/* Mobile Adjustments for Submenu */
@media (max-width: 1024px) {
    .nav-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding-left: 24px;
        display: none; /* Hidden by default on mobile unless clicked? Usually simpler to show or use JS */
        border: none;
    }
    .nav-menu li.open .nav-submenu {
        display: block;
    }
}

/* Mobile hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: transparent;
    transition: background var(--fast) var(--ease);
}

.nav-hamburger:hover {
    background: var(--off-white);
}

.nav-hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--fast) var(--ease), opacity var(--fast) var(--ease);
}

.nav-hamburger.open span:nth-child(1) {
    transform: translate(0, 7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: translate(0, -7px) rotate(-45deg);
}

/* =========================================================
   HERO – HOMEPAGE
   ========================================================= */
.hero {
    padding-top: calc(var(--nav-h) + 64px);
    padding-bottom: 80px;
    background: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 92vh;
    display: flex;
    align-items: center;
}

.hero-bg-blob {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(22, 65, 148, 0.08) 0%, rgba(22, 65, 148, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(60px);
    animation: pulse-blob 15s infinite alternate ease-in-out;
}

.hero-bg-blob2 {
    position: absolute;
    bottom: 5%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.05) 0%, rgba(227, 6, 19, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(60px);
    animation: pulse-blob 20s infinite alternate-reverse ease-in-out;
}

@keyframes pulse-blob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, -30px) scale(1.1);
    }

    100% {
        transform: translate(-20px, 40px) scale(0.9);
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--blue-light);
    border: 1px solid rgba(22, 65, 148, .15);
    border-radius: var(--r-pill);
    font-size: .75rem;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.4);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2.5px;
    color: var(--blue-dark);
    margin-bottom: 24px;
}

.underline.accent {
    position: relative;
    color: var(--blue);
    display: inline-block;
    background: linear-gradient(90deg, var(--blue-dark), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.underline.accent::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(227, 6, 19, 0.15);
    /* Soft red accent */
    z-index: -1;
    border-radius: 4px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--red);
    color: var(--white);
    font-weight: 700;
    font-size: .95rem;
    border-radius: var(--r-pill);
    box-shadow: 0 6px 20px rgba(227, 6, 19, .28);
    transition: all var(--fast) var(--ease);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(227, 6, 19, .38);
}

.btn-outline-blue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: transparent;
    color: var(--blue);
    font-weight: 700;
    font-size: .95rem;
    border-radius: var(--r-pill);
    border: 2px solid var(--blue);
    transition: all var(--fast) var(--ease);
    cursor: pointer;
}

.btn-outline-blue:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(22, 65, 148, .25);
}

.btn-blue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--blue);
    color: var(--white);
    font-weight: 700;
    font-size: .95rem;
    border-radius: var(--r-pill);
    box-shadow: 0 6px 20px rgba(22, 65, 148, .28);
    transition: all var(--fast) var(--ease);
    border: none;
    cursor: pointer;
}

.btn-blue:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(22, 65, 148, .38);
}

.hero-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--blue-dark);
    line-height: 1;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.5px;
    margin-top: 8px;
}

/* Hero visual card */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ── EXACT HERO REPLICA (Premium Design) ────── */
.hero {
    padding: 30px 0;
    background: #f8fafc;
}

.hero-main-container {
    background: white;
    border-radius: 64px;
    /* Slightly softer for premium feel */
    padding: 35px 50px;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.heroSwiper {
    background: white;
    border-radius: 75px;
    box-shadow: 0 40px 100px rgba(15, 23, 42, 0.08);
    position: relative;
    z-index: 10;
}

.hero .container {
    padding: 0 40px;
}

.hero-bottom-bar-container {
    position: relative;
    z-index: 20;
    margin-top: -30px;
    /* Overlap effect */
    padding: 0 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    align-items: center;
}

/* Background Blob integration */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(22, 65, 148, 0.04) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2.2px;
    color: var(--blue-dark);
    margin-bottom: 15px;
}

.hero-desc {
    font-size: 1.15rem;
    color: #475569;
    max-width: 680px;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Custom Image Mask */
.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-img-mask {
    width: 100%;
    height: 440px;
    border-radius: 100px 30px 100px 30px;
    /* Asymmetric pill shape */
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bottom Integrated Bar */
.hero-bottom-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hbb-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 16px 24px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.hbb-card .icon-box {
    width: 44px;
    height: 44px;
    background: var(--blue-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
}

.hbb-card.red .icon-box {
    background: var(--red);
}

.hbb-card-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--blue-dark);
    font-weight: 800;
}

.hbb-card-text span {
    font-size: 0.72rem;
    color: var(--muted);
}

/* Stats in bar */
.hbb-stats-group {
    display: flex;
    align-items: center;
    background: white;
    padding: 16px 32px;
    border-radius: 28px;
    gap: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.hbb-stat {
    text-align: center;
}

.hbb-stat-val {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--blue-dark);
    letter-spacing: -1px;
}

.hbb-stat-lab {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 1px;
}

@keyframes float-soft {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* Swiper Pagination Custom styles */
.heroSwiper .swiper-pagination {
    bottom: 40px !important;
}

.heroSwiper .swiper-pagination-bullet {
    width: 25px;
    height: 6px;
    border-radius: 10px;
    background: var(--blue-dark);
    opacity: 0.2;
    transition: all 0.3s ease;
}

.heroSwiper .swiper-pagination-bullet-active {
    width: 45px;
    background: var(--red);
    opacity: 1;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-grid {
        gap: 40px;
    }

    .hero-bottom-bar-container {
        padding: 0 20px;
    }
}

@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 0;
    }

    .hero-copy {
        order: 1;
    }

    .hero-visual {
        order: 2;
        margin-top: 40px;
        justify-content: center;
    }

    .hero-desc {
        margin: 0 auto 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-badge-float {
        display: none;
    }

    .hero-stats-overlap {
        position: static;
        margin-top: 20px;
        display: inline-flex;
        box-shadow: none;
        padding: 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* =========================================================
   SECTION HEADER
   ========================================================= */
.section-header {
    max-width: 820px;
    margin-bottom: 56px;
    position: relative;
    z-index: 2;
}

.section-header.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-header.centered .section-desc {
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    padding: 5px 14px;
    background: var(--red-light);
    color: var(--red);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--r-pill);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--blue-dark);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 800px;
    line-height: 1.7;
}

/* =========================================================
   SERVICES SECTION
   ========================================================= */
.bg-off {
    background: var(--off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 36px 32px;
    transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease), border-color var(--med) var(--ease);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--blue));
    transform: scaleX(0);
    transition: transform var(--med) var(--ease);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.icon-red {
    background: var(--red-light);
}

.icon-blue {
    background: var(--blue-light);
}

.icon-green {
    background: #d1fae5;
}

.icon-gold {
    background: #fef3c7;
}

.icon-purple {
    background: #ede9fe;
}

.icon-teal {
    background: #ccfbf1;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--blue-dark);
    margin-bottom: 10px;
}

.service-card p {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.65;
}

/* =========================================================
   ABOUT STRIP
   ========================================================= */
.about-strip {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, #1e53b8 100%);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.about-strip::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .04);
}

.about-strip::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(227, 6, 19, .08);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-strip h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.about-strip p {
    font-size: 1rem;
    opacity: .85;
    line-height: 1.75;
    margin-bottom: 32px;
}

.about-checks {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-check {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .9rem;
    font-weight: 600;
    opacity: .9;
}

.check-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    flex-shrink: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-stat-card {
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    text-align: center;
}

.about-stat-card .num {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    color: white;
}

.about-stat-card .label {
    font-size: .8rem;
    opacity: .7;
    margin-top: 8px;
    font-weight: 500;
}

/* =========================================================
   PROGRAMS / OFERTA CARDS
   ========================================================= */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 56px;
}

.program-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.program-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.program-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 12px;
    border-radius: var(--r-pill);
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.badge-red {
    background: var(--red);
    color: white;
}

.badge-blue {
    background: var(--blue);
    color: white;
}

.badge-dark {
    background: var(--blue-dark);
    color: white;
}

.program-body {
    padding: 24px;
}

.program-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--blue-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.program-desc {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.program-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.meta-tag {
    padding: 4px 10px;
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    font-size: .72rem;
    font-weight: 600;
    color: var(--muted);
}

.btn-program {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--blue);
    transition: gap var(--fast) var(--ease), color var(--fast) var(--ease);
}

.btn-program:hover {
    gap: 10px;
    color: var(--red);
}

/* =========================================================
   NEWS CARDS
   ========================================================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.news-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.news-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
}

.news-body {
    padding: 24px;
}

.news-cat {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 12px;
    background: var(--blue-light);
    color: var(--blue);
}

.news-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--blue-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-desc {
    font-size: .83rem;
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.news-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    color: var(--light-muted);
    font-weight: 600;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* =========================================================
   NEWS CARDS (PREMIUM UTP-STYLE)
   ========================================================= */
.novedades-section { padding: 90px 0; background: #fff; position: relative; }
.novedades-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 56px; gap: 32px;
}
.novedades-title-group { display: flex; align-items: flex-start; gap: 24px; }
.red-bar-indicator {
    width: 7px; height: 72px; background: var(--red); border-radius: 10px; flex-shrink: 0;
}
.novedades-main-title {
    font-size: 2.8rem; font-weight: 900; color: #0f172a;
    letter-spacing: -2.5px; line-height: 0.9; margin-bottom: 8px;
}
.novedades-subtitle { font-size: 1.05rem; color: #64748b; font-weight: 500; }

.btn-novedades-more {
    padding: 14px 32px; border: 2.5px solid var(--red); color: var(--red);
    border-radius: 14px; font-weight: 800; font-size: 0.95rem;
    transition: all .35s var(--ease); text-decoration: none;
}
.btn-novedades-more:hover { background: var(--red); color: #fff; transform: translateY(-4px); box-shadow: 0 10px 20px rgba(227,6,19,0.2); }

.newsSwiper { padding: 10px 4px 80px !important; overflow: visible; }

.news-card-premium {
    background: #fff; border-radius: 24px; overflow: hidden; height: 100%;
    display: flex; flex-direction: column; transition: all .45s cubic-bezier(0.16, 1, 0.3, 1);
}
.news-card-premium:hover { transform: translateY(-12px); }

/* Type Person: Red Box Left / Image Right */
.type-person .cp-top {
    display: grid; 
    grid-template-columns: 1.15fr 0.85fr; 
    height: 280px;
    border-radius: 24px; 
    overflow: hidden;
    width: 100%;
}
.type-person .cp-red-box {
    background: var(--red); 
    padding: 40px; 
    display: flex; 
    align-items: center;
    width: 100%;
    height: 100%;
}
.type-person .cp-red-box h3 {
    color: #fff; 
    font-size: 1.35rem; 
    font-weight: 900; 
    line-height: 1.25; 
    margin: 0;
    letter-spacing: -0.5px;
}
.type-person .cp-img-cutout {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.type-person .cp-img-cutout img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    display: block;
}

/* Type Event: Image BG / Red Banner Bottom */
.type-event .ce-top {
    height: 280px; 
    background-size: cover; 
    background-position: center;
    position: relative; 
    display: flex; 
    align-items: flex-end;
    border-radius: 24px; 
    overflow: hidden;
    width: 100%;
}
.type-event .ce-banner {
    background: var(--red); 
    width: 100%; 
    padding: 24px 40px;
}
.type-event .ce-banner h3 {
    color: #fff; 
    font-size: 1.35rem; 
    font-weight: 900; 
    margin: 0; 
    line-height: 1.2;
}

.cp-body, .ce-body { 
    padding: 32px 4px 10px; 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
}
.cp-body p, .ce-body p {
    font-size: 1.05rem; color: #475569; line-height: 1.7; display: -webkit-box;
    -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    margin: 0;
}
.btn-arrow-red {
    width: 52px; height: 52px; background: #f1f5f9; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--red); font-size: 1.4rem; align-self: flex-end;
    transition: all .35s var(--ease); margin-top: 8px;
}
.btn-arrow-red:hover { 
    background: var(--red); color: #fff; 
    transform: rotate(-45deg) scale(1.1); 
    box-shadow: 0 8px 16px rgba(227,6,19,0.3);
}

@media (max-width: 768px) {
    .novedades-header { flex-direction: column; align-items: flex-start; }
    .type-person .cp-top { height: auto; grid-template-columns: 1fr; }
    .type-person .cp-red-box { order: 2; padding: 24px; }
    .type-person .cp-img-cutout { order: 1; height: 200px; }
    .novedades-main-title { font-size: 2.2rem; }
}

/* =========================================================
   PAGE HERO (inner pages)
   ========================================================= */
.page-hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    padding: calc(var(--nav-h) + 72px) 0 72px;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-inner {
    position: relative;
    z-index: 1;
}

.page-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    opacity: .7;
    margin-bottom: 20px;
    font-weight: 500;
}

.page-hero-breadcrumb a {
    opacity: .8;
    transition: opacity var(--fast) var(--ease);
}

.page-hero-breadcrumb a:hover {
    opacity: 1;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 1.15rem;
    opacity: .8;
    max-width: 850px;
    line-height: 1.7;
}

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 64px 80px;
    text-align: center;
}

.cta-banner h2 {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 900;
    color: var(--blue-dark);
    letter-spacing: -1px;
    margin-bottom: 14px;
}

.cta-banner p {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* =========================================================
   TEAM CARDS
   ========================================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.team-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 32px 24px;
    text-align: center;
    transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 16px;
    font-weight: 900;
    color: white;
}

.team-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--blue-dark);
    margin-bottom: 4px;
}

.team-role {
    font-size: .8rem;
    color: var(--muted);
    font-weight: 500;
}

/* =========================================================
   MV CARDS (Mission/Vision)
   ========================================================= */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 56px;
}

.mv-card {
    border-radius: var(--r-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.mv-card-mission {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: white;
}

.mv-card-vision {
    background: linear-gradient(135deg, #b3010c, var(--red));
    color: white;
}

.mv-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
}

.mv-icon-big {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.mv-card h3 {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.mv-card p {
    font-size: .9rem;
    opacity: .85;
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: white;
    border-radius: var(--r-xl);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
}

.contact-info h3 {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.contact-info p {
    opacity: .8;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
    font-size: .9rem;
}

.ci-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.ci-ico {
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.ci-text small {
    display: block;
    font-size: .68rem;
    opacity: .65;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.ci-text span {
    font-size: .9rem;
    font-weight: 600;
}

.contact-form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 48px 44px;
}

.contact-form-card h3 {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--blue-dark);
    margin-bottom: 6px;
}

.contact-form-card>p {
    color: var(--muted);
    margin-bottom: 32px;
    font-size: .9rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.form-group label {
    font-size: .78rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.form-control {
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    font-size: .9rem;
    background: var(--off-white);
    color: var(--text);
    transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
    font-family: 'Inter', sans-serif;
    outline: none;
}

.form-control:focus {
    border-color: var(--blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(22, 65, 148, .08);
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    margin-top: 8px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    background: var(--blue-dark);
    color: white;
    padding: 72px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 56px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    margin-bottom: 36px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand p {
    font-size: .85rem;
    opacity: .65;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .5;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: .875rem;
    opacity: .7;
    margin-bottom: 10px;
    font-weight: 500;
    transition: opacity var(--fast) var(--ease), color var(--fast) var(--ease);
}

.footer-col a:hover {
    opacity: 1;
    color: var(--red);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8rem;
    opacity: .5;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: .7;
    transition: background var(--fast) var(--ease), opacity var(--fast) var(--ease);
}

.footer-social-btn:hover {
    background: var(--red);
    opacity: 1;
}

/* =========================================================
   DIVIDER
   ========================================================= */
.divider {
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--blue));
    border-radius: 2px;
    margin: 16px 0;
}

/* =========================================================
   SCROLL TO TOP BUTTON (Universal Edition)
   ========================================================= */
.sys-up-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 54px;
    height: 54px;
    background: #008cd6 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 140, 214, 0.4);
    cursor: pointer;
    z-index: 999999 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(40px) scale(0.6);
    transition: all 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sys-up-btn svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.sys-up-btn:hover {
    background: #007bb5 !important;
    transform: translateY(-8px) scale(1.15) !important;
    box-shadow: 0 15px 40px rgba(0, 140, 214, 0.5);
}

.sys-up-btn.visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
    animation: bounce-pulse 2s infinite ease-in-out;
}

@keyframes bounce-pulse {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-5px) scale(1.05);
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .hero-visual {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 991px) {
    /* --- MOBILE SPACING --- */
    .container {
        padding: 0 15px;
    }

    .nav-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important; /* Todo a la izquierda */
        gap: 12px !important;
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
    }

    .nav-brand {
        position: static !important; /* Eliminamos el centrado absoluto */
        transform: none !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 !important;
        z-index: 1001 !important;
        width: auto !important;
    }

    .nav-right {
        margin-left: auto !important;
        display: block !important;
    }

    .nav-brand img:first-child {
        height: 32px !important;
    }

    .nav-brand img:last-child {
        height: 28px !important;
    }

    .nav-brand-separator {
        height: 18px;
        margin: 0 2px;
    }

    /* --- MOBILE HEADER CLEANUP --- */
    .nav-mobile-overlay {
        position: fixed;
        top: 0;
        left: -100%;
        right: auto;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 24px 40px;
        gap: 0; /* Control gaps via margins */
        box-shadow: 10px 0 50px rgba(0, 0, 0, 0.08);
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), left 0s 0.6s;
        z-index: 1000;
        overflow-y: auto;
        display: flex;
    }

    .nav-mobile-overlay.open {
        left: 0;
        transform: translateX(0);
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
        margin-bottom: 32px;
    }

    .nav-link {
        width: 100%;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text);
        padding: 16px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: all 0.3s ease;
    }

    .nav-link.active {
        color: var(--blue);
        border-left: 4px solid var(--blue);
        padding-left: 12px;
        background: linear-gradient(to right, rgba(0, 140, 214, 0.05), transparent);
    }

    .nav-link::after, .nav-link.active::before {
        display: none;
    }

    .nav-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        margin-top: 5px;
        display: none;
        border-left: 2px solid var(--blue-light);
    }

    .has-dropdown.open .nav-submenu {
        display: flex;
        flex-direction: column;
    }

    .nav-lang {
        width: 100%;
        margin-bottom: 32px;
        display: flex;
        justify-content: flex-start; /* Align language to the left */
    }

    .nav-lang-btn {
        width: auto; /* Not full width, aligned left */
        min-width: 120px;
        justify-content: space-between;
        padding: 12px 16px;
        background: #f8fafc;
        border: 1px solid rgba(0,0,0,0.05);
        border-radius: 12px;
        font-weight: 600;
    }

    .nav-actions {
        flex-direction: column;
        align-items: flex-start; /* Align buttons to the left */
        width: 100%;
        gap: 16px;
        padding: 32px 0 40px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        margin-top: 10px;
    }

    .nav-cta {
        width: auto;
        min-width: 220px;
        max-width: 100%;
        height: 48px;
        font-size: 0.9rem;
        font-weight: 700;
        border-radius: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 24px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        text-transform: none;
        transition: all 0.3s ease;
        background-image: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.05) 100%);
    }

    .nav-cta:active {
        transform: scale(0.96) translateY(2px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .cta-inscription {
        background: var(--red) !important;
        color: white !important;
    }

    .cta-student {
        background: var(--blue) !important;
        color: white !important;
    }

    .cta-campus {
        background: #f8fafc !important;
        color: var(--text) !important;
        border: 1px solid rgba(0,0,0,0.08) !important;
    }

    /* Hamburger Button Improvements */
    .nav-hamburger {
        display: flex !important;
        z-index: 1001;
        position: relative;
        border: 1px solid rgba(0,0,0,0.1);
        background: #f1f5f9;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .nav-hamburger span {
        width: 24px;
        height: 2px;
        margin: 2px 0;
    }

    .nav-hamburger.open {
        background: white !important;
        border: 1px solid rgba(0,0,0,0.1) !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .nav-hamburger.open span {
        background: var(--red) !important;
    }

    .nav-m-icon {
        display: inline-block !important; /* Visible only on mobile menu */
    }

    /* General responsive tweaks */
    .section {
        padding: 64px 0;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--nav-h) + 40px);
        padding-bottom: 56px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .services-grid, .programs-grid, .news-grid, .mv-grid, .contact-grid, .footer-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-banner {
        padding: 48px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .nav-mobile-overlay {
        max-width: 100%;
    }
}