/* ============================================
   MODERN CSS FOR L'ÉTOILE SCHOOL
   ============================================ */

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

:root {
    --primary-color: #d4af37;
    --secondary-color: #8b4513;
    --accent-color: #ff6b6b;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--dark-bg);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: var(--dark-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

/* En móvil: navbar más transparente cuando está sobre el banner */
@media (max-width: 768px) {
    .navbar {
        background: rgba(26, 26, 46, 0.5);
        box-shadow: none;
    }
    
    .navbar.scrolled {
        background: rgba(26, 26, 46, 0.95);
        box-shadow: var(--shadow-md);
    }
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    height: 50px;
    width: auto;
    /* Sin filtros para mantener el color original del logo PNG */
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: var(--transition);
    border-radius: 3px;
}

/* ============================================
   HERO SECTION
   ============================================ */

/* ============================================
   SHOW BANNER
   ============================================ */

.show-banner {
    width: 100%;
    margin-top: 0;
    padding: 3rem 0;
    padding-top: calc(80px + 3rem); /* Espacio para el navbar fijo + padding */
    position: relative;
    background: linear-gradient(135deg, #2d1b4e 0%, #1a0d2e 50%, #4a2c6a 100%);
    /* Fondo púrpura/azul oscuro acorde a la imagen del espectáculo */
    z-index: 1;
}

.show-banner .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.show-banner-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    margin: 0 auto;
}

.show-banner-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.show-banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 70vh;
    border-radius: 12px;
}

/* En móvil: banner fullscreen */
@media (max-width: 768px) {
    .show-banner {
        height: 100vh;
        padding: 0;
        padding-top: 0;
        margin-top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    
    .show-banner .container {
        width: 100%;
        height: 100%;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .show-banner-link {
        width: 100%;
        height: 100%;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }
    
    .show-banner-link:hover {
        transform: none;
        box-shadow: none;
    }
    
    .show-banner-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 0;
        max-height: 100%;
    }
}

@media (max-width: 480px) {
    .show-banner {
        height: 100vh;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 0;
    margin-top: 0;
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    z-index: -1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover, cover;
    z-index: 1;
}

.animated-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    width: auto;
    filter: drop-shadow(2px 2px 8px rgba(0,0,0,0.3));
    animation: fadeInUp 1s ease-out;
}

@media (min-width: 768px) {
    .hero-logo {
        max-height: 300px;
    }
}

@media (min-width: 1024px) {
    .hero-logo {
        max-height: 400px;
    }
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #25D366;
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: #20ba5a;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 10px;
    }
    100% {
        opacity: 0;
        top: 30px;
    }
}

.scroll-indicator p {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ============================================
   SECTION STYLES
   ============================================ */

section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

section.about {
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-2);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Botón para ver reels en la sección de cursos */
.btn-reels-view {
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(220, 38, 127, 0.4);
    font-family: 'Poppins', sans-serif;
}

.btn-reels-view:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(220, 38, 127, 0.6);
}

.btn-reels-view:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-reels-view i {
    font-size: 1.3rem;
}

.btn-reels-view span {
    font-weight: 700;
}

@media (max-width: 768px) {
    .btn-reels-view {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .btn-reels-view i {
        font-size: 1.2rem;
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    background: var(--light-bg);
    position: relative;
    z-index: 1;
    min-height: auto;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: #666;
    line-height: 1.8;
}

/* ============================================
   REELS SECTION (Fullscreen Vertical - TikTok/Instagram Style)
   ============================================ */

.reels-container-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 99999 !important;
    background: #000;
    overflow: hidden;
    display: none;
    pointer-events: auto;
}

.reels-container-fullscreen.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.reels-logo-overlay {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 20px;
    border-radius: 15px;
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: var(--transition);
}

.reels-logo-overlay:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(212, 175, 55, 0.6);
}

.reels-logo {
    height: 60px;
    width: auto;
    /* Sin filtros para mantener el color original del logo PNG */
}

/* Logo más grande y con color en desktop */
@media (min-width: 768px) {
    .reels-logo-overlay {
        padding: 20px 25px;
        border-radius: 20px;
    }
    
    .reels-logo {
        height: 80px;
        /* Mantener color original del logo */
    }
}

.reels-scroll-vertical {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.reels-scroll-vertical::-webkit-scrollbar {
    display: none;
}

.reel-item {
    flex: 0 0 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.reel-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    padding: 3rem 2rem 2rem;
    color: white;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    pointer-events: none;
}

.reel-overlay i {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.reel-overlay span {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.reel-info {
    position: absolute;
    bottom: 280px;
    left: 20px;
    right: 20px;
    z-index: 6;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
    pointer-events: none;
}

.reel-info h4 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: white;
    line-height: 1.2;
}

.reel-info p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: rgba(255,255,255,0.95);
    margin: 0;
    line-height: 1.5;
    max-width: 90%;
}

.reel-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    text-decoration: none;
}

/* Ocultar navbar cuando está en reels */
body.reels-active .navbar {
    display: none !important;
}

/* Prevenir scroll del body cuando está en reels */
body.reels-active {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
}

/* Botón de salida de reels */
.reels-close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    background: rgba(220, 53, 69, 0.9);
    border-radius: 25px;
    padding: 12px 20px;
    display: none; /* Oculto por defecto */
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.reels-container-fullscreen.active .reels-close {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.reels-close:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.6);
}

.reels-close i {
    font-size: 1.2rem;
}

.reels-close span {
    font-size: 0.9rem;
}

@media (max-width: 767px) {
    .reels-close span {
        display: none;
    }
    
    .reels-close {
        width: 45px;
        height: 45px;
        padding: 0;
        border-radius: 50%;
    }
}

/* Indicador de scroll - Lado derecho abajo */
.reels-scroll-indicator {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
    pointer-events: auto;
    animation: bounceIndicator 2s infinite;
    opacity: 1;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.reels-scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.reels-scroll-indicator:hover .scroll-arrow {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.7);
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
    animation: bounceArrow 1.5s infinite;
}

.reels-scroll-indicator p {
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

@keyframes bounceIndicator {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounceArrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

@media (min-width: 768px) {
    .reels-scroll-indicator {
        bottom: 40px;
        right: 40px;
    }
    
    .scroll-arrow {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .reels-scroll-indicator p {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* Efectos de estrellas/magia */
.magic-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.star-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--primary-color), 0 0 12px var(--primary-color);
    animation: starFloat 3s infinite ease-in-out;
    opacity: 0;
}

.star-particle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 4px white;
    animation: starTwinkle 1.5s infinite;
}

@keyframes starFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.5);
    }
}

/* Estrellas más grandes ocasionales */
.star-particle.large {
    width: 8px;
    height: 8px;
    animation-duration: 4s;
}

.star-particle.large::before {
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
}

/* ============================================
   COURSES SECTION
   ============================================ */

.courses {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.course-card {
    background: white;
    padding: 0;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.course-card.reel-card {
    cursor: pointer;
    padding: 0;
}

.course-card.reel-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-2);
    transform: scaleX(0);
    transition: var(--transition);
}

.course-card:hover::before {
    transform: scaleX(1);
}

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

/* Imagen tipo reel vertical para cursos */
.course-reel-image {
    width: 100%;
    aspect-ratio: 9/16; /* Formato vertical tipo reel */
    position: relative;
    overflow: hidden;
    background: #000;
    border-radius: 15px 15px 0 0;
}

.course-reel-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-reel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.course-card.reel-card:hover .course-reel-overlay {
    opacity: 1;
}

.course-reel-overlay i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: var(--primary-color);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
}

.course-reel-overlay span {
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.course-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.course-info p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
    flex: 1;
}

.course-image {
    width: 100%;
    height: 200px;
    margin: 0;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    position: relative;
    background: var(--gradient-3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: var(--gradient-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.course-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.course-card p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.course-levels {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.badge {
    background: var(--gradient-1);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.courses-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ============================================
   FACILITIES SECTION
   ============================================ */

.facilities {
    background: var(--light-bg);
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.facility-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.facility-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.facility-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.facility-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.facility-item p {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    background: var(--gradient-1);
    color: var(--text-light);
}

.contact .section-title,
.contact .section-subtitle {
    color: var(--text-light);
}

.contact-content {
    margin-top: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.contact-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.contact-card p {
    opacity: 0.9;
    line-height: 1.8;
}

.contact-card a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--primary-color);
}

.social-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.social-btn {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-dark);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-btn:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.social-btn i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.whatsapp-btn i {
    color: #25D366;
}

.instagram-btn i {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-btn span {
    font-size: 1.5rem;
    font-weight: 700;
}

.social-btn p {
    color: #666;
    font-size: 0.9rem;
}

.inscription-banner {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 3rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.current-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
    text-transform: capitalize;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
}

.banner-content i {
    font-size: 3rem;
    color: var(--primary-color);
}

.banner-text {
    flex: 1;
}

.banner-text h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.banner-text p {
    opacity: 0.9;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    text-align: center;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    /* Sin filtros para mantener el color original del logo PNG */
    margin-bottom: 1rem;
}

.footer-logo {
    text-align: center;
}

.footer-logo p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

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

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */

.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 30px rgba(37, 211, 102, 0.5);
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: pulse 2s infinite;
    opacity: 0.6;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(26, 26, 46, 0.98);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 1rem;
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
    }

    .floating-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .courses-grid,
    .facilities-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

/* Smooth scroll behavior */
html {
    scroll-padding-top: 80px;
}
