/* =========================================
   Variables & Reset (E-Lab Style)
========================================= */
@font-face {
    font-family: 'Helvetica Neue';
    src: url('Branding/helvetica-neue-5/HelveticaNeueLight.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Cardo';
    src: url('Branding/Cardo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Cardo';
    src: url('Branding/Cardo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('Branding/helvetica-neue-5/HelveticaNeueRoman.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('Branding/helvetica-neue-5/HelveticaNeueMedium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('Branding/helvetica-neue-5/HelveticaNeueBold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

:root {
    /* Colors */
    --clr-background: #ffffff;
    --clr-background-alt: #F5F5EB;
    --clr-text-primary: #032386;
    --clr-text-secondary: #555555;

    /* Brand Colors (Keeping Parliamo Ciao essence but modern) */
    --clr-brand: #3064B7;
    --clr-brand-hover: #032386;
    --clr-accent: #E1AA2C;

    /* Layout & Spacing */
    --container-max: 1280px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-heading: 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Helvetica Neue', Arial, sans-serif;

    /* Borders & Shadows */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text-primary);
    background-color: var(--clr-background);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: var(--spacing-xl) 0;
}

/* =========================================
   Typography
========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--clr-text-primary);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--clr-text-secondary);
    line-height: 1.6;
}

/* =========================================
   Buttons
========================================= */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    gap: 0.5rem;
}

.button-primary {
    background-color: var(--clr-brand);
    color: #ffffff;
}

.button-primary:hover {
    background-color: var(--clr-brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(43, 92, 255, 0.2);
}

.button-secondary {
    background-color: transparent;
    color: var(--clr-text-primary);
    border: 1px solid #e0e0e0;
}

.button-secondary:hover {
    border-color: var(--clr-text-primary);
    background-color: var(--clr-background-alt);
}

.button-full {
    width: 100%;
}

/* =========================================
   Header & Navigation
========================================= */
.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    transition: var(--transition);
}

.navbar-wrapper.scrolled {
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: transparent;
}

.navbar-wrapper .nav-link,
.navbar-wrapper .logo-text {
    color: #ffffff;
}

.navbar-wrapper .hamburger .bar {
    background-color: #ffffff;
}

.navbar-wrapper .nav-link {
    background-color: transparent;
    box-shadow: none;
}

.navbar-wrapper .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-wrapper.nav-hidden .nav-group {
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    right: 2vw;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: -9vw;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.home-icon {
    width: auto;
    height: 52px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.home-icon:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    display: inline-block;
    font-weight: 500;
    color: var(--clr-text-primary);
    font-size: 0.95rem;
    background-color: var(--clr-background);
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.nav-link:hover {
    background-color: var(--clr-background-alt);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-cta {
    padding: 0.6rem 1.5rem;
    box-shadow: 0 4px 12px rgba(43, 92, 255, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(90deg,
            var(--clr-text-primary) 0px,
            var(--clr-text-primary) 20px,
            #ffffff 20px,
            #ffffff 40px);
    z-index: -1;
    transition: transform 0.5s ease, opacity 0.3s ease;
    transform: translateX(-50%);
    opacity: 0;
}

.nav-cta:hover::before {
    transform: translateX(0);
    opacity: 1;
}

.nav-cta:hover {
    color: var(--clr-text-primary) !important;
    text-shadow:
        -1px -1px 0 #ffffff,
        1px -1px 0 #ffffff,
        -1px 1px 0 #ffffff,
        1px 1px 0 #ffffff,
        0px 0px 4px #ffffff;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    cursor: pointer;
}

.hamburger .bar {
    width: 100%;
    height: 2px;
    background-color: var(--clr-text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* =========================================
   Hero Section
========================================= */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background-color: #032386;
    display: flex;
    align-items: center;
}

.hero-full-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero-overlay-container {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-center-logo {
    max-width: 600px;
    width: 50vw;
    height: auto;
    animation: fadeInRight 1s ease-out;
}

@media (max-width: 768px) {
    .hero-center-logo {
        display: none;
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========================================
   Nosotros & Comunidad
========================================= */
.nosotros-section,
.comunidad-section {
    background-color: #F5F5EB;
    color: #032386;
    padding: 5rem 0;
}

.container.nosotros-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 92%;
}

.nosotros-content {
    flex: 1;
    max-width: 55%;
}

.custom-marquee-section {
    font-family: 'Cardo', serif;
}

.nosotros-title {
    font-family: 'Cardo', serif;
    font-size: 2.8rem;
    margin-bottom: 2rem;
    font-weight: 400;
    white-space: nowrap;
}

.nosotros-title strong {
    font-weight: 700;
}

.nosotros-text {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.6;
    color: #032386;
    text-align: justify;
    margin-left: 2.2rem;
}

.nosotros-video-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin-right: -4vw;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 9/16;
    border-radius: 2rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
}

.video-thumbnail iframe {
    transform: scale(1.02);
}

.video-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 2rem;
    padding-left: 5px;
    transition: all 0.3s ease;
}

.video-thumbnail:hover .play-button-overlay {
    background-color: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Comunidad */
.comunidad-section {
    padding-top: 7rem;
    padding-bottom: 9rem;
    position: relative;
    overflow: hidden;
}

.comunidad-header {
    text-align: center;
    margin-bottom: 0;
    position: relative;
    z-index: 20;
}

.comunidad-icon {
    position: absolute;
    top: -100px;
    left: -80px;
    width: 450px;
    height: auto;
    opacity: 1;
    z-index: 10;
}

.comunidad-icon-right {
    position: absolute;
    bottom: -130px;
    right: -100px;
    width: 500px;
    height: auto;
    z-index: 10;
}

.comunidad-title {
    font-family: 'Cardo', serif;
    font-size: 4.8rem;
    font-weight: 400;
}

.comunidad-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 20;
}

.stat-item {
    flex: 1;
    min-width: 200px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 1.3rem;
    color: #032386;
}

@media (max-width: 900px) {
    .container.nosotros-container {
        flex-direction: column;
        gap: 3rem;
    }

    .nosotros-content {
        max-width: 100%;
    }

    .nosotros-title {
        white-space: normal;
        font-size: 2.2rem;
        text-align: center;
    }

    .nosotros-text {
        margin-left: 0;
    }

    .nosotros-video-container {
        margin-right: 0;
        justify-content: center;
        width: 100%;
    }

    .comunidad-section {
        padding-top: 5rem;
        padding-bottom: 7rem;
    }

    .comunidad-header {
        margin-bottom: 2rem;
    }

    .comunidad-stats {
        margin-top: 3rem;
    }

    .comunidad-icon {
        position: absolute;
        top: -10px;
        left: -10px;
        width: 130px;
        margin: 0;
    }

    .comunidad-icon-right {
        position: absolute;
        bottom: -20px;
        right: -10px;
        width: 160px;
        z-index: 10;
    }

    .comunidad-title {
        font-size: 3rem;
    }

    .stat-number {
        font-size: 3.5rem;
    }
}

/* =========================================
   PLIDA Section
========================================= */
.plida-section {
    position: relative;
    padding: 6rem 0;
    background-image: url('Branding/fondo plida.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    color: #ffffff;
}

.plida-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 35, 134, 0.4);
    z-index: 1;
}

.plida-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

/* Left Content */
.plida-logo-wrapper {
    text-align: center;
    margin-bottom: 3rem;
}

.plida-logo-img {
    max-width: 280px;
    height: auto;
    display: inline-block;
}

.plida-text-content {
    font-size: 1.15rem;
    line-height: 1.7;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: justify;
    padding-right: 1.5rem;
}

.plida-text-content p {
    margin-bottom: 1.5rem;
}

.plida-text-content strong {
    font-weight: 700;
}

/* Right Content */
.plida-video-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto 1.5rem;
    border-radius: 2.5rem;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1/1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.plida-video-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
}

.plida-video-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plida-video-caption {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.05rem;
    text-align: center;
    color: #ffffff;
    max-width: 450px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
    opacity: 0.9;
}

.plida-btn-container {
    text-align: center;
    width: 100%;
}

.plida-inscribir-btn {
    background-color: var(--clr-accent);
    color: var(--clr-text-primary);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 3rem;
    border-radius: 100px;
    letter-spacing: 0.05em;
    border: 2px solid var(--clr-accent);
}

.plida-inscribir-btn:hover {
    background-color: transparent;
    color: var(--clr-accent);
}

@media (max-width: 900px) {
    .plida-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .plida-logo-img {
        max-width: 280px;
    }

    .plida-text-content {
        padding-right: 0;
    }

    .plida-video-container {
        max-width: 400px;
    }
}

/* =========================================
   Form Section
========================================= */
.form-section {
    background-color: #032386;
    color: var(--clr-background);
}

.form-section .section-title {
    color: var(--clr-background);
    font-size: 2.5rem;
    text-align: left;
}

.form-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.form-info {
    padding-right: 2rem;
}

.form-wrapper {
    background-color: var(--clr-background);
    padding: 3rem;
    border-radius: var(--radius-lg);
    color: var(--clr-text-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.half-width {
    flex: 1;
}

.form-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--clr-text-primary);
}

.form-input {
    width: 100%;
    padding: 1rem;
    background-color: var(--clr-background-alt);
    border: 1px solid #eaeaec;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--clr-brand);
    background-color: var(--clr-background);
    box-shadow: 0 0 0 4px rgba(43, 92, 255, 0.1);
}

textarea.form-input {
    resize: vertical;
}

/* =========================================
   Combobox (Shadcn/UI Style)
======================================== */
.combobox-wrapper {
    position: relative;
    width: 100%;
}

.combobox-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    background-color: var(--clr-background);
    color: var(--clr-text-primary);
    text-align: left;
}

.combobox-trigger .combobox-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--clr-text-secondary);
}

.combobox-trigger.has-value .combobox-value {
    color: var(--clr-text-primary);
}

.combobox-icon {
    font-size: 0.8rem;
    color: var(--clr-text-secondary);
    transition: transform 0.2s;
    opacity: 0.5;
}

.combobox-trigger[aria-expanded="true"] .combobox-icon {
    /* Optional rotation for opened state */
}

.combobox-trigger:focus {
    outline: none;
    border-color: var(--clr-brand);
    box-shadow: 0 0 0 4px rgba(43, 92, 255, 0.1);
}

.combobox-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background-color: var(--clr-background);
    border: 1px solid #eaeaec;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 50;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.15s ease-out;
}

.combobox-content[hidden] {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.combobox-search {
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-bottom: 1px solid #eaeaec;
}

.combobox-search .search-icon {
    color: var(--clr-text-secondary);
    font-size: 0.9rem;
    margin-right: 8px;
    opacity: 0.5;
}

.combobox-search-input {
    flex: 1;
    border: none;
    padding: 12px 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: transparent;
    color: var(--clr-text-primary);
    outline: none;
}

.combobox-search-input::placeholder {
    color: #a0a0a0;
}

.combobox-options {
    max-height: 250px;
    overflow-y: auto;
    padding: 4px;
}

.combobox-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: background-color 0.15s, color 0.15s;
    user-select: none;
}

.combobox-option:hover,
.combobox-option.selected {
    background-color: var(--clr-background-alt);
}

.option-check {
    width: 16px;
    font-size: 0.85rem;
    margin-right: 8px;
    visibility: hidden;
    color: var(--clr-text-primary);
}

.combobox-option.selected .option-check {
    visibility: visible;
}

.combobox-empty {
    padding: 16px 12px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--clr-text-secondary);
}

/* Radio buttons */
.radio-group {
    display: flex;
    gap: 2rem;
    padding-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 400;
}

.radio-label input {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d0d0d0;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: var(--transition);
}

.radio-label input:checked+.radio-custom {
    border-color: var(--clr-brand);
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    background-color: var(--clr-brand);
    border-radius: 50%;
    transition: var(--transition);
}

.radio-label input:checked+.radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

/* =========================================
   Footer
========================================= */
.footer {
    background-color: #032386;
    color: var(--clr-background);
    padding: 5rem 0 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo .logo-text {
    color: var(--clr-background);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-background);
    font-size: 1.2rem;
}

.social-link:hover {
    background-color: var(--clr-brand);
    transform: translateY(-2px);
}

.footer-heading {
    color: var(--clr-background);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--clr-background);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    text-align: center;
}

.footer-brand.right-align {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* =========================================
   Responsive Design
========================================= */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    .hero-grid,
    .form-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image-wrapper {
        order: 1;
    }

    .hero-image {
        height: 250px;
    }

    .form-section .section-title,
    .form-section .section-subtitle {
        text-align: center;
    }

    .form-info {
        padding-right: 0;
    }

    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Mobile Menu */
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #032386;
        /* Dark blue background */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        box-shadow: none;
        gap: 2.5rem;
        border-radius: 0;
        z-index: 999;
    }

    .nav-link {
        font-size: 2rem;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        color: #ffffff !important;
    }

    .nav-link:hover {
        background-color: transparent;
        box-shadow: none;
        transform: translateY(-2px);
    }

    .brand-logo {
        position: relative;
        z-index: 1001;
        margin-left: 0;
    }

    .nav-group {
        position: static;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
        position: relative;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .footer-top {
        flex-direction: column;
        gap: 3rem;
    }
}

/* =========================================
   Animations (E-Lab Style)
========================================= */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-fade-up {
    transform: translateY(40px);
}

.reveal-fade-left {
    transform: translateX(40px);
}

.reveal-fade-right {
    transform: translateX(-40px);
}

.reveal-scale-up {
    transform: scale(0.95);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger Delays */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

/* =========================================
   Trusted Section
========================================= */
.trusted-box {
    background-color: #f0f2f5;
    border-radius: 1.5rem;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 2rem;
}

.trusted-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--clr-text-primary);
}

.trusted-logos {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.trusted-logos-track {
    display: inline-flex;
    gap: 1.5rem;
    padding-right: 1.5rem;
    animation: marquee 25s linear infinite;
}

.trusted-logos:hover .trusted-logos-track {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0%);
    }
}

.logo-card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 80px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease;
    font-size: 1.25rem;
    color: #111;
}

.logo-card:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .trusted-box {
        padding: 3rem 1.5rem;
    }

    .logo-card {
        min-width: 120px;
        padding: 1rem;
        height: 70px;
    }
}

/* =========================================
   Custom Marquee
========================================= */
.custom-marquee-section {
    background-color: #032386;
    color: var(--clr-background);
    padding: 1.5rem 0;
    overflow: hidden;
    display: flex;
    white-space: nowrap;
    position: relative;
}

.custom-marquee-track {
    display: inline-flex;
    gap: 3rem;
    padding-right: 3rem;
    animation: marquee-lr 25s linear infinite;
    font-family: var(--font-cardo);
    font-size: 2rem;
    text-transform: uppercase;
}

@keyframes marquee-lr {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
   Preloader Intro
========================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.preloader-text-container {
    font-size: 3rem;
    font-weight: 800;
    color: var(--clr-text-primary);
    text-align: center;
    font-family: var(--font-heading);
    opacity: 1;
    transition: opacity 0.4s ease;
    padding: 0 2rem;
}

.preloader-text-container.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 768px) {
    .preloader-text-container {
        font-size: 2rem;
    }

    .intro-brand {
        display: block;
    }
}

/* =========================================
   Modalidades Section
========================================= */
.modalidades-section {
    background-color: var(--clr-background-alt);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.modalidades-icon {
    position: absolute;
    z-index: 1;
}

.modalidades-icon-left {
    width: 180px;
    top: 20px;
    left: 4%;
    transform: rotate(-25deg);
}

.modalidades-icon-right {
    width: 160px;
    top: 120px;
    right: 4%;
    transform: rotate(20deg);
}

.modalidades-title {
    font-family: 'Cardo', serif;
    color: var(--clr-text-primary);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.modalidades-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    max-width: 950px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.modalidad-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modalidad-video-container {
    position: relative;
    width: 100%;
    border-radius: 2.5rem;
    overflow: hidden;
    aspect-ratio: 9/16;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.modalidad-img {
    position: absolute;
    top: 50%;
    left: -5px;
    width: calc(100% + 10px);
    height: 142.22%;
    object-fit: cover;
    transform: translateY(calc(-50% - 50px));
}

.modalidad-video-container .play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.3);
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.modalidad-video-container:hover .play-button-overlay {
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%) scale(1.1);
}

.modalidad-btn-wrapper {
    margin-bottom: 0.8rem;
}

.modalidad-pill-btn {
    display: inline-block;
    padding: 0.6rem 3rem;
    border: 3px solid var(--clr-text-primary);
    border-radius: 50px;
    color: var(--clr-text-primary);
    font-weight: 700;
    font-size: 2rem;
    text-transform: uppercase;
    transition: var(--transition);
    background-color: transparent;
    font-family: var(--font-heading);
    line-height: 1;
}

.modalidad-pill-btn:hover {
    background-color: var(--clr-text-primary);
    color: white;
}

.modalidad-desc {
    color: var(--clr-text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .modalidades-title {
        font-size: 3rem;
        margin-bottom: 3rem;
    }

    .modalidades-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 450px;
    }

    .modalidades-icon-left {
        width: 100px;
        top: 20px;
        left: -10px;
    }

    .modalidades-icon-right {
        width: 90px;
        top: 60px;
        right: -10px;
    }

    .modalidad-pill-btn {
        font-size: 1.5rem;
        padding: 0.5rem 2rem;
    }
}
/* =========================================
   Eventos y Noticias (Light Layout)
========================================= */
.eventos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.eventos-kicker {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--clr-text-secondary);
    margin-bottom: 0.5rem;
}

.eventos-main-title {
    font-size: 3rem;
    line-height: 1.1;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    color: var(--clr-text-primary);
}

.eventos-swoosh {
    width: 150px;
    height: auto;
}

.eventos-btn {
    background-color: var(--clr-brand);
    color: #ffffff;
    border-radius: 8px; 
    font-size: 1rem;
    padding: 0.8rem 2rem;
}

.eventos-btn:hover {
    background-color: var(--clr-brand-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(48, 100, 183, 0.3);
}

.eventos-profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
}

.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border: 2px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profile-pic img {
    width: 70%;
    height: auto;
}

.profile-username {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--clr-text-primary);
}

.profile-bio {
    font-size: 1rem;
    color: var(--clr-text-secondary);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .eventos-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .eventos-main-title {
        font-size: 2.2rem;
    }
    
    .eventos-profile {
        align-items: flex-start;
    }
}

/* =========================================
   Instagram Static Grid Section
========================================= */
.instagram-static-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: 2rem;
    align-items: start;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.instagram-post-link {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5; /* 1080 x 1350 px para portadas de Reels/Verticales */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.instagram-post-link:hover {
    filter: brightness(0.85);
}

.instagram-post-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.instagram-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.insta-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ffffff;
    font-size: 1.2rem;
    filter: drop-shadow(0px 0px 3px rgba(0, 0, 0, 0.5));
}

@media (max-width: 900px) {
    .instagram-static-grid {
        gap: 2px;
    }
}

@media (max-width: 600px) {
    .instagram-static-grid {
        grid-template-columns: 1fr;
    }
}