/* Reset y Variables Globales */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== PRELOADER MODERNO Y FUNCIONAL ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
    position: relative;
}

.loader img {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: logoFloat 3s ease-in-out infinite;
}




/* Animaciones simples y fluidas */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: translateY(-10px) scale(1.03);
        box-shadow: 0 25px 45px rgba(0, 0, 0, 0.25);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
        border-top-color: rgba(255, 255, 255, 0.8);
    }
    50% {
        border-top-color: rgba(255, 255, 255, 0.5);
    }
    100% {
        transform: rotate(360deg);
        border-top-color: rgba(255, 255, 255, 0.8);
    }
}

@keyframes spinReverse {
    0% {
        transform: rotate(0deg);
        border-bottom-color: rgba(255, 255, 255, 0.4);
    }
    50% {
        border-bottom-color: rgba(255, 255, 255, 0.2);
    }
    100% {
        transform: rotate(-360deg);
        border-bottom-color: rgba(255, 255, 255, 0.4);
    }
}

/* Texto de carga opcional */
.loading-text {
    color: white;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 20px;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 0.6;
        letter-spacing: 3px;
    }
    50% {
        opacity: 1;
        letter-spacing: 4px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .loader img {
        width: 100px;
        height: 100px;
    }
    
    .spinner_oficial {
        width: 50px;
        height: 50px;
        margin: 20px auto 0;
    }
    
    .loading-text {
        font-size: 12px;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .loader img {
        width: 80px;
        height: 80px;
        border-radius: 15px;
    }
    
    .spinner_oficial {
        width: 40px;
        height: 40px;
        margin: 15px auto 0;
    }
    
    .loading-text {
        font-size: 11px;
        letter-spacing: 2px;
    }
}

/* Para usuarios que prefieren reducir animaciones */
@media (prefers-reduced-motion: reduce) {
    .loader img,
    .spinner_oficial,
    .spinner_oficial::after,
    .loading-text {
        animation: none;
    }
    
    .loader img {
        border: 3px solid rgba(255, 255, 255, 0.5);
    }
    
    .spinner_oficial {
        border-top: 3px solid rgba(255, 255, 255, 0.8);
    }
}



/* ===== HEADER MEJORADO ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

.header.scrolled {
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.header.hidden {
    transform: translateY(-100%);
}

.navbar {
    padding: 0;
}

.container-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    transition: transform 0.3s;
}

.header.scrolled .logo {
    width: 40px;
    height: 40px;
}

.logo:hover {
    transform: rotate(360deg) scale(1.1);
}

.logo-text h3 {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: -3px;
    font-weight: 500;
}

.logo-text h2 {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1;
}

.header.scrolled .logo-text h2 {
    font-size: 16px;
}

.logo-text .slogan {
    font-size: 10px;
    color: var(--text-light);
    font-style: italic;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-color);
}

.btn-contacto {
    background: var(--accent-color);
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 20px;
    transition: all 0.3s;
}

.btn-contacto::after {
    display: none;
}

.btn-contacto:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    list-style: none;
    padding: 8px 0;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== HERO SECTION COMPACTA ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 0 40px;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
    gap: 40px;
}

.hero-text {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.title-line {
    display: block;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    opacity: 0.9;
    animation: fadeInDown 1s ease-out;
}

.title-main {
    display: block;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.title-highlight {
    display: block;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    background: linear-gradient(to right, #fff, #a5f3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.4s backwards;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 8px;
    animation: fadeIn 1s ease-out 0.6s backwards;
    font-weight: 600;
}

.hero-description {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    opacity: 0.95;
    margin-bottom: 30px;
    animation: fadeIn 1s ease-out 0.8s backwards;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 1s backwards;
}

.btn {
    padding: 12px 32px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 1.2s backwards;
    max-width: 800px;
}

.stat-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 20px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 160px;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.25);
}

.stat-icon {
    font-size: 1.8rem;
    opacity: 0.9;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-info p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid white;
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 3px;
    height: 8px;
    background: white;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

@keyframes scroll {
    0% { top: 8px; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}

/* ===== SECCIONES COMUNES ===== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-1);
    color: white;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-header.light .section-title {
    color: white;
}

.title-underline {
    width: 60px;
    height: 3px;
    background: var(--gradient-1);
    margin: 0 auto 16px;
    border-radius: 2px;
}

.section-description {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.section-header.light .section-description {
    color: rgba(255,255,255,0.9);
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

.about-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: var(--gradient-1);
    color: white;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.badge-year {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.badge-text {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.about-text > p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.7;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 16px;
    padding: 18px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.feature-text p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== LEVELS SECTION ===== */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.level-card {
    background: white;
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.level-card:hover::before {
    transform: scaleX(1);
}

.level-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.level-card.featured {
    background: var(--gradient-1);
    color: white;
    transform: scale(1.02);
}

.level-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.level-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
}

.level-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.level-card.featured .level-icon {
    background: rgba(255,255,255,0.2);
}

.level-card:hover .level-icon {
    transform: rotate(360deg) scale(1.1);
}

.level-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.level-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.level-card.featured p {
    color: rgba(255,255,255,0.9);
}

.level-features {
    list-style: none;
    text-align: left;
}

.level-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.level-card.featured .level-features li {
    border-bottom-color: rgba(255,255,255,0.2);
}

.level-features li:last-child {
    border-bottom: none;
}

.level-features i {
    color: var(--success);
    font-size: 0.8rem;
}

.level-card.featured .level-features i {
    color: white;
}

.schedule-section {
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.95) 0%, rgba(42, 139, 191, 0.95) 100%);
    padding: 50px;
    border-radius: 16px;
    text-align: center;
    color: white;
}

.schedule-section h3 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 700px;
    margin: 0 auto;
}

.schedule-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s;
    border: 2px solid rgba(255,255,255,0.2);
}

.schedule-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.25);
}

.schedule-card i {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.schedule-card h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.schedule-time {
    font-size: 1.2rem;
    font-weight: 600;
}

/* ===== VALUES SECTION ===== */
.values {
    background: url('imagenes/values-bg.jpg') center/cover fixed;
    position: relative;
}

.values-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   background: linear-gradient(135deg, rgba(26, 95, 122, 0.95) 0%, rgba(42, 139, 191, 0.95) 100%);
}

.values .container {
    position: relative;
    z-index: 1;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.value-card {
    height: 250px;
    perspective: 1000px;
    cursor: pointer;
}

.value-front, .value-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.value-front {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
}

.value-front i {
    font-size: 3.2rem;
    margin-bottom: 16px;
}

.value-front h3 {
    font-size: 1.5rem;
}

.value-back {
    background: white;
    color: var(--text-dark);
    transform: rotateY(180deg);
}

.value-card:hover .value-front {
    transform: rotateY(180deg);
}

.value-card:hover .value-back {
    transform: rotateY(0);
}

.value-back p {
    text-align: center;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== GALLERY SECTION ===== */
.gallery {
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 250px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.gallery-overlay p {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
    
}

.contact-info h3, .contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 25px;
    padding: 18px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s;
}

.contact-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.contact-item i {
    width: 45px;
    height: 45px;
    background: var(--gradient-1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--gradient-1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 45px 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
     color: white;
}

.form-group i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.form-group textarea ~ i {
    top: 20px;
    transform: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    color: white;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    position: relative;
}

.footer-content {
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.footer-logo h3 {
    font-size: 1.2rem;
    line-height: 1.3;
}

.footer-description {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 8px;
}

.footer-links i {
    font-size: 10px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer-contact i {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    margin: 0;
    font-size: 0.9rem;
}

.footer-slogan {
    font-style: italic;
}

.scroll-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: var(--gradient-1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN MEJORADO ===== */

/* Tablets y Laptops Pequeñas */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .levels-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .level-card.featured {
        transform: scale(1);
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .hero-stats {
        gap: 15px;
    }
    
    .stat-card {
        padding: 18px 22px;
        min-width: 140px;
    }
    
    .stat-icon {
        font-size: 1.6rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
}

/* Tablets en Vertical y Móviles Grandes */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 30px 20px;
        transition: left 0.3s;
        box-shadow: var(--shadow-lg);
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 12px 0;
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-light);
        margin-top: 10px;
        margin-left: 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 70px 0 30px;
    }

    .hero-content {
        gap: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 12px;
    }

    .stat-card {
        padding: 15px 20px;
        min-width: 120px;
    }

    .stat-icon {
        font-size: 1.4rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-info p {
        font-size: 0.85rem;
    }

    .levels-grid,
    .values-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .schedule-section {
        padding: 40px 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    section {
        padding: 60px 0;
    }
}

/* Móviles Pequeños */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }

    .title-highlight {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        width: 100%;
    }

    .stat-card {
        width: 100%;
        max-width: 250px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 28px;
        font-size: 13px;
    }

    .about-badge {
        padding: 12px;
    }

    .badge-year {
        font-size: 1.5rem;
    }

    .schedule-section {
        padding: 30px 20px;
    }

    .schedule-section h3 {
        font-size: 1.5rem;
    }
}

/* Laptops Grandes y Escritorios */
@media (min-width: 1440px) {
    .container {
        max-width: 1300px;
    }
    
    .container-nav {
        max-width: 1500px;
    }
}

/* Utilidades */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }



/* ===== MEJORAS PARA MENÚ MÓVIL ===== */
/* Agregar este CSS al final de estilos_index.css */

@media (max-width: 768px) {
    /* Menú principal móvil mejorado */
    .nav-menu {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        padding: 40px 25px;
        overflow-y: auto;
        z-index: 10000;
        position: fixed;
        top: 70px;
    }

    /* Asegurar que el header esté por encima del video */
    .header {
        z-index: 10001;
        position: fixed;
    }

    /* Enlaces principales con iconos */
    .nav-menu > li {
        margin-bottom: 8px;
    }

    .nav-link {
        padding: 16px 20px;
        width: 100%;
        border-bottom: none;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        color: white !important;
        font-size: 16px;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 15px;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: translateX(5px);
        color: white !important;
    }

    .nav-link::after {
        display: none;
    }

    /* Ocultar Inicio y Galería en móvil */
    .nav-menu > li:nth-child(1),
    .nav-menu > li:nth-child(5) {
        display: none;
    }

    /* Agregar iconos a los enlaces principales (ajustados sin Inicio ni Galería) */
    .nav-menu > li:nth-child(2) .nav-link::before {
        content: '\f19c';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
    }

    .nav-menu > li:nth-child(3) .nav-link::before {
        content: '\f19d';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
    }

    .nav-menu > li:nth-child(4) .nav-link::before {
        content: '\f004';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
    }

    .nav-menu > li:nth-child(6) .nav-link::before {
        content: '\f084';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
    }

    /* Dropdown mejorado */
    .dropdown {
        position: relative;
    }

    .dropdown > .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown > .nav-link i {
        margin-left: auto;
        transition: transform 0.3s ease;
        font-size: 14px;
    }

    .dropdown.active > .nav-link i {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        max-height: 0;
        overflow: hidden;
        box-shadow: none;
        background: transparent;
        margin: 8px 0 0 0;
        padding: 0;
        transition: all 0.4s ease;
    }

    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 300px;
    }

    .dropdown-menu li {
        margin-bottom: 6px;
    }

    .dropdown-menu li a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 20px;
        color: white !important;
        text-decoration: none;
        font-size: 15px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        margin-left: 15px;
        transition: all 0.3s ease;
    }

    .dropdown-menu li a:hover {
        background: rgba(255, 255, 255, 0.2);
        padding-left: 25px;
        transform: translateX(5px);
    }

    .dropdown-menu li a i {
        font-size: 16px;
        width: 20px;
        text-align: center;
    }

    /* Botón de contacto en móvil */
    .btn-contacto {
        background: white !important;
        color: #667eea !important;
        padding: 16px 20px !important;
        border-radius: 12px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 12px;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    }

    .btn-contacto::before {
        content: '\f0e0';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 16px;
    }

    .btn-contacto:hover {
        background: rgba(255, 255, 255, 0.95) !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
    }

    /* Animación de entrada del menú */
    .nav-menu.active {
        animation: slideInFromLeft 0.4s ease-out;
    }

    @keyframes slideInFromLeft {
        from {
            transform: translateX(-100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    /* Estilo del toggle mejorado */
    .menu-toggle {
        padding: 10px;
        background: rgba(102, 126, 234, 0.1);
        border-radius: 8px;
        transition: all 0.3s ease;
        position: relative;
        z-index: 10001;
    }

    .menu-toggle:hover {
        background: rgba(102, 126, 234, 0.2);
    }

    .menu-toggle span {
        background: #667eea !important;
        height: 3px;
    }

    .menu-toggle.active {
        background: rgba(102, 126, 234, 0.15);
    }

    .menu-toggle.active span {
        background: #667eea !important;
    }

    /* Separador visual entre secciones (ajustado sin Inicio) */
    .nav-menu > li:nth-child(4)::after {
        content: '';
        display: block;
        height: 1px;
        background: rgba(255, 255, 255, 0.2);
        margin: 15px 0;
    }
}

/* Para móviles pequeños */
@media (max-width: 480px) {
    .nav-menu {
        padding: 30px 20px;
    }

    .nav-link {
        padding: 14px 18px;
        font-size: 15px;
    }

    .dropdown-menu li a {
        padding: 12px 18px;
        font-size: 14px;
    }
}




/* ===== ACTUALIZACIÓN DE COLORES INSTITUCIONALES ===== */
:root {
    --primary-color: #1e3a8a; /* Azul institucional */
    --secondary-color: #dc2626; /* Rojo institucional */
    --accent-color: #059669; /* Verde institucional */
    --accent-color-light: #10b981;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --gray-light: #f1f5f9;
    --gradient-1: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    --gradient-2: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    --gradient-3: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

/* Actualizar botones principales */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background: #1e40af;
    border-color: #1e40af;
}

.btn-secondary:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

/* Header con borde rojo */
.header {
    border-bottom: 3px solid var(--secondary-color);
}

/* Enlace de administración */
.admin-link .nav-link {
    background: var(--gradient-3);
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 20px;
    font-weight: 600;
}

.admin-link .nav-link:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* En estilos_index.css */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 15px;
    font-size: 16px;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        position: fixed;
        top: auto;
        bottom: 20px;
        transform: none;
    }
    
    .lightbox-prev {
        left: 20px;
    }
    
    .lightbox-next {
        right: 20px;
    }
}

/* ===== ESTILOS PARA LA GALERÍA CON PESTAÑAS ===== */

/* Contenedor de pestañas */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    padding: 0 20px;
}

/* Cada pestaña */
.gallery-tab {
    padding: 12px 25px;
    background: var(--gray-light);
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    box-shadow: var(--shadow-sm);
}

.gallery-tab:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.gallery-tab.active {
    background: var(--gradient-1);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

.gallery-tab i {
    font-size: 16px;
}

/* Contenedor de cada categoría */
.gallery-category {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.gallery-category.active {
    display: block;
}

.gallery-category-title {
    text-align: center;
    margin-bottom: 35px;
    color: var(--text-dark);
    font-size: 26px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.gallery-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 2px;
}

/* Mensaje cuando no hay imágenes */
.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--gray-light);
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
}

.gallery-empty i {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.gallery-empty p {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 500;
}

/* Grid de imágenes (ya existe pero verifica que esté bien) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Para escritorio: 4 columnas */
@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Para tablets: 3 columnas */
@media (max-width: 1199px) and (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Para móviles: 2 columnas */
@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-tabs {
        gap: 10px;
    }
    
    .gallery-tab {
        padding: 10px 20px;
        font-size: 14px;
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }
}

/* Para móviles pequeños: 1 columna */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-tab {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .gallery-tab i {
        font-size: 14px;
    }
}

/* Estilos para los items de galería (asegurar que estén presentes) */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 250px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(37, 99, 235, 0.85) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 28px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.gallery-overlay p {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.hero-buttons a{
    color: white;
}


/* Sección Plataforma Digital */
.digital-platform {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
    position: relative;
    overflow: hidden;
}

.digital-platform::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #1e3c72, #2a5298, #1e3c72);
}

.video-container {
    max-width: 900px;
    margin: 0 auto 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(30, 60, 114, 0.15);
}

.video-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.welcome-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay-institucional {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(30, 60, 114, 0.4) 0%,
        rgba(42, 82, 152, 0.3) 50%,
        rgba(30, 60, 114, 0.4) 100%
    );
    pointer-events: none;
}

.video-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.video-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #1e3c72;
    color: #1e3c72;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
}

.video-btn:hover {
    background: #1e3c72;
    color: white;
    transform: scale(1.1);
}

/* Reemplaza la animación float existente por esta nueva animación de zoom */
.floating-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
    animation: gentleZoom 4s ease-in-out infinite;
    transform-origin: center;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.floating-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    animation: logoPulse 8s ease-in-out infinite;
    transform-origin: center;
}

/* Animación principal del contenedor */
@keyframes gentleZoom {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    25% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    }
    50% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.22);
    }
    75% {
        transform: scale(1.03);
        box-shadow: 0 7px 22px rgba(0, 0, 0, 0.23);
    }
}

/* Animación sutil de pulso para la imagen */
@keyframes logoPulse {
    0%, 40%, 80%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    20%, 60% {
        transform: scale(0.97);
        opacity: 0.95;
    }
}

/* Efecto de brillo sutil */
.floating-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: shine 6s linear infinite;
    z-index: 1;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.platform-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(30, 60, 114, 0.1);
    border-top: 4px solid #2a5298;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(30, 60, 114, 0.15);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
}

.info-card h3 {
    color: #1e3c72;
    margin-bottom: 10px;
    font-size: 18px;
}

.info-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.digital-cta {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 15px;
    margin-top: 50px;
    color: white;
    position: relative;
    overflow: hidden;
}

.digital-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: moveBackground 20s linear infinite;
    z-index: 1;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

.digital-cta > * {
    position: relative;
    z-index: 2;
}

.digital-cta h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: white;
}

.digital-cta p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 220px;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.cta-buttons .btn-primary {
    background: white;
    color: #1e3c72;
    border: 2px solid white;
}

.cta-buttons .btn-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
}

.video-fallback img {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.video-fallback p {
    font-size: 18px;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .video-container {
        margin: 0 15px 30px;
    }
    
    .floating-logo {
        width: 60px;
        height: 60px;
        top: 15px;
        left: 15px;
    }
    
    .platform-info {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .digital-cta {
        margin: 30px 15px 0;
        padding: 30px 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .video-controls {
        bottom: 10px;
        right: 10px;
    }
    
    .video-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Ocultar tarjetas de plataforma en móviles */
@media (max-width: 768px) {
    .platform-info {
        display: none;
    }
}


/* Ocultar logo flotante en móviles */
@media (max-width: 768px) {
    .floating-logo {
        display: none !important;
    }
}



/* ===== BOTÓN DE AYUDA FLOTANTE ===== */
.help-button {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a5f7a 0%, #2a8bbf 100%);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(26, 95, 122, 0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-help 2s infinite;
}

.help-button:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 40px rgba(26, 95, 122, 0.4);
}

.help-panel {
    position: fixed;
    bottom: 160px;
    right: 25px;
    width: 300px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.help-panel.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.help-header {
    background: linear-gradient(135deg, #1a5f7a 0%, #2a8bbf 100%);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.help-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.help-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.help-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.help-content {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.help-section {
    margin-bottom: 25px;
}

.help-section h4 {
    color: #1a5f7a;
    font-size: 16px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-section li {
    margin-bottom: 10px;
    padding-left: 5px;
}

.help-link {
    color: #2a8bbf;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.help-link:hover {
    background: #f1f5f9;
    color: #1a5f7a;
    padding-left: 15px;
}

.help-link i {
    font-size: 14px;
    width: 20px;
}

.emergency-contact {
    background: #fff5f5;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    border-left: 4px solid #dc2626;
}

.emergency-contact h5 {
    color: #dc2626;
    margin: 0 0 10px 0;
    font-size: 14px;
}

.emergency-contact p {
    color: #666;
    font-size: 12px;
    margin: 5px 0;
}

.emergency-contact strong {
    color: #1a5f7a;
}

.help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.help-overlay.active {
    opacity: 1;
    pointer-events: all;
}

@keyframes pulse-help {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(26, 95, 122, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 10px 40px rgba(26, 95, 122, 0.5);
        transform: scale(1.05);
    }
}

/* Responsive - MÓVILES */
@media (max-width: 768px) {
    .help-button {
        bottom: 110px; /* Subido de 80px a 110px */
        right: 10px;
        width: 58px;
        height: 58px;
        font-size: 22px;
    }
    
    .help-panel {
        bottom: 180px; /* Ajustado acorde al botón */
        right: 20px;
        width: calc(100vw - 40px);
        max-width: 320px;
        max-height: 70vh; /* Limitar altura */
    }
    
    .help-content {
        max-height: 60vh;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .help-button {
        bottom: 100px; /* Subido de 70px a 100px */
        right: 10px;
        width: 48px;
        height: 48px;
        font-size: 21px;
        box-shadow: 0 8px 25px rgba(26, 95, 122, 0.4);
    }
    
    .help-panel {
        bottom: 170px; /* Ajustado acorde al botón */
        right: 10px;
        width: calc(100vw - 36px);
    }
    
    /* En móviles muy pequeños, subir aún más */
    @media (max-height: 700px) {
        .help-button {
            bottom: 95px;
        }
        
        .help-panel {
            bottom: 165px;
            max-height: 60vh;
        }
        
        .help-content {
            max-height: 50vh;
        }
    }
}

/* Mejoras adicionales para mejor visibilidad */
@media (max-width: 768px) {
    .help-button {
        /* Agregar borde blanco para contraste */
        border: 3px solid rgba(255, 255, 255, 0.9);
        /* Aumentar la animación de pulso */
        animation: pulse-help-mobile 1.5s infinite;
    }
    
    /* Diferente animación para móviles */
    @keyframes pulse-help-mobile {
        0%, 100% {
            box-shadow: 0 8px 25px rgba(26, 95, 122, 0.4);
            transform: scale(1);
        }
        50% {
            box-shadow: 0 8px 30px rgba(26, 95, 122, 0.6), 0 0 0 10px rgba(26, 95, 122, 0.1);
            transform: scale(1.08);
        }
    }
    
    /* Asegurar que no se superponga con otros botones */
    .scroll-to-top {
        bottom: 30px; /* Asegurar espacio */
    }
}

/* Para pantallas muy cortas (como iPhone SE) */
@media (max-height: 600px) {
    .help-button {
        bottom: 90px; /* Un poco menos para pantallas muy cortas */
        width: 54px;
        height: 54px;
    }
    
    .help-panel {
        bottom: 160px;
        max-height: 50vh;
    }
}





.badge-new {
    background: #FF5722;
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
}

.app-link {
    border-top: 1px solid #eee;
    margin-top: 10px;
    padding-top: 10px;
}

