/**
 * Main Site Styles
 * All styles for the main site content, excluding preloader
 */

/* Base styles */
:root {
    --color-primary: #c30010;
    --color-primary-dark: #a50000;
    --color-secondary: #d4af37;
    --color-text: #333;
    --color-text-light: #777;
    --color-bg: #f8f8f8;
    --color-bg-alt: #eee;
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Montserrat', sans-serif;
    --transition-smooth: all 0.3s ease;
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.2);
    --color-primary-rgb: 195, 0, 16;
    --color-secondary-rgb: 212, 175, 55;
    --color-whatsapp-rgb: 37, 211, 102;
    --color-email-rgb: 74, 74, 74;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: var(--color-text);
    background-color: var(--color-bg);
    font-size: 16px;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    margin-top: 0;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
}

h1 {
    font-size: 2.75rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

p {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--color-primary-dark);
}

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

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-header h2 .highlight {
    color: var(--color-primary);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Custom cursor */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background-color: rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
    display: none; /* Hidden by default, shown via JS for non-touch devices */
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: transparent;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header.scrolled {
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.logo h1 {
    font-size: 2rem;
    margin: 0;
    color: #fff;
    transition: var(--transition-smooth);
}

.logo h1 span {
    color: var(--color-secondary);
}

.header.scrolled .logo h1 {
    color: var(--color-text);
    font-size: 1.8rem;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    font-size: 1rem;
    position: relative;
}

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

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

.header.scrolled .main-nav a {
    color: var(--color-text);
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition-smooth);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-contact {
    background-color: var(--color-secondary);
    color: #000 !important;
    border: 2px solid var(--color-secondary);
    font-weight: 700;
}

.btn-contact:hover {
    background-color: transparent;
    color: var(--color-secondary) !important;
    text-shadow: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff !important;
    border: 2px solid var(--color-primary);
    font-weight: 700;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--color-primary), var(--color-primary-dark));
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary:hover {
    color: white !important;
    border-color: var(--color-primary-dark);
    box-shadow: 0 5px 15px rgba(195, 0, 16, 0.3);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-secondary {
    background-color: transparent;
    color: #fff !important;
    border: 2px solid #fff;
    font-weight: 700;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--color-text) !important;
    text-shadow: none;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
}

.header.scrolled .menu-toggle {
    color: var(--color-text);
}

/* Hero section - refinamiento adicional */
.hero {
    height: 100vh;
    min-height: 650px; /* Ligeramente más alto */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    margin-bottom: 60px; /* Ajustar espacio */
}

/* Contenedor del video de fondo */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* Estilos para el video de fondo */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: 0;
}

/* Overlay del video con un degradado más sutil */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Overlay uniforme sin degradado */
    z-index: 1;
}

/* Asegurarse de que el contenido esté por encima del video */
.hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2; /* Aumentamos el z-index para que esté por encima del video */
}

.hero-title {
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-subtitle {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.7s;
}

.hero-title .highlight {
    color: var(--color-secondary);
    display: block;
    font-size: 4rem;
}

.hero-cta {
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.9s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px; /* Espacio uniforme entre botones */
}

.hero-cta .btn {
    height: 48px; /* Altura fija para ambos botones */
    padding: 0 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0; /* Eliminar márgenes para usar gap */
}

.btn-outline {
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary) !important;
    background-color: transparent;
    font-weight: 700;
}

.btn-outline:hover {
    background-color: var(--color-secondary);
    color: #000 !important;
    text-shadow: none;
}

.hero-mask {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('../img/wave-divider.svg') no-repeat;
    background-size: cover;
    background-position: center bottom;
}

/* Eliminar el divisor con degradado y usar un enfoque más simple */
.hero-divider {
    display: none; /* Eliminar el divisor artificial */
}

/* About section - refinamiento adicional */
.about {
    position: relative;
    background-color: #fff;
    padding: 120px 0 80px; /* Espacio antes y después */
    margin-top: 0;
    z-index: 1;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.03); /* Sombra muy sutil desde arriba */
}

.about .container {
    position: relative;
    z-index: 1;
}

/* Eliminar el borde top y añadir un efecto de separación más profesional */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right,
                rgba(0, 0, 0, 0),
                rgba(0, 0, 0, 0.05) 20%,
                rgba(0, 0, 0, 0.05) 80%,
                rgba(0, 0, 0, 0));
}

/* Un sutil pico decorativo en la parte superior de About (corregido) */
.about::after {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    width: 60px;
    height: 60px;
    background-color: #fff;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
    z-index: 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.about-features {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.about-features li {
    padding: 10px 15px;
    background-color: var(--color-bg-alt);
    border-radius: 5px;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.about-features li:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.about-features i {
    margin-right: 10px;
    color: var(--color-primary);
}

.about-image {
    flex: 1;
    position: relative;
}

.image-frame {
    width: 100%;
    padding-bottom: 120%;
    position: relative;
    border: 10px solid #fff;
    box-shadow: var(--shadow-medium);
    transform: rotate(3deg);
    overflow: hidden;
}

.frame-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/about-image.jpg') no-repeat center;
    background-size: cover;
    transition: var(--transition-smooth);
}

.image-frame:hover .frame-content {
    transform: scale(1.05);
}

/* Classes section */
.classes {
    background-color: var(--color-bg-alt);
    position: relative;
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.class-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
}

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

.class-icon {
    width: 70px;
    height: 70px;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.8rem;
}

.class-card h3 {
    margin-bottom: 15px;
}

.class-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Teachers section */
.teachers {
    background-color: #fff;
}

.teachers-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.teachers-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.teacher-card {
    min-width: 300px;
    background-color: var(--color-bg-alt);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    scroll-snap-align: start;
    transition: var(--transition-smooth);
}

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

.teacher-image {
    height: 300px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.teacher-card:nth-child(1) .teacher-image {
    background-image: url('../img/teacher-1.jpg');
}

.teacher-card:nth-child(2) .teacher-image {
    background-image: url('../img/teacher-2.jpg');
}

.teacher-card:nth-child(3) .teacher-image {
    background-image: url('../img/teacher-3.jpg');
}

.teacher-card h3 {
    padding: 20px 20px 10px;
    margin: 0;
}

.teacher-role {
    padding: 0 20px;
    margin: 0 0 10px;
    color: var(--color-primary);
    font-weight: 600;
}

.teacher-bio {
    padding: 0 20px 25px;
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 20px;
}

.carousel-prev, .carousel-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.carousel-prev:hover, .carousel-next:hover {
    background-color: var(--color-secondary);
    color: #fff;
}

/* Testimonials section */
.testimonials {
    background-color: var(--color-bg-alt);
    position: relative;
}

.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    height: 300px;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.quote-icon {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.author-name {
    font-weight: 700;
    margin: 0;
}

.author-info {
    color: var(--color-text-light);
    margin: 5px 0 0;
    font-size: 0.9rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 320px;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background-color: var(--color-primary);
    transform: scale(1.2);
}

/* Gallery section */
.gallery {
    background-color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 250px;
    background-color: #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-medium);
}

.gallery-item:nth-child(1) {
    background-image: url('../img/gallery-1.jpg');
}

.gallery-item:nth-child(2) {
    background-image: url('../img/gallery-2.jpg');
}

.gallery-item:nth-child(3) {
    background-image: url('../img/gallery-3.jpg');
}

.gallery-item:nth-child(4) {
    background-image: url('../img/gallery-4.jpg');
}

.gallery-item:nth-child(5) {
    background-image: url('../img/gallery-5.jpg');
}

.gallery-item:nth-child(6) {
    background-image: url('../img/gallery-6.jpg');
}

/* Contact section */
.contact {
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
}

/* Patrón de fondo teatral */
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20c-10 10-10 30 0 40s30 10 40 0 10-30 0-40-30-10-40 0zm10 10c-5 5-5 15 0 20s15 5 20 0 5-15 0-20-15-5-20 0z' fill='%23cccccc' fill-opacity='0.15' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

/* Layout de la sección de contacto */
.contact-content {
    position: relative;
    z-index: 1;
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.contact-info {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    padding: 30px;
    margin-bottom: 20px;
    flex: 1;
    min-width: 300px;
}

.contact-methods {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    padding: 30px;
    flex: 1;
    min-width: 300px;
}

/* Estilos para los botones de la sección de contacto */
.contact-cta {
    padding: 20px 0;
}

.contact-cta .btn {
    margin-bottom: 15px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-cta .btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.contact-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-dark);
}

/* Añadir efecto de borde inferior a la sección */
.contact::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--color-primary-dark), var(--color-secondary), var(--color-primary-dark));
    z-index: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    background-color: var(--color-primary);
    color: white;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.1);
    background-color: var(--color-secondary);
}

.contact-item h3 {
    margin: 0 0 5px;
    font-size: 1.2rem;
}

.contact-item p {
    margin: 0;
    color: var(--color-text-light);
}

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

.social-link {
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: var(--color-bg-alt);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.social-link:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.contact-cta {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}

.contact-cta h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.contact-cta p {
    margin-bottom: 30px;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
    display: block;
    width: 100%;
    margin-bottom: 15px;
}

.btn-whatsapp {
    background-color: #25d366;
    color: white !important;
    border: 2px solid #25d366;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #25d366, #1da851);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-whatsapp:hover {
    color: white !important;
    border-color: #1da851;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    transform: translateY(-2px);
}

.btn-whatsapp:hover::before {
    left: 0;
}

/* Footer */
.footer {
    background-color: #222;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo h2 {
    color: #fff;
    margin: 0 0 10px;
    font-size: 1.8rem;
}

.footer-logo span {
    color: var(--color-secondary);
}

.footer-logo p {
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h3 {
    color: #fff;
    margin: 0 0 20px;
    font-size: 1.2rem;
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition-smooth);
}

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

.footer-cta {
    flex: 1;
    min-width: 200px;
}

.footer-cta h3 {
    color: #fff;
    margin: 0 0 15px;
    font-size: 1.2rem;
}

.footer-cta p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

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

/* Estilos para el control de audio - mejorados */
.audio-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.audio-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0.9;
    position: relative;
    animation: pulseButton 2s infinite;
    /* Evitar doble clic accidental */
    user-select: none;
}

@keyframes pulseButton {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
}

.audio-toggle:hover {
    transform: scale(1.15);
    opacity: 1;
    animation: none;
}

.audio-toggle.muted {
    background-color: var(--color-secondary);
}

.audio-toggle.muted i:before {
    content: "\f026"; /* Icono de volumen silenciado */
}

.audio-toggle:not(.muted) {
    animation: none;
    background-color: var(--color-primary);
}

.audio-toggle i {
    font-size: 1.5rem; /* Icono más grande */
}

.audio-tooltip {
    position: absolute;
    top: -40px;
    right: 0;
    background-color: var(--color-secondary);
    color: #000;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.audio-toggle:hover .audio-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Flecha del tooltip */
.audio-tooltip:after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--color-secondary);
}

/* Deshabilitar animación del botón cuando no está silenciado */
.audio-toggle:not(.muted) {
    animation: none;
    background-color: var(--color-primary);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-title .highlight {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        justify-content: center;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 200;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }
    
    .main-nav li {
        margin: 15px 0;
    }
    
    .main-nav a {
        color: var(--color-text);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .about-features {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .teacher-card {
        min-width: 250px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    /* Ajustes para video de fondo en móviles */
    .hero-video {
        /* En móviles, enfocamos más en el centro del video */
        width: auto;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
    }
    
    /* Overlay más oscuro en móviles para mejor legibilidad */
    .hero-video-overlay {
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
    }
}

@media (max-width: 576px) {
    .hero-cta .btn {
        display: block;
        width: 100%;
        margin: 0 0 15px;
    }
    
    .classes-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Alerta de desarrollo */
.dev-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    z-index: 9999;
    padding: 15px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dev-alert-content {
    max-width: 600px;
    background-color: #333;
    border: 2px solid var(--color-secondary);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-dark);
}

.dev-alert h3 {
    color: var(--color-secondary);
    margin-top: 0;
    margin-bottom: 10px;
}

.dev-alert p {
    margin-bottom: 20px;
}

.dev-alert code {
    background-color: #222;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
}

.dev-alert .btn {
    margin-top: 10px;
}

.dev-alert .fa-exclamation-triangle {
    margin-right: 8px;
    color: #ff9800;
}

/* Añadir estilos para imágenes placeholder */
[style*="url('../img/"] {
    position: relative;
}

[style*="url('../img/"]:after {
    content: "Imagen Placeholder";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
}

/* Botón de correo electrónico */
.btn-email {
    background-color: #4a4a4a;
    color: white !important;
    border: 2px solid #4a4a4a;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-email::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #4a4a4a, #2a2a2a);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-email:hover {
    color: white !important;
    border-color: #2a2a2a;
    box-shadow: 0 5px 15px rgba(74, 74, 74, 0.3);
    transform: translateY(-2px);
}

.btn-email:hover::before {
    left: 0;
}

/* Efecto hover personalizado para cada botón */
.contact-cta .btn-primary:focus,
.contact-cta .btn-email:focus,
.contact-cta .btn-whatsapp:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb, 195, 0, 16), 0.3);
}

/* Fallback para dispositivos que no soportan autoplay */
.no-autoplay .hero-video-container {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.no-autoplay .hero-video {
    display: none;
}

/* Notificación inicial de música */
.music-notification {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    z-index: 999;
    font-size: 0.9rem;
    max-width: 200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.5s, fadeOut 0.5s 7s forwards;
    pointer-events: none;
}

.music-notification:before {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(0, 0, 0, 0.8);
}

.music-notification strong {
    color: var(--color-secondary);
}

/* Animación de desvanecimiento */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}
