
/* --- base.css --- */
/* Contiene variables, reseteo de estilos y estilos globales del body. */

:root {
    /* Colores base actualizados */
    --azul-claro: #325a9f;
    --azul-oscuro: #213977;
    --gris-claro-transparente: rgba(165, 164, 164, 0.29);
    --footer-gris-transparente: rgba(165, 164, 164, 0.08);

    --accent: #4CC9F0;
    --gray-100: #F5F7FA;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E0;
    --gray-400: #9AA5B1;
    --gray-800: #2D3748;
    --dark-card: #1A202C;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.3);

    /* Tipografías */
    --font-bebas: 'Bebas Neue', sans-serif;
    --font-cursive: 'Dancing Script', cursive;
    --font-monsieur: 'Monsieur La Doulaise', cursive;
    --font-maven: 'Maven Pro', sans-serif;
    --font-pt-sans: 'PT Sans', sans-serif;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--gray-100);
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-claro), var(--azul-oscuro));
    background-image: 
        linear-gradient(135deg, var(--azul-oscuro), var(--azul-claro), var(--azul-oscuro)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    overflow-x: hidden;
    transition: var(--transition);
}

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

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Selección de texto */
::selection {
    background: var(--accent);
    color: white;
}

/* --- components.css --- */
/* Estilos para elementos reutilizables como botones, modales, etc. */

/* Botones */
.btn {
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    font-family: var(--font-main);
    font-size: 1rem;
}

.btn-login {
    background: transparent;
    color: white;
    border: 2px solid white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.btn-login:hover {
    background: white;
    color: var(--azul-oscuro);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

.btn-login:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--azul-claro) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(76, 201, 240, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

/* Títulos de Sección Genéricos */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 2.8rem;
    font-family: var(--font-bebas);
    color: var(--gray-100);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}
.section-title p {
    color: var(--gray-100);
    opacity: 0.8;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Modal BIEN PERRÓN */
.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.9); 
    z-index: 2000; 
    align-items: center; 
    justify-content: center; 
    backdrop-filter: blur(10px); 
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.active { 
    display: flex;
    opacity: 1;
}

.modal-content { 
    background: linear-gradient(145deg, 
                rgba(26, 32, 44, 0.95) 0%, 
                rgba(33, 57, 119, 0.3) 50%,
                rgba(76, 201, 240, 0.2) 100%);
    border-radius: 25px; 
    width: 90%; 
    max-width: 500px; 
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(76, 201, 240, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden; 
    transform: scale(0.8) translateY(50px); 
    opacity: 0; 
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
}

.modal.active .modal-content { 
    transform: scale(1) translateY(0); 
    opacity: 1; 
}

/* Efecto de borde animado */
.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
                var(--azul-claro), 
                var(--accent), 
                var(--azul-oscuro));
    opacity: 0.8;
    animation: borderShimmer 3s ease-in-out infinite;
}

.modal-header { 
    background: linear-gradient(135deg, 
                rgba(33, 57, 119, 0.8) 0%, 
                rgba(50, 90, 159, 0.6) 50%,
                rgba(76, 201, 240, 0.4) 100%);
    padding: 40px 30px 30px; 
    text-align: center; 
    color: white; 
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(76, 201, 240, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(50, 90, 159, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.modal-header h2 { 
    font-size: 2.5rem; 
    font-family: var(--font-bebas);
    letter-spacing: 2px;
    margin: 0;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #ffffff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.modal-body { 
    padding: 40px 30px; 
    position: relative;
}

/* Partículas para el modal */
.modal-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.modal-particle {
    position: absolute;
    border-radius: 50%;
    animation: modalFloat 6s ease-in-out infinite;
}

.modal-particle:nth-child(1) {
    width: 6px;
    height: 6px;
    top: 20%;
    left: 10%;
    background: rgba(76, 201, 240, 0.5);
    animation-delay: 0s;
}

.modal-particle:nth-child(2) {
    width: 4px;
    height: 4px;
    top: 60%;
    left: 85%;
    background: rgba(255, 255, 255, 0.4);
    animation-delay: 2s;
}

.modal-particle:nth-child(3) {
    width: 8px;
    height: 8px;
    top: 80%;
    left: 15%;
    background: rgba(50, 90, 159, 0.4);
    animation-delay: 4s;
}

.form-group { 
    margin-bottom: 25px; 
    position: relative;
    z-index: 2;
}

.form-control { 
    width: 100%; 
    padding: 18px 20px 18px 50px; 
    border-radius: 15px; 
    border: 2px solid rgba(255, 255, 255, 0.1); 
    background: rgba(0, 0, 0, 0.3); 
    color: var(--gray-100); 
    font-size: 1rem; 
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    font-family: var(--font-main);
    backdrop-filter: blur(10px);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control:focus { 
    outline: none; 
    border-color: var(--accent); 
    box-shadow: 
        0 0 0 3px rgba(76, 201, 240, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* Iconos dentro de los inputs */
.form-group {
    position: relative;
}

.form-group::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    z-index: 3;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-group:first-child::before {
    content: '\f0e0'; /* Icono de email */
}

.form-group:nth-child(2)::before {
    content: '\f023'; /* Icono de contraseña */
}

.form-control:focus ~ .form-group::before {
    color: var(--accent);
}

.close-modal { 
    position: absolute; 
    top: 20px; 
    right: 20px; 
    background: rgba(255, 255, 255, 0.1); 
    border: none; 
    color: white; 
    font-size: 1.8rem; 
    cursor: pointer; 
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-modal:hover { 
    background: rgba(255, 255, 255, 0.2); 
    transform: rotate(90deg) scale(1.1);
    color: var(--accent);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Botón de submit mejorado */
.modal-body .btn-primary {
    width: 100%;
    padding: 18px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--azul-claro) 100%);
    border: none;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.modal-body .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.modal-body .btn-primary:hover::before {
    left: 100%;
}

.modal-body .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 30px rgba(76, 201, 240, 0.4),
        0 0 0 1px rgba(76, 201, 240, 0.2);
}

/* Enlaces adicionales */
.modal-links {
    text-align: center;
    margin-top: 25px;
    position: relative;
    z-index: 2;
}

.modal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0 10px;
}

.modal-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Animaciones */
@keyframes borderShimmer {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

@keyframes modalFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-15px) translateX(10px);
    }
    50% {
        transform: translateY(-5px) translateX(-5px);
    }
    75% {
        transform: translateY(-10px) translateX(8px);
    }
}

/* Efecto de carga en el botón */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        max-width: 90%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 30px 20px 25px;
    }
    
    .modal-header h2 {
        font-size: 2rem;
    }
    
    .modal-body {
        padding: 30px 20px;
    }
    
    .form-control {
        padding: 15px 15px 15px 45px;
    }
    
    .close-modal {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .modal-header h2 {
        font-size: 1.8rem;
    }
    
    .modal-body {
        padding: 25px 15px;
    }
    
    .form-control {
        padding: 14px 14px 14px 40px;
        font-size: 0.9rem;
    }
    
    .modal-body .btn-primary {
        padding: 16px 25px;
        font-size: 1rem;
    }
}

/* Botón Flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 
        0 5px 15px rgba(0,0,0,0.3),
        0 0 0 0 rgba(37, 211, 102, 0.7);
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    animation: pulseWhatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.4),
        0 0 0 10px rgba(37, 211, 102, 0.2);
    animation: none;
}

@keyframes pulseWhatsapp {
    0% {
        box-shadow: 
            0 5px 15px rgba(0,0,0,0.3),
            0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 
            0 5px 15px rgba(0,0,0,0.3),
            0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 
            0 5px 15px rgba(0,0,0,0.3),
            0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Estilos específicos para la sección del taller gratuito */
        .taller-gratuito {
            background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul-claro) 100%);
            color: white;
            padding: 80px 0;
            position: relative;
            overflow: hidden;
        }
        
        .taller-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            position: relative;
            z-index: 2;
        }
        
        .taller-header {
            text-align: center;
            margin-bottom: 50px;
        }
        
        .taller-badge {
            display: inline-block;
            background: var(--accent);
            color: white;
            padding: 8px 20px;
            border-radius: 30px;
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: var(--shadow);
        }
        
        .taller-title {
            font-size: 2.5rem;
            margin-bottom: 15px;
            font-weight: 700;
        }
        
        .taller-subtitle {
            font-size: 1.2rem;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto;
        }
        
        .taller-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            align-items: center;
        }
        
        .taller-info {
            background: var(--gris-claro-transparente);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 30px;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }
        
        .taller-info:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
        }
        
        .taller-instructor {
            display: flex;
            align-items: center;
            margin-bottom: 30px;
            gap: 15px;
        }
        
        .instructor-avatar {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            overflow: hidden;
            margin-right: 15px;
            border: 3px solid var(--accent);
            box-shadow: var(--shadow);
        }
        
        .instructor-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        
        .instructor-info h4 {
            margin: 0 0 5px 0;
            font-size: 1.1rem;
        }
        
        .instructor-info p {
            margin: 0;
            opacity: 0.8;
            font-size: 1rem;
        }
        
        .taller-details {
            margin-bottom: 25px;
        }
        
        .detail-item {
            display: flex;
            margin-bottom: 15px;
        }
        
        .detail-icon {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            flex-shrink: 0;
        }
        
        .detail-text h4 {
            margin: 0 0 5px 0;
            font-size: 1.1rem;
        }
        
        .detail-text p {
            margin: 0;
            opacity: 0.8;
        }
        
        .taller-includes {
            margin-bottom: 25px;
        }
        
        .taller-includes h3 {
            margin-bottom: 15px;
            font-size: 1.3rem;
        }
        
        .includes-list {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }
        
        .include-item {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .include-item i {
            color: var(--accent);
            margin-right: 10px;
        }
        
        .taller-cta {
            text-align: center;
        }
        
        .btn-taller {
            background: var(--accent);
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 5px 15px rgba(76, 201, 240, 0.4);
        }
        
        .btn-taller:hover {
            background: #3ab8dd;
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(76, 201, 240, 0.6);
        }
        
        .btn-taller i {
            margin-left: 10px;
        }
        
        .taller-contact {
            display: flex;
            justify-content: center;
            margin-top: 20px;
            gap: 15px;
        }
        
        .contact-link {
            display: flex;
            align-items: center;
            color: white;
            text-decoration: none;
            background: rgba(255, 255, 255, 0.1);
            padding: 10px 20px;
            border-radius: 50px;
            transition: var(--transition);
        }
        
        .contact-link:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }
        
        .contact-link i {
            margin-right: 8px;
            font-size: 1.2rem;
        }
        
        .taller-visual {
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .taller-card {
            background: white;
            color: var(--gray-800);
            border-radius: 15px;
            padding: 30px;
            box-shadow: var(--shadow-lg);
            max-width: 350px;
            text-align: center;
            position: relative;
            overflow: hidden;
            transition: var(--transition);
        }
        
        .taller-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
        }
        
        .card-header {
            margin-bottom: 20px;
        }
        
        .card-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 10px;
            color: var(--azul-oscuro);
        }
        
        .card-subtitle {
            color: var(--gray-400);
            margin-bottom: 20px;
        }
        
        .card-dates {
            background: var(--gray-100);
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 20px;
        }
        
        .date-item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
        }
        
        .date-item:last-child {
            margin-bottom: 0;
        }
        
        .date-label {
            font-weight: 600;
            color: var(--gray-800);
        }
        
        .date-value {
            color: var(--azul-oscuro);
            font-weight: 600;
        }
        
        .card-lema {
            font-style: italic;
            color: var(--gray-400);
            margin-top: 20px;
            font-size: 0.9rem;
        }
        
        .taller-particles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }
        
        .taller-particle {
            position: absolute;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            animation: float 6s infinite ease-in-out;
        }
        
        .taller-particle:nth-child(1) {
            width: 20px;
            height: 20px;
            top: 10%;
            left: 10%;
            animation-delay: 0s;
        }
        
        .taller-particle:nth-child(2) {
            width: 15px;
            height: 15px;
            top: 70%;
            left: 80%;
            animation-delay: 2s;
        }
        
        .taller-particle:nth-child(3) {
            width: 25px;
            height: 25px;
            top: 40%;
            left: 90%;
            animation-delay: 4s;
        }
        
        .taller-particle:nth-child(4) {
            width: 10px;
            height: 10px;
            top: 80%;
            left: 20%;
            animation-delay: 1s;
        }
        
        @keyframes float {
            0%, 100% {
                transform: translateY(0) translateX(0);
            }
            50% {
                transform: translateY(-20px) translateX(10px);
            }
        }
        
       /* ======== Responsive Mejorado con Header ======== */
@media (max-width: 1200px) {
    .taller-container {
        padding: 0 40px;
    }
}

@media (max-width: 992px) {
    .taller-gratuito {
        padding-top: calc(80px + 150px); /* 80px original + 70px header */
    }

    .taller-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .taller-title {
        font-size: 2.2rem;
    }

    .taller-subtitle {
        font-size: 1.1rem;
        max-width: 90%;
    }

    .includes-list {
        grid-template-columns: 1fr;
    }

    .taller-info {
        padding: 25px;
    }

    .taller-card {
        max-width: 100%;
        padding: 25px;
    }

    .card-title {
        font-size: 1.4rem;
    }

    .card-subtitle {
        font-size: 0.95rem;
    }

    .card-dates {
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .taller-gratuito {
        padding-top: calc(80px + 150px); /* Ajuste para móvil */
    }

    .taller-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .taller-title {
        font-size: 1.8rem;
    }

    .taller-subtitle {
        font-size: 1rem;
    }

    .taller-badge {
        padding: 6px 15px;
        font-size: 0.8rem;
    }

    .taller-info {
        padding: 20px;
    }

    .taller-instructor {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .instructor-avatar {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .instructor-info h4 {
        font-size: 1.1rem;
    }

    .instructor-info p {
        font-size: 0.9rem;
    }

    .detail-item {
        flex-direction: row;
        gap: 10px;
    }

    .taller-includes h3 {
        font-size: 1.2rem;
    }

    .include-item {
        font-size: 0.95rem;
    }

    .taller-cta {
        margin-top: 20px;
    }

    .btn-taller {
        width: 100%;
        padding: 12px 0;
        font-size: 1rem;
    }

    .taller-contact {
        flex-direction: column;
        gap: 10px;
        
    }

    .contact-link {
        width: 100%;
        justify-content: center;
    }

    .taller-card {
        padding: 20px;
        text-align: center;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-subtitle {
        font-size: 0.9rem;
    }

    .card-dates {
        padding: 10px;
    }

    .date-label, .date-value {
        font-size: 0.9rem;
    }

    .card-lema {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .taller-container {
        padding: 0 15px;
    }

    .taller-gratuito {
        padding-top: calc(60px + 150px); /* Ajuste header más pequeño en mobile */
    }

    .taller-title {
        font-size: 1.6rem;
    }

    .taller-subtitle {
        font-size: 0.95rem;
    }

    .btn-taller {
        font-size: 0.95rem;
        padding: 10px 0;
    }

    .contact-link {
        font-size: 0.9rem;
        padding: 8px 15px;
    }

    .includes-list, .detail-item {
        grid-template-columns: 1fr;
    }
}



/* Hero Section - BIEN PERRO */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
    padding-top: 80px;
    background: linear-gradient(135deg, 
                rgba(33, 57, 119, 0.9) 0%, 
                rgba(50, 90, 159, 0.8) 50%,
                rgba(76, 201, 240, 0.6) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(76, 201, 240, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(50, 90, 159, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(33, 57, 119, 0.5) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>') no-repeat bottom right;
    background-size: 50% auto;
}

.hero-content {
    z-index: 2;
    position: relative;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    animation: heroEntrance 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.hero h1 {
    font-size: 5rem;
    font-family: var(--font-bebas);
    letter-spacing: 3px;
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 2px;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero .btn-primary {
    position: relative;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    background: linear-gradient(135deg, var(--accent) 0%, var(--azul-claro) 100%);
    box-shadow: 
        0 10px 30px rgba(76, 201, 240, 0.4),
        0 0 0 0 rgba(76, 201, 240, 0.7);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    z-index: 1;
}

.hero .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.8s ease;
    z-index: -1;
}

.hero .btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(76, 201, 240, 0.6),
        0 0 0 10px rgba(76, 201, 240, 0.2);
}

.hero .btn-primary:hover::before {
    left: 100%;
}

/* Partículas flotantes MEJORADAS */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

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

/* Más partículas para que se vea más perrón */
.particle:nth-child(1) {
    width: 8px;
    height: 8px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    background: rgba(76, 201, 240, 0.6);
}

.particle:nth-child(2) {
    width: 12px;
    height: 12px;
    top: 60%;
    left: 80%;
    animation-delay: 1s;
    background: rgba(255, 255, 255, 0.8);
}

.particle:nth-child(3) {
    width: 6px;
    height: 6px;
    top: 80%;
    left: 20%;
    animation-delay: 2s;
    background: rgba(50, 90, 159, 0.5);
}

.particle:nth-child(4) {
    width: 10px;
    height: 10px;
    top: 30%;
    left: 70%;
    animation-delay: 3s;
    background: rgba(76, 201, 240, 0.7);
}

/* Nuevas partículas adicionales */
.particle:nth-child(5) {
    width: 4px;
    height: 4px;
    top: 40%;
    left: 40%;
    animation-delay: 1.5s;
    background: rgba(255, 255, 255, 0.6);
}

.particle:nth-child(6) {
    width: 7px;
    height: 7px;
    top: 70%;
    left: 60%;
    animation-delay: 2.5s;
    background: rgba(33, 57, 119, 0.4);
}

.particle:nth-child(7) {
    width: 9px;
    height: 9px;
    top: 15%;
    left: 50%;
    animation-delay: 0.8s;
    background: rgba(76, 201, 240, 0.5);
}

.particle:nth-child(8) {
    width: 5px;
    height: 5px;
    top: 50%;
    left: 90%;
    animation-delay: 3.5s;
    background: rgba(255, 255, 255, 0.7);
}

/* Animaciones personalizadas */
@keyframes heroEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
    }
    75% {
        transform: translateY(-15px) translateX(15px);
    }
}

/* Efecto de scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator::before {
    content: '';
    width: 2px;
    height: 40px;
    background: rgba(255, 255, 255, 0.5);
    display: block;
    margin: 0 auto;
    border-radius: 1px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
        letter-spacing: 2px;
    }
    
    .hero p {
        font-size: 1.2rem;
        padding: 0 20px;
    }
    
    .hero .btn-primary {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

/* Cursos Section - CON FONDO QUE COINCIDE CON EL DEGRADADO PRINCIPAL */
#cursos {
    padding: 120px 0;
    background: linear-gradient(135deg, 
                rgba(33, 57, 119, 0.95) 0%, 
                rgba(50, 90, 159, 0.85) 50%,
                rgba(76, 201, 240, 0.7) 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
}

#cursos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(76, 201, 240, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(50, 90, 159, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 50%, rgba(33, 57, 119, 0.5) 0%, transparent 50%);
    pointer-events: none;
    animation: backgroundPulse 10s ease-in-out infinite;
}

/* Partículas para la sección de cursos */
.cursos-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.cursos-particle {
    position: absolute;
    border-radius: 50%;
    animation: cursosFloat 8s ease-in-out infinite;
}

.cursos-particle:nth-child(1) {
    width: 6px;
    height: 6px;
    top: 15%;
    left: 15%;
    background: rgba(255, 255, 255, 0.4);
    animation-delay: 0s;
}

.cursos-particle:nth-child(2) {
    width: 10px;
    height: 10px;
    top: 75%;
    left: 85%;
    background: rgba(76, 201, 240, 0.5);
    animation-delay: 2s;
}

.cursos-particle:nth-child(3) {
    width: 8px;
    height: 8px;
    top: 85%;
    left: 25%;
    background: rgba(255, 255, 255, 0.3);
    animation-delay: 4s;
}

.cursos-particle:nth-child(4) {
    width: 12px;
    height: 12px;
    top: 25%;
    left: 75%;
    background: rgba(50, 90, 159, 0.4);
    animation-delay: 6s;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.9;
    }
}

@keyframes cursosFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    33% {
        transform: translateY(-25px) translateX(15px) rotate(120deg);
    }
    66% {
        transform: translateY(-15px) translateX(-20px) rotate(240deg);
    }
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-title h2 {
    font-size: 4rem;
    font-family: var(--font-bebas);
    letter-spacing: 3px;
    color: white;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.cursos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
    padding: 0 40px;
    max-width: 100%;
}

.curso-item {
    text-align: center;
    padding: 50px 30px;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
}

.curso-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.curso-item:hover {
    transform: translateY(-25px);
}

/* MEJORA RESPONSIVE PARA ICONOS - ENFOQUE ESCALABLE */
.curso-icon {
    font-size: clamp(3.5rem, 8vw, 5.5rem); /* Tamaño responsive */
    margin-bottom: clamp(20px, 4vw, 35px); /* Margen responsive */
    position: relative;
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 80px; /* Altura mínima para evitar saltos */
    display: flex;
    align-items: center;
    justify-content: center;
}

.curso-icon i {
    color: #ffffff !important;
    text-shadow: 
        0 0 20px rgba(76, 201, 240, 0.8),
        0 0 40px rgba(76, 201, 240, 0.4),
        0 0 60px rgba(76, 201, 240, 0.2);
    filter: brightness(1.2);
    transition: all 0.4s ease;
    width: 1em; /* Asegura proporción cuadrada */
    height: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Efecto de aura BLANCA alrededor del icono - RESPONSIVE */
.curso-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(80px, 16vw, 120px); /* Tamaño responsive */
    height: clamp(80px, 16vw, 120px);
    background: radial-gradient(circle, 
                rgba(255, 255, 255, 0.15) 0%, 
                rgba(76, 201, 240, 0.1) 30%,
                transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
}

.curso-item:hover .curso-icon {
    transform: scale(1.4) rotate(12deg);
}

.curso-item:hover .curso-icon::before {
    opacity: 1;
    width: clamp(100px, 20vw, 140px); /* Tamaño responsive al hover */
    height: clamp(100px, 20vw, 140px);
    animation: pulseWhiteAura 2s ease-in-out infinite;
}

.curso-item:hover .curso-icon i {
    color: #ffffff !important;
    text-shadow: 
        0 0 30px rgba(76, 201, 240, 1),
        0 0 60px rgba(76, 201, 240, 0.6),
        0 0 90px rgba(76, 201, 240, 0.3);
    filter: brightness(1.5);
}

/* Títulos con efecto especial - MEJORADO RESPONSIVE */
.curso-item h3 {
    font-size: clamp(1.8rem, 4vw, 2.2rem); /* Tamaño responsive */
    margin-bottom: clamp(15px, 3vw, 25px);
    color: white;
    font-family: var(--font-bebas);
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    transition: all 0.4s ease;
    line-height: 1.2;
}

.curso-item:hover h3 {
    transform: scale(1.15);
    text-shadow: 0 0 25px rgba(76, 201, 240, 0.7);
}

.curso-item h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ffffff, var(--accent), transparent);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.curso-item:hover h3::after {
    width: clamp(60px, 15vw, 100px); /* Ancho responsive */
}

/* Texto descriptivo - MEJORADO RESPONSIVE */
.curso-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2.5vw, 1.2rem); /* Tamaño responsive */
    line-height: 1.7;
    margin: 0;
    font-weight: 300;
    transition: all 0.4s ease;
    position: relative;
}

.curso-item:hover p {
    color: #ffffff;
    transform: translateY(-8px);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Badge de número - MEJORADO RESPONSIVE */
.curso-item .curso-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: clamp(35px, 8vw, 45px); /* Tamaño responsive */
    height: clamp(35px, 8vw, 45px);
    background: linear-gradient(135deg, #ffffff, var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-bebas);
    font-size: clamp(1rem, 2.5vw, 1.3rem); /* Tamaño responsive */
    color: var(--azul-oscuro);
    font-weight: bold;
    box-shadow: 0 5px 25px rgba(76, 201, 240, 0.6);
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.curso-item:hover .curso-badge {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Efecto de partículas BLANCAS */
.curso-item .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.curso-item:hover .particles {
    opacity: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: floatParticle 3s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Línea conectiva blanca */
.cursos-grid::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, 
                transparent, 
                rgba(255, 255, 255, 0.4), 
                rgba(255, 255, 255, 0.4), 
                rgba(255, 255, 255, 0.4), 
                transparent);
    z-index: -1;
    opacity: 0.2;
}

/* Animaciones personalizadas */
@keyframes pulseWhiteAura {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.8;
    }
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    50% {
        transform: translateY(-30px) translateX(20px);
        opacity: 1;
    }
}

/* RESPONSIVE MEJORADO */
@media (max-width: 1400px) {
    .cursos-grid {
        padding: 0 30px;
        gap: 30px;
    }
}

@media (max-width: 1200px) {
    .cursos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(30px, 6vw, 50px); /* Gap responsive */
        padding: 0 clamp(20px, 5vw, 40px); /* Padding responsive */
    }
    
    .cursos-grid::before {
        display: none;
    }
    
    .curso-item {
        padding: clamp(30px, 6vw, 50px) clamp(20px, 4vw, 30px); /* Padding responsive */
    }
}

@media (max-width: 768px) {
    #cursos {
        padding: clamp(60px, 12vw, 80px) 0; /* Padding responsive */
    }
    
    .cursos-grid {
        grid-template-columns: 1fr;
        gap: clamp(40px, 8vw, 60px); /* Gap responsive */
        padding: 0 clamp(15px, 4vw, 20px); /* Padding responsive */
        max-width: 600px;
        margin: 0 auto;
    }
    
    .curso-item {
        padding: clamp(25px, 6vw, 40px) clamp(15px, 3vw, 20px); /* Padding responsive */
    }
    
    .section-title {
        margin-bottom: clamp(50px, 10vw, 80px); /* Margin responsive */
    }
    
    .section-title h2 {
        font-size: clamp(2.5rem, 8vw, 3rem); /* Tamaño responsive */
    }
    
    .section-title p {
        font-size: clamp(1.1rem, 3vw, 1.3rem); /* Tamaño responsive */
    }
}

@media (max-width: 480px) {
    .curso-item {
        padding: clamp(20px, 5vw, 35px) clamp(10px, 3vw, 15px); /* Padding responsive */
    }
    
    /* Los tamaños ya son responsivos gracias a clamp() */
}

/* MEJORA ADICIONAL PARA DISPOSITIVOS MUY PEQUEÑOS */
@media (max-width: 360px) {
    .cursos-grid {
        gap: 30px;
        padding: 0 10px;
    }
    
    .curso-item {
        padding: 25px 10px;
    }
    
    .curso-icon {
        min-height: 60px; /* Altura mínima reducida */
    }
}

/* MEJORA PARA TACTIL DEVICES */
@media (hover: none) and (pointer: coarse) {
    .curso-item:hover {
        transform: none;
    }
    
    .curso-item:active {
        transform: translateY(-10px);
    }
    
    .curso-item:active .curso-icon {
        transform: scale(1.2) rotate(8deg);
    }
    
    .curso-item:active .curso-icon::before {
        opacity: 0.7;
    }
}

/* Pricing Section - CON FONDO COINCIDENTE Y SÍMBOLO $ ARREGLADO */
.pricing {
    padding: 120px 0;
    background: linear-gradient(135deg, 
                rgba(33, 57, 119, 0.9) 0%, 
                rgba(50, 90, 159, 0.8) 50%,
                rgba(76, 201, 240, 0.6) 100%);
    position: relative;
    overflow: hidden;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(76, 201, 240, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(50, 90, 159, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(33, 57, 119, 0.5) 0%, transparent 50%);
    pointer-events: none;
    animation: pricingBackground 12s ease-in-out infinite;
}

/* Partículas para pricing */
.pricing-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.pricing-particle {
    position: absolute;
    border-radius: 50%;
    animation: pricingFloat 7s ease-in-out infinite;
}

.pricing-particle:nth-child(1) {
    width: 8px;
    height: 8px;
    top: 20%;
    left: 10%;
    background: rgba(255, 255, 255, 0.5);
    animation-delay: 0s;
}

.pricing-particle:nth-child(2) {
    width: 12px;
    height: 12px;
    top: 70%;
    left: 90%;
    background: rgba(76, 201, 240, 0.6);
    animation-delay: 1.5s;
}

.pricing-particle:nth-child(3) {
    width: 6px;
    height: 6px;
    top: 80%;
    left: 15%;
    background: rgba(255, 255, 255, 0.4);
    animation-delay: 3s;
}

@keyframes pricingBackground {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes pricingFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
    }
    25% {
        transform: translateY(-15px) translateX(10px) scale(1.1);
    }
    50% {
        transform: translateY(-5px) translateX(-5px) scale(0.9);
    }
    75% {
        transform: translateY(-10px) translateX(8px) scale(1.05);
    }
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.pricing-card {
    background: linear-gradient(145deg, 
                rgba(26, 32, 44, 0.95) 0%, 
                rgba(33, 57, 119, 0.3) 50%,
                rgba(76, 201, 240, 0.2) 100%);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    position: relative;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pricing-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
                var(--azul-claro), 
                var(--accent), 
                var(--azul-oscuro));
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

.pricing-card:hover::before {
    opacity: 1;
    animation: shimmer 2s ease-in-out infinite;
}

.pricing-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(76, 201, 240, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Card destacada */
.pricing-card.featured {
    transform: scale(1.05) translateY(20px);
    border: 2px solid var(--accent);
    background: linear-gradient(145deg, 
                rgba(26, 32, 44, 0.98) 0%, 
                rgba(33, 57, 119, 0.4) 50%,
                rgba(76, 201, 240, 0.25) 100%);
}

.pricing-card.featured.visible {
    transform: scale(1.05) translateY(0);
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-15px);
    box-shadow: 
        0 40px 80px rgba(76, 201, 240, 0.3),
        0 0 0 2px rgba(76, 201, 240, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.pricing-card.featured::before {
    height: 6px;
    background: linear-gradient(90deg, 
                #ff6b6b, 
                var(--accent), 
                #4ecdc4);
    opacity: 1;
}

/* Badge para featured */
.pricing-card.featured::after {
    content: 'MÁS POPULAR';
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 8px 40px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    transform: rotate(45deg);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Header de pricing */
.pricing-header {
    padding: 40px 30px 30px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-header h3 {
    font-size: 2rem;
    font-family: var(--font-bebas);
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: white;
}

.pricing-header .package-title-cursive {
    font-family: var(--font-cursive);
    font-size: 2.8rem;
    display: block;
    margin-bottom: -10px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* PRECIO ARREGLADO - SÍMBOLO $ CON MEJOR ESPACIADO */
.pricing-price {
    font-size: 4.5rem;
    font-weight: 800;
    margin: 20px 0;
    font-family: var(--font-bebas);
    background: linear-gradient(135deg, #ffffff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.pricing-price::before {
    content: 'MX';
    position: absolute;
    top: -10px;
    left: -25px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-main);
    -webkit-text-fill-color: initial;
    background: none;
}

/* ARREGLADO: Mejor espaciado para el símbolo $ */
.pricing-price span {
    font-size: 2rem; /* Tamaño más grande */
    vertical-align: super;
    margin-right: 2px; /* Espacio entre $ y el número */
    margin-left: -5px; /* Ajuste fino de posición */
    position: relative;
    top: -0.3em; /* Mejor alineación vertical */
}

/* Features */
.pricing-features {
    padding: 30px;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li:hover {
    transform: translateX(10px);
    border-color: rgba(76, 201, 240, 0.3);
}

.pricing-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
    margin-right: 15px;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(76, 201, 240, 0.5);
}

.feature-main-text {
    font-family: var(--font-bebas);
    font-size: 1.5rem;
    color: white;
    letter-spacing: 1px;
    display: block;
}

.feature-sub-text {
    font-family: var(--font-main);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 5px;
}

/* Footer */
.pricing-footer {
    padding: 0 30px 40px;
    text-align: center;
}

.pricing-card .btn-primary {
    width: 100%;
    padding: 18px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--azul-claro), var(--azul-oscuro));
    border: none;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.pricing-card .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.pricing-card:hover .btn-primary::before {
    left: 100%;
}

.pricing-card .btn-primary:hover {
    background: linear-gradient(135deg, var(--accent), var(--azul-claro));
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(76, 201, 240, 0.4);
}

/* Featured card button styles */
.pricing-card.featured .btn-primary {
    background: linear-gradient(135deg, var(--accent), #3a86ff);
    box-shadow: 0 5px 20px rgba(76, 201, 240, 0.4);
}

.pricing-card.featured .btn-primary:hover {
    background: linear-gradient(135deg, #3a86ff, var(--accent));
    box-shadow: 0 10px 30px rgba(76, 201, 240, 0.6);
}

/* Animaciones */
@keyframes shimmer {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
    }
    
    .pricing-card.featured {
        transform: scale(1.02);
    }
    
    .pricing-card.featured.visible {
        transform: scale(1.02) translateY(0);
    }
}

@media (max-width: 768px) {
    .pricing {
        padding: 80px 0;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured::after {
        top: 15px;
        right: -30px;
        font-size: 0.7rem;
        padding: 6px 30px;
    }
    
    /* Ajuste responsive para el precio */
    .pricing-price {
        font-size: 3.8rem;
    }
    
    .pricing-price span {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .pricing-header {
        padding: 30px 20px 20px;
    }
    
    .pricing-price {
        font-size: 3.2rem;
    }
    
    .pricing-price span {
        font-size: 1.6rem;
    }
    
    .pricing-features {
        padding: 20px;
    }
    
    .pricing-features li {
        padding: 15px 0;
    }
}

/* Teachers Section - CORREGIDO */
#profesores {
    padding: 100px 20px;
    display: none;
    max-width: auto;
    margin: 0 auto;
    background: linear-gradient(135deg, 
                var(--azul-oscuro) 0%, 
                var(--azul-claro) 50%,
                var(--accent) 100%);
    position: relative;
    overflow: hidden;
}

#profesores::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(76, 201, 240, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(50, 90, 159, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, var(--gris-claro-transparente) 0%, transparent 50%);
    pointer-events: none;
    animation: matrixBackground 20s linear infinite;
}

@keyframes matrixBackground {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-1000px) rotate(360deg); }
}

.teachers-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.teacher-card {
    background: linear-gradient(145deg, var(--azul-oscuro), var(--azul-claro));
    border: 2px solid var(--gris-claro-transparente);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
    width: 420px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.teacher-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.teacher-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 
        var(--shadow-lg),
        0 0 0 2px var(--accent),
        inset 0 0 60px rgba(76, 201, 240, 0.15);
    border-color: var(--accent);
}

.teacher-img {
    height: 340px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.teacher-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.teacher-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to bottom, transparent 0%, var(--azul-oscuro) 90%);
    z-index: 1;
}

.teacher-badge {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, var(--azul-claro), var(--accent));
    color: var(--gray-100);
    padding: 8px 20px;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 3;
    box-shadow: 0 5px 20px rgba(76, 201, 240, 0.4);
    border: 1px solid rgba(76, 201, 240, 0.3);
    white-space: nowrap;
}

.teacher-name-overlay {
    position: relative;
    z-index: 2;
    color: var(--gray-100);
    text-align: center;
    padding: 30px 20px 20px;
    width: 100%;
}

.teacher-firstname {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.2rem;
    line-height: 0.9;
    display: block;
    margin-bottom: 5px;
    color: var(--accent);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    font-weight: 700;
    letter-spacing: 3px;
}

.teacher-lastname {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 5px;
    display: block;
    text-transform: uppercase;
    color: var(--gray-100);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    margin-top: 5px;
    font-weight: 400;
}

.teacher-stats {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 15px;
    position: relative;
    z-index: 2;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(76, 201, 240, 0.5);
}

.stat-label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.65rem;
    color: var(--gray-200);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.teacher-info {
    padding: 25px 20px;
    position: relative;
    background: var(--footer-gris-transparente);
    backdrop-filter: blur(5px);
    border-top: 1px solid var(--gris-claro-transparente);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.teacher-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, var(--accent), var(--azul-claro));
    border-radius: 2px;
}

.teacher-info p {
    color: var(--gray-100);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 15px 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    text-align: left;
    flex-grow: 1;
}

.teacher-skills {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
}

.skill-tag {
    background: rgba(76, 201, 240, 0.15);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    border: 1px solid rgba(76, 201, 240, 0.3);
    transition: var(--transition);
    white-space: nowrap;
}

.teacher-card:hover .skill-tag {
    background: rgba(76, 201, 240, 0.25);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 201, 240, 0.3);
}

/* Efectos de brillo al hover */
.teacher-card:hover .teacher-firstname {
    color: var(--gray-100);
    text-shadow: 0 0 20px var(--accent), 0 0 30px var(--accent);
}

.teacher-card:hover .teacher-lastname {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.teacher-card:hover .teacher-badge {
    background: linear-gradient(45deg, var(--accent), var(--azul-claro));
    box-shadow: 0 5px 25px rgba(76, 201, 240, 0.6);
}

/* Efecto de partículas en las cards */
.teacher-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent), var(--azul-claro), var(--accent));
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.teacher-card:hover::after {
    opacity: 1;
    animation: borderGlow 2s linear infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Responsive */
@media (max-width: 1024px) {
    .teachers-grid {
        gap: 30px;
    }
    
    .teacher-card {
        width: 380px;
    }
}

@media (max-width: 768px) {
    #profesores {
        padding: 80px 15px;
    }
    
    .teacher-card {
        width: 100%;
        max-width: 400px;
    }
    
    .teacher-img {
        height: 300px;
    }
    
    .teacher-firstname {
        font-size: 2.8rem;
    }
    
    .teacher-lastname {
        font-size: 2.2rem;
        letter-spacing: 4px;
    }
    
    .teacher-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .teacher-info p {
        font-size: 0.9rem;
        text-align: center;
    }
}

/* --- layout.css --- */
/* Define la estructura principal de la página: header, navegación y footer. */

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--gris-claro-transparente);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 50px;
}

.logo-container img {
    transition: var(--transition);
}

.logo-container:hover img {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    list-style: none;
    margin-right: auto;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links li:first-child {
    margin-left: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-100);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 1.1rem;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

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

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Footer */
footer {
    background: var(--footer-gris-transparente);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-column h3 {
    font-family: var(--font-bebas);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: white;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

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

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

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

.social-icons a:hover {
    color: var(--accent);
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(165, 164, 164, 0.1);
    color: var(--gray-400);
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }
    
    .logo-container {
        margin-right: 0;
    }
    
    .nav-links {
        margin-right: 0;
        gap: 20px;
    }
    
    .nav-links li {
        margin-left: 0;
    }
    
    .auth-buttons {
        margin-top: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* --- animations.css --- */
/* Animaciones personalizadas para toda la página */

/* Animación de entrada para elementos */
@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);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Animaciones de escala */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Animaciones de rotación */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

/* Clases de utilidad para animaciones */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Delay para animaciones escalonadas */
.animate-delay-100 {
    animation-delay: 0.1s;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

.animate-delay-300 {
    animation-delay: 0.3s;
}

.animate-delay-400 {
    animation-delay: 0.4s;
}

.animate-delay-500 {
    animation-delay: 0.5s;
}
