@font-face {
    font-family: 'Helvetica';
    src: url('../fonts/helvetica.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Helvetica';
    src: url('../fonts/helvetica-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Custom Properties & Tokens */
:root {
    --primary: #005fab;
    --primary-light: #20b9df;
    --primary-dark: #00397e;
    --secondary: #ffd500;
    --secondary-hover: #e6c000;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --danger: #dc3545;
    
    --font-main: 'Helvetica', Arial, sans-serif;
    --font-titles: 'Bebas Neue', sans-serif;
    
    --border-radius: 50px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, .badge {
    font-family: var(--font-titles);
    font-weight: 400;
    letter-spacing: 0.5px;
}


img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Layout Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-6 {
    width: 100%;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .col-md-6 {
        width: 50%;
    }
}

.align-center {
    align-items: center;
}

/* Typography Classes */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: var(--white) !important; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-yellow { color: var(--secondary) !important; }
.text-blue { color: var(--primary) !important; }
.font-bold { font-weight: 800 !important; }
.text-gray { color: var(--text-muted); }

.section-title {
    text-wrap: balance;
    font-size: 2.5rem;
    color: #111111;
    font-weight: 400;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.why-us-section .section-title {
    text-wrap: balance;
    color: var(--white);
    font-weight: 400;
}

.why-us-section .section-subtitle {
    color: var(--secondary);
}

/* Spacing */
.py-medium { padding: 40px 0; }
.py-large { padding: 80px 0; }
.mt-small { margin-top: 15px; }
.mt-medium { margin-top: 30px; }
.mt-large { margin-top: 50px; }
.mb-medium { margin-bottom: 30px; }
.pr-large { padding-right: 40px; }

/* Backgrounds */
.bg-light { background-color: var(--bg-light); }
.bg-primary { background-color: var(--primary); }
.bg-primary-dark { background-color: var(--primary-dark); }

/* Flip Button Styles */
.btn, .btn-inscribete {
    perspective: 1000px;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    position: relative;
    box-shadow: none !important;
}

.flip-btn-inner {
    position: relative;
    width: 100%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.btn:hover .flip-btn-inner,
.btn-inscribete:hover .flip-btn-inner {
    transform: rotateX(180deg);
}

.flip-btn-front, .flip-btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    padding: 14px 28px;
    border-radius: 99px;
    font-weight: 600;
}

.flip-btn-front {
    position: relative;
    width: 100%;
}

.btn-inscribete .flip-btn-front, .btn-inscribete .flip-btn-back {
    padding: 8px 18px;
}

.flip-btn-back {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    transform: rotateX(180deg);
}

.flip-bg-primary { background-color: var(--primary); color: var(--white); border: 2px solid var(--primary); }
.flip-bg-secondary { background-color: var(--secondary); color: var(--primary-dark); border: 2px solid var(--secondary); }
.flip-bg-outline { background-color: transparent; color: var(--primary); border: 2px solid var(--primary); }
.flip-bg-white { background-color: #ffffff; color: #111111; border: 2px solid #ffffff; }


/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    font-family: var(--font-main);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--primary-dark);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group.row {
    display: flex;
    gap: 12px;
}

.form-group.row .col {
    flex: 1;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
    text-align: left;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e4e4e7;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    transition: var(--transition);
    background-color: var(--white);
    color: var(--text-main);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder {
    color: #a1a1aa;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(3, 96, 170, 0.15);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 15px;
    margin-bottom: 15px;
}

.checkbox-group input {
    margin-top: 3px;
}

.checkbox-label {
    font-weight: 400 !important;
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 0 !important;
}

/* Hero Section */
.hero-section {
    padding-top: 60px;
    position: relative;
    background-image: url('../img/header-bg-general.jpg');
    background-size: cover;
    background-position: center;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 95px 0 40px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 57, 126, 0.95) 0%, rgba(0, 57, 126, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.hero-text {
    width: 100%;
    color: var(--white);
    margin-bottom: 30px;
}

.hero-text .logo {
    max-width: 200px;
    margin-bottom: 20px;
}

.hero-text h1 {
    text-wrap: balance;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.5px;
    font-family: var(--font-main);
    text-shadow: 0 2px 12px rgba(0,0,0,0.45);
    text-transform: uppercase;
}

.hero-text .subtitle {
    font-size: 1.2rem;
    margin-bottom: 24px;
    opacity: 1;
    max-width: 520px;
    font-weight: 600;
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.badge {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: none;
    padding: 11px 22px;
    border-radius: 50px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    color: var(--primary-dark);
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    font-family: var(--font-main);
    letter-spacing: 0.2px;
    text-transform: none;
}

.badge i {
    color: var(--primary);
    font-size: 1rem;
}



.hero-form-container {
    width: 100%;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 36px 42px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.lead-form h3 {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.25;
    text-align: center;
}

.lead-form p {
    color: var(--text-muted);
    margin-bottom: 22px;
    font-size: 1.1rem;
    line-height: 1.4;
    text-align: center;
}

@media (min-width: 992px) {
    .hero-text {
        width: 48%;
        margin-bottom: 0;
        padding-right: 40px;
    }
    
    .hero-form-container {
        width: 48%;
    }
}

/* Stats Section Carousel */
.stats-carousel-container {
    position: relative;
    max-width: 100%;
    margin: 40px auto 0;
    padding: 0;
}
.stats-carousel {
    overflow-x: hidden;
    overflow-y: hidden;
    width: 100%;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.stats-carousel:active {
    cursor: grabbing;
}
.stats-carousel::-webkit-scrollbar {
    display: none;
}
.stats-track {
    display: flex;
    gap: 20px;
    transition: none;
    justify-content: flex-start !important;
    
}

.stats-carousel-container .carousel-dots {
    display: none !important;
}
.stats-carousel-container .carousel-control { display: none !important; }
.stats-carousel-container .carousel-control:hover {
    background-color: var(--white);
}
.stats-carousel-container .carousel-control.prev { left: -15px; }
.stats-carousel-container .carousel-control.next { right: -15px; }

@media (min-width: 992px) {
    .stats-carousel-container {
        padding: 0 50px;
    }
    .stats-carousel-container .carousel-control.prev { left: 0px; }
    .stats-carousel-container .carousel-control.next { right: 0px; }
}

/* Stats Section Style */
.stats-section .container {
    max-width: 1400px; /* Un poco ms expandido que el default de 1200, pero no toda la pantalla */
}
.stats-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.stats-section .section-title {
    text-wrap: balance;
    color: var(--white);
    margin-bottom: 20px;
}

.stats-section .text-blue {
    color: var(--secondary) !important;
}

/* Add a subtle background pattern */
.stats-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.stat-card {
    flex: 0 0 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 15px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (min-width: 768px) {
    .stat-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

@media (min-width: 992px) {
    .stat-card {
        flex: 0 0 calc((100% - 60px) / 4);
    }
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 5px;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    text-align: center;
    letter-spacing: 0.5px;
}

.stat-sublabel {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--white);
    opacity: 0.9;
    margin-top: 5px;
    text-align: center;
}

.stat-logo-img {
    max-height: 60px;
    max-width: 90%;
    object-fit: contain;
    margin-bottom: 15px;
}

/* Carousel controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.carousel-control:hover {
    background-color: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}

.carousel-control.prev { left: 0; }
.carousel-control.next { right: 0; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.carousel-dot.active {
    background-color: var(--primary);
    width: 25px;
    border-radius: 5px;
}

/* Programs Section */
.programs-accordion {
    margin: 35px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    outline: none;
}

.accordion-title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.accordion-header-icon {
    font-size: 1.25rem;
    color: var(--primary);
    transition: var(--transition);
}

.accordion-item.active .accordion-header-icon {
    color: var(--secondary);
}

.accordion-title {
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.accordion-arrow {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    opacity: 0;
}

.accordion-item.active .accordion-content {
    opacity: 1;
}

.accordion-list {
    list-style: none;
    padding: 0 20px 20px 50px; /* Align with the text, skipping icon */
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accordion-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 15px;
}

.accordion-list li::before {
    content: "•";
    color: var(--secondary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.programs-section .image-wrapper {
    height: 480px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

.programs-section .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 75% 50%;
    transition: opacity 0.3s ease-in-out;
}

@media (max-width: 767px) {
    .programs-section .image-wrapper {
        height: 300px;
    }
}

@media (max-width: 767px) {
    .programs-section .col-md-6:last-child {
        margin-top: 40px;
    }
    .pr-large {
        padding-right: 15px;
    }
}

/* Campus Section */
/* Campus Slider with JS Auto-scroll & Drag */
.campus-slider-container {
    position: relative;
    width: 100%;
    margin-top: 40px;
}

.campus-slider-track {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 10px 50px 10px;
    cursor: grab;
    align-items: stretch;
}

.campus-slider-track:active {
    cursor: grabbing;
}

/* Hide scrollbar */
.campus-slider-track::-webkit-scrollbar {
    display: none;
}
.campus-slider-track {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.campus-set {
    display: flex;
    gap: 30px;
    padding-right: 30px;
}

.campus-set .campus-card {
    width: min(85vw, 320px);
    flex-shrink: 0;
}

.campus-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.campus-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.campus-card .card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.campus-card .card-content {
    padding: 30px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.campus-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0;
    color: var(--primary);
}

.campus-slider-container .carousel-control {
    background-color: var(--secondary);
    color: var(--primary-dark);
}
.campus-slider-container .carousel-control:hover {
    background-color: var(--white);
}
.campus-slider-container .carousel-control.prev { left: -15px; }
.campus-slider-container .carousel-control.next { right: -15px; }

@media (min-width: 992px) {
    .campus-slider-container {
        padding: 0 50px;
    }
    .campus-slider-container .carousel-control.prev { left: 0px; }
    .campus-slider-container .carousel-control.next { right: 0px; }
}

/* Why Us Section */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 576px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.benefit-item {
    background-color: var(--white);
    border: 3px solid var(--primary-dark);
    border-radius: 20px;
    position: relative;
    padding: 50px 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 40px;
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.benefit-item-large {
    grid-column: 1 / -1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.icon-circle {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    width: 85px;
    height: 85px;
    background-color: var(--white);
    border: 6px solid var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary-dark);
    transition: var(--transition);
    z-index: 2;
}

.benefit-item:hover .icon-circle {
    transform: translateX(-50%) scale(1.05);
}

.benefit-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0;
}

.benefit-item-large h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.titulacion-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 30px;
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

@media (max-width: 575px) {
    .titulacion-list { grid-template-columns: 1fr; }
}

.titulacion-list li {
    position: relative;
    padding-left: 25px;
    color: var(--primary-dark);
    font-weight: 400;
    font-size: 1.05rem;
}

.titulacion-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    background-color: var(--secondary);
    border-radius: 50%;
}

/* Alliances */
.logos-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.logo-item {
    font-size: 1.5rem;
    font-weight: 700;
    color: #999;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.logo-item:hover {
    color: var(--primary);
}

.alliance-logo {
    max-height: 60px;
    max-width: 180px;
    object-fit: contain;
    transition: var(--transition);
}

/* Infinite Logo Slider */
@keyframes infinite-slide {
    from { transform: translateX(0); }
    to { transform: translateX(-25%); }
}

.logos-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 40px;
    height: 100px;
    z-index: 10;
}

.logos-slider-track {
    display: flex;
    width: max-content;
    animation: infinite-slide 15s linear infinite;
    align-items: center;
    height: 100%;
}

.logos-set {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-right: 60px;
}

.logos-slider-track img {
    height: 55px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: var(--transition);
}

.logos-slider-track img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.blur-left,
.blur-right {
    position: absolute;
    top: 0;
    height: 100%;
    width: 150px;
    pointer-events: none;
    z-index: 2;
}

.blur-left {
    left: 0;
    background: linear-gradient(to right, var(--primary-dark) 0%, transparent 100%);
    mask-image: linear-gradient(to right, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 0%, transparent 100%);
}

.blur-right {
    right: 0;
    background: linear-gradient(to left, var(--primary-dark) 0%, transparent 100%);
    mask-image: linear-gradient(to left, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 0%, transparent 100%);
}

/* Footer */
.footer {
    background-color: var(--primary);
    padding: 60px 0 20px;
    border-top: 3px solid var(--secondary);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    width: 100%;
    margin-bottom: 30px;
}

.footer-logo img {
    max-width: 220px;
}

.footer-logo p {
    opacity: 0.8;
}

.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.1rem;
}

.social-links a:hover {
    background-color: var(--secondary);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

@media (min-width: 768px) {
    .footer-logo {
        width: auto;
        margin-bottom: 0;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Animation Utilities */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-text h1, .hero-text .subtitle, .badges {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-text .subtitle { animation-delay: 0.2s; }
.badges { animation-delay: 0.4s; }
.hero-form-container { 
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

@media (max-width: 768px) {
    .badge {
        font-size: 0.95rem;
        padding: 8px 16px;
    }
    .hero-text h1 {
    text-wrap: balance;
        font-size: 2.6rem;
        font-weight: 700;
        line-height: 1.18;
    }
    
    
    
    .section-title {
    text-wrap: balance;
        font-size: 2rem;
    }
    
    .hero-form-container {
        padding: 25px;
    }
}

/* Sticky Navbar Styles */
/* old navbar removed */

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-link {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
}

.btn-inscribete {
    background-color: var(--secondary); /* Yellow */
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 8px 18px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
    display: inline-block;
}

.btn-inscribete:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .badge {
        font-size: 0.95rem;
        padding: 8px 16px;
    }
    /* old navbar removed */
    
    .nav-logo {
        height: 30px;
    }
    
    .btn-inscribete {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}





/* === NEW NAVBAR STYLES === */
.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    z-index: 1000;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.main-navbar.scrolled {
    background: rgba(0, 40, 90, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-logo-link {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}













/* Premium Hover Effect */
.nav-link {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    padding: 9px 20px;
    border-radius: 50px;
    transition: color 0.3s ease, background-color 0.3s ease;
    letter-spacing: 0.3px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--secondary);
    background-color: rgba(255, 255, 255, 0.10);
}

.nav-link:hover::after {
    width: 50%;
}

.btn-registrate {
    background-color: var(--secondary);
    color: #00285a;
    font-family: var(--font-titles);
    font-weight: 400;
    font-size: 1.1rem;
    padding: 10px 28px;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 213, 0, 0.35);
}

.btn-registrate:hover {
    background-color: #ffffff;
    color: #00285a;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.4);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile nav */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: rgba(0, 40, 90, 0.97);
        flex-direction: column;
        padding: 15px 0;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    

    

    

    /* Premium Hover Effect */
.nav-link {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    padding: 9px 20px;
    border-radius: 50px;
    transition: color 0.3s ease, background-color 0.3s ease;
    letter-spacing: 0.3px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--secondary);
    background-color: rgba(255, 255, 255, 0.10);
}

.nav-link:hover::after {
    width: 50%;
}

.btn-registrate {
        font-size: 0.95rem;
        padding: 8px 20px;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .nav-hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .nav-logo {
        height: 30px;
    }
}
/* === END NAVBAR STYLES === */

/* === PREMIUM SCROLL REVEAL === */
[data-reveal="hidden"] {
    opacity: 0 !important;
    transform: translateY(25px) !important;
}

[data-reveal="revealed"] {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
/* === END SCROLL REVEAL === */
/* === HERO FORM STYLES === */
.hero-form-container h3 {
    color: var(--primary);
    font-family: var(--font-titles);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 4px;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0.5px;
}

.hero-form-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    text-align: center;
    margin-bottom: 12px;
    font-weight: 400;
}

.hero-lead-form .form-group { margin-bottom: 16px; }

/* Enforce exact same dimensions on all inputs and selects */
.hero-lead-form input[type="text"],
.hero-lead-form input[type="email"],
.hero-lead-form input[type="tel"],
.hero-lead-form select {
    width: 100% !important;
    height: 54px !important;
    padding: 0 16px !important;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1.05rem !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fafafa;
    color: var(--text-main);
    box-sizing: border-box !important;
}

.hero-lead-form input:focus,
.hero-lead-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 95, 171, 0.1);
    background-color: #fff;
}

.hero-lead-form input::placeholder {
    color: #aaa;
}

.phone-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.phone-country-code {
    width: 125px !important;
    height: 54px !important;
    flex-shrink: 0;
    padding: 0 10px !important;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    background-color: #fafafa;
    color: var(--text-main);
    cursor: pointer;
    box-sizing: border-box !important;
}

.phone-country-code:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 95, 171, 0.1);
}

.phone-input-group input {
    flex: 1;
}

.hero-lead-form .btn-block {
    width: 100%;
    margin-top: 6px;
    padding: 16px 28px;
    font-family: var(--font-titles);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}
/* Fix row alignment */
.hero-lead-form .form-group.row {
    margin: 0 !important;
    gap: 12px !important;
    width: 100%;
}
.hero-lead-form .col {
    padding: 0 !important;
    flex: 1;
}

/* Fix phone input squishing */
.hero-lead-form .phone-country-code {
    width: 115px !important;
    flex: 0 0 115px !important;
}
.hero-lead-form .phone-input-group input[type="tel"] {
    flex: 1 !important;
    width: auto !important;
}
/* === END HERO FORM STYLES === */
/* Mascot Background */
.mascot-bg {
    position: absolute;
    bottom: -20px;
    right: 25%;
    transform: scale(1.2);
    transform-origin: bottom center;
    height: 90%;
    max-height: 600px;
    z-index: 0;
    pointer-events: none;
    object-fit: contain;
}

.programs-interactive-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
    min-height: 450px;
}

.programs-tabs-column {
    width: 380px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.program-btn {
    display: flex;
    align-items: center;
    padding: 22px 25px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    color: var(--primary-dark);
    background: #fff;
}
.program-btn:first-child { border-radius: 10px 10px 0 0; }
.program-btn:last-child { border-bottom: none; border-radius: 0 0 10px 10px; }

.program-btn:hover, .program-btn.active {
    background: var(--primary);
    color: var(--white);
}

.program-btn .tab-icon {
    font-size: 1.3rem;
    margin-right: 15px;
    width: 25px;
    text-align: center;
}
.program-btn .tab-title {
    font-weight: 600;
    font-size: 1.05rem;
    flex-grow: 1;
}
.program-btn .tab-arrow {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}
.program-btn.active .tab-arrow {
    transform: translateX(5px);
}

/* Flyout Panels */
.programs-panels-container {
    position: absolute;
    top: 0;
    left: 380px;
    margin-left: 20px;
    width: 450px;
    z-index: 9;
    transition: top 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.program-panel-flyout {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 4px solid var(--secondary);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f0f0f0;
}

.program-panel-flyout.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Per-panel max-height overrides - General landing has 5 categories */
#flyout-sociales { max-height: 420px !important; }
#flyout-derecho  { max-height: 400px !important; /* Sin scroll (caben sus 8) */ }
#flyout-salud    { max-height: 400px !important; /* Sin scroll (caben sus 8) */ }
#flyout-ingenierias { max-height: 400px !important; /* Sin scroll (caben sus 7) */ }
#flyout-artes    { max-height: 240px !important; /* Con scroll pero de buen tama?o */ }

/* Webkit scrollbar for flyout */
.program-panel-flyout::-webkit-scrollbar {
    width: 5px;
}
.program-panel-flyout::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}
.program-panel-flyout::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* List inside flyout */
.program-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.program-bullet-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.3;
}
.program-bullet-list li::before {
    content: "\2022";
    color: var(--primary);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -4px;
}
.program-bullet-list li a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}
.program-bullet-list li a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
    .mascot-bg {
        opacity: 0.2; 
        right: -20%;
    }
    .programs-interactive-wrapper {
        flex-direction: column;
    }
    .programs-tabs-column {
        width: 100%;
    }
    .programs-panels-container {
        position: relative;
        left: 0;
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    .program-panel-flyout {
        position: relative;
        transform: none;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        border-left: none;
        border-top: 4px solid var(--secondary);
        display: none; 
        opacity: 1; 
        visibility: visible;
    }
    .program-panel-flyout.active {
        display: block;
    }
}

/* Update for Campus Cards Hover and CTA Button */
.campus-card {
    outline: 1px solid transparent; 
}
.campus-card:hover {
    box-shadow: 0 0 0 1.5px var(--secondary), 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-5px);
}



/* --- Fix Mascot Overflow / Layering --- */
.programs-section {
    position: relative;
    z-index: 1 !important;
}

/* Place adjacent sections in front of the programs section */
.stats-section,
.campus-section,
.why-us-section,
.testimonials-section,
.alliances-section {
    position: relative;
    z-index: 2 !important;
}

/* Flyout panels must always render above adjacent sections */
.programs-panels-container {
    z-index: 100 !important;
}

/* Guarantee opaque background for campus section to hide mascot beneath it */
.campus-section {
    background-color: var(--white);
}

/* --- Why Us Section --- */
.why-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.why-tab-btn {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
    font-family: var(--font-main);
}
.why-tab-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}
.why-tab-btn.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--primary-dark);
}
.why-panels-container { position: relative; }
.why-panel { display: none; }
.why-panel.active {
    display: block;
    animation: whyFadeIn 0.4s ease forwards;
}
@keyframes whyFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.why-grid { display: grid; gap: 20px; }
.why-grid-4 { grid-template-columns: repeat(4, 1fr); }
.why-grid-3 { grid-template-columns: repeat(3, 1fr); }
.why-grid-1 { grid-template-columns: 1fr; }
.mt-why { margin-top: 20px; }
.why-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 20px;
    color: var(--text-main);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 0 2px var(--secondary), 0 8px 20px rgba(0,0,0,0.08);
}
.why-card-wide { max-width: 640px; margin: 0 auto; width: 100%; }
.why-icon {
    font-size: 2rem;
    color: var(--primary);
    background: var(--bg-light);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--secondary);
    flex-shrink: 0;
}
.why-card p { font-size: 1rem; line-height: 1.45; margin: 0; }
.why-card strong { color: var(--primary); font-weight: 700; }
.pills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}
.titulacion-pill {
    background: var(--bg-light);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0,40,90,0.12);
}
@media (max-width: 992px) {
    .why-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .why-grid-4, .why-grid-3 { grid-template-columns: 1fr; }
}
/* why-us bg override */
.why-us-section { background-color: #00397E !important; }

/* --- FAQ Section --- */
.faq-section {
    background-color: #f0f4f9;
    position: relative;
}
.faq-header .section-title { color: var(--primary-dark); }
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1.5px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item.active {
    border-color: var(--secondary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.09);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-main);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    transition: color 0.2s ease;
}
.faq-question:hover { color: var(--primary); }
.faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.8rem;
    transition: transform 0.35s ease, background 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
    background: var(--secondary);
    color: var(--primary-dark);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
}
.faq-item.active .faq-answer { max-height: 300px; padding: 0 24px 22px; }
.faq-answer p {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-main);
    margin: 0;
    border-top: 1px solid #e8ecf0;
    padding-top: 16px;
}
@media (max-width: 768px) {
    .faq-question { font-size: 0.95rem; padding: 16px 18px; }
    .faq-answer { padding: 0 18px; }
    .faq-item.active .faq-answer { padding: 0 18px 18px; }
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--primary);
    position: relative;
}
.testimonials-section .section-title {
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border-top: 4px solid var(--secondary);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.testimonial-icon {
    color: var(--secondary);
    font-size: 2rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.testimonial-text {
    font-style: italic;
    color: #444;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
    font-family: var(--font-main);
}

.testimonial-author h4 {
    color: var(--primary);
    font-family: var(--font-titles);
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.testimonial-author p {
    color: #777;
    font-size: 0.95rem;
    margin: 0;
}


/* ===== MOBILE: Programs Section Accordion ===== */
@media (max-width: 768px) {
    .programs-interactive-wrapper {
        flex-direction: column;
    }
    .programs-tabs-column {
        width: 100%;
        box-shadow: none;
    }
    /* Each button acts as accordion header */
    .program-btn {
        cursor: pointer;
        border-bottom: 1px solid #e8ecf4;
    }
    .program-btn:last-child { border-bottom: none; }
    /* Panel goes right below its button on mobile */
    .program-btn.mobile-open {
        background: var(--primary);
        color: var(--white);
    }
    .program-btn.mobile-open .tab-title { color: var(--white); }
    .program-btn.mobile-open .tab-arrow { color: var(--secondary); transform: rotate(90deg); }
    .programs-panels-container {
        position: static !important;
        width: 100% !important;
        top: auto !important;
        left: auto !important;
        margin: 0 !important;
        display: none; /* hidden on mobile, JS inserts panels inline */
    }
    /* Inline flyout panels injected by JS */
    .mobile-flyout-inline {
        background: #f4f7fb;
        border-left: 4px solid var(--secondary);
        border-radius: 0 0 10px 10px;
        padding: 15px 20px;
        display: none;
    }
    .mobile-flyout-inline.open { display: block; }
    .mobile-flyout-inline ul {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .mobile-flyout-inline ul li {
        list-style: none !important;
        list-style-type: none !important;
    }
    .mobile-flyout-inline ul li {
        border-bottom: 1px solid #e0e6f0;
        padding: 8px 0;
    }
    .mobile-flyout-inline ul li:last-child { border-bottom: none; }
    .mobile-flyout-inline ul li a {
        color: var(--primary);
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 500;
        display: block;
    }
    .mobile-flyout-inline ul li a:active { color: var(--secondary); }
}

/* ===== MOBILE: Registrate button ===== */
@media (max-width: 768px) {
    .btn-registrate {
        background: linear-gradient(135deg, var(--secondary), #ffc000) !important;
        color: var(--primary-dark) !important;
        font-size: 0.9rem !important;
        padding: 9px 18px !important;
        border-radius: 50px !important;
        font-weight: 700 !important;
        box-shadow: 0 3px 12px rgba(255, 213, 0, 0.45) !important;
        animation: pulse-yellow 2s infinite;
        letter-spacing: 0.5px !important;
    }
    @keyframes pulse-yellow {
        0%, 100% { box-shadow: 0 3px 12px rgba(255, 213, 0, 0.45); }
        50%       { box-shadow: 0 3px 22px rgba(255, 213, 0, 0.75); }
    }
}


/* ===== MOBILE: Floating Registrate Button ===== */
@media (max-width: 768px) {
    /* Hide original registrate button in navbar on mobile */
    .main-navbar .btn-registrate {
        display: none !important;
    }
    /* Floating button */
    .floating-registrate {
        display: flex;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9999;
        background: linear-gradient(135deg, var(--secondary), #ffc000);
        color: var(--primary-dark);
        font-family: var(--font-titles);
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        padding: 14px 24px;
        border-radius: 50px;
        text-decoration: none;
        box-shadow: 0 6px 20px rgba(255, 213, 0, 0.55);
        align-items: center;
        gap: 8px;
        animation: float-pulse 2.5s ease-in-out infinite;
    }
    .floating-registrate i { font-size: 1rem; }
    @keyframes float-pulse {
        0%, 100% { transform: translateY(0);   box-shadow: 0 6px 20px rgba(255,213,0,0.55); }
        50%       { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(255,213,0,0.7); }
    }
}

/* Hide floating btn on desktop */
@media (min-width: 769px) {
    .floating-registrate { display: none !important; }
}

/* Prevent floating btn from covering bottom content on mobile */
@media (max-width: 768px) {
    body { /* body-mobile-padding */
        padding-bottom: 80px;
    }
}

/* ===== Ajustes de responsividad y rendimiento (auditoria 2026-09) ===== */

/* 1. .mascot-bg es position:absolute y .programs-section no la recortaba:
      generaba desplazamiento horizontal en todo ancho menor a 1024px. */
.programs-section {
    overflow-x: clip;
}

/* 2. El campo de telefono es flex:1 pero con min-width:auto no bajaba de su
      ancho intrinseco (214px); con el selector de pais fijo de 125px la fila
      medía 383px y desbordaba por debajo de 384px de pantalla. */
.phone-input-group input {
    min-width: 0;
}
@media (max-width: 380px) {
    .phone-country-code { width: 104px !important; }
}

/* 3. "LICENCIATURA" en Helvetica a 2.6rem mide 305px y no cabe a 320px. */
@media (max-width: 480px) {
    .hero-section h1 { font-size: clamp(1.9rem, 10.5vw, 2.6rem); }
}

/* 4. Zonas tactiles de 44px sin mover nada visualmente. */
.nav-hamburger {
    box-sizing: content-box;
    padding: 12px 8px;
    margin: -12px -8px;
}
@media (max-width: 768px) {
    .social-links a { width: 44px; height: 44px; }
}
.nav-logo-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* 5. backdrop-filter en la barra fija y en cada tarjeta de estadisticas
      obliga a recomponer el desenfoque en cada cuadro del scroll. Sobre un
      degradado suave el resultado es visualmente equivalente sin el filtro. */
@media (max-width: 991px) {
    .main-navbar.scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .stat-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.12);
    }
    .badge {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* 6. Windows no incluye glifos de bandera (Segoe UI Emoji los omite), asi que
      los emoji del selector de pais se veian como "MX", "CO", "US", "ES".
      Esta fuente (Twemoji / twemoji-colr) los aporta; el unicode-range la
      limita a esos caracteres, de modo que el resto del texto sigue en
      var(--font-main).
      IMPORTANTE: el archivo esta recortado a las 4 banderas en uso (MX, CO,
      US, ES) para pesar 7.6 KB en vez de 78 KB. Si se agrega otro pais al
      selector hay que regenerar la fuente (paquete npm
      country-flag-emoji-polyfill) y ampliar el unicode-range; de lo contrario
      esa bandera nueva caera en la fuente del sistema y en Windows volvera a
      verse como letras. */
@font-face {
    font-family: "Twemoji Country Flags";
    unicode-range: U+1F1E8, U+1F1EA, U+1F1F2, U+1F1F4, U+1F1F8, U+1F1FA, U+1F1FD;
    src: url("../fonts/TwemojiCountryFlags.woff2") format("woff2");
    font-display: swap;
}
.hero-lead-form .phone-country-code,
select.phone-country-code,
select.phone-country-code option {
    font-family: "Twemoji Country Flags", var(--font-main);
}

/* 7. Ajuste solicitado: el banner de la seccion de estadisticas se muestra
      estatico. El scroll-reveal del JS (landing-*.js, el querySelectorAll de
      .section-title en la seccion "PREMIUM SCROLL REVEAL") marca TODOS los
      titulos de seccion y los hace entrar con desvanecido y desplazamiento;
      aqui se neutraliza unicamente el de .stats-section. Los demas titulos
      de la pagina conservan su animacion. */
.stats-section .section-title[data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}
