/* ===============================================================
   CONFIGURACIÓN GLOBAL Y VARIABLES
   =============================================================== */
:root {
    --primary-purple: #4B0082;
    --accent-purple: #7B1FA2;
    --light-purple: #E0BBE4;
    --white: #FFFFFF;
    --dark-grey: #333333;
    --light-grey: #F8F8F8;
    --text-color: #444444;
    --navbar-height: 60px;
    --navbar-height-mobile-closed: 60px;
}

/* Reset Básico y Estilos Globales */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* MEJORA 4: Centrado de scroll para secciones */
section[id] {
    scroll-margin-top: 60px;
}

/* Tipografía */
h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-purple);
    margin-bottom: 0.8em;
}

h2 {
    font-size: 2.5em;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5em;
}

h3 {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 0.5em;
    color: var(--accent-purple);
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--accent-purple);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-purple);
}

/* ===============================================================
   COMPONENTES REUTILIZABLES
   =============================================================== */

/* Contenedor Principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2em 1.5em;
}

/* Secciones */
.section-padded {
    padding: 4em 0;
}

.bg-light {
    background-color: var(--light-grey);
}

.bg-accent {
    background-color: var(--accent-purple);
    color: var(--white);
}

.bg-accent h2,
.bg-accent h3 {
    color: var(--white);
}

.text-center {
    text-align: center;
}

.section-intro {
    font-size: 1.3em;
    margin-bottom: 2em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
    padding: 0 2rem; /* <-- AÑADE ESTA LÍNEA */
}

/* Botones */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-purple);
    color: var(--white);
    padding: 0.8em 1.8em;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 1.5em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    color: var(--white); /* <-- ESTA ES LA LÍNEA AÑADIDA */
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
    padding: 0.6em 1.2em;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-purple);
    color: var(--white);
}

/* Botones Flotantes */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

.scroll-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 90px;
    right: 20px;
    background-color: var(--primary-purple);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.scroll-to-top:hover {
    background-color: var(--accent-purple);
    transform: translateY(-3px);
}

/* ===============================================================
   SECCIONES PRINCIPALES (HEADER, NAVBAR, FOOTER)
   =============================================================== */

/* --- Barra de Navegación --- */
.main-navbar {
    background-color: transparent;
    color: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    box-shadow: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    height: var(--navbar-height-mobile-closed);
}

.main-navbar.navbar-scrolled {
    background-color: var(--primary-purple);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.nav-logo-small {
    height: 60px;
    width: auto;
    margin-right: 0.8em;
}

.nav-brand-text {
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2em;
    margin: 0;
}

.nav-links a {
    color: var(--white);
    font-weight: 600;
    font-size: 1.1em;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    padding: 0.5em 0;
}

.main-navbar:not(.navbar-scrolled) .nav-links a {
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

.nav-links a:hover {
    color: var(--light-purple);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8em;
    cursor: pointer;
    padding: 0.3em;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    color: var(--white);
    text-align: center;
    padding-top: var(--navbar-height);
    padding-bottom: 6em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(75, 0, 130, 0.7);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2em 1.5em;
}

.highlight-banner {
    background-color: var(--accent-purple);
    padding: 0.5em 2em;
    margin-bottom: 1.5em;
    display: inline-block;
    max-width: 90%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.highlight-banner h1 {
    font-size: 2.8em;
    color: var(--white);
    margin-bottom: 0;
    line-height: 1.2;
}

.hero-intro-text {
    font-size: 1.5em;
    max-width: 800px;
    margin: 0 auto 2em;
    font-weight: 400;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
}

/* ===============================================================
   CARRUSEL DE FLYERS (VERSIÓN FINAL Y ESTABLE)
   =============================================================== */

/* Contenedor principal para evitar desbordamientos visuales */
#clases-destacadas {
    overflow-x: clip;
}

.carousel-container {
    position: relative;
}

/* El contenedor que se desliza */
.class-flyer-grid-wrapper {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain; /* Comportamiento de scroll más natural */
    /* Ocultar la barra de scroll */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.class-flyer-grid-wrapper::-webkit-scrollbar {
    display: none;
}

/* La fila de flyers */
.class-flyer-grid {
    display: flex;
    gap: 1.5rem; /* Espacio entre flyers */
    width: max-content;
    padding-block: 1rem;
    /* CLAVE DEL CENTRADO: Padding para que el primer/último flyer pueda llegar al centro */
    padding-inline: calc(50% - 140px); /* 140px es la mitad del ancho del flyer de PC (280px) */
}

/* Cada tarjeta individual */
.flyer-card {
    width: 280px; /* Ancho fijo para PC */
    flex-shrink: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always; /* Asegura que se detenga en cada flyer */
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    /* Estado inicial atenuado y más pequeño */
    transform: scale(0.95);
    opacity: 0.7;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Estilo para la tarjeta activa (la que está en el centro) */
.flyer-card.active {
    transform: scale(1);
    opacity: 1;
}

/* Estilos de la imagen del flyer */
.flyer-image {
    width: 100%;
    height: 250px;
    object-fit: cover; /* Asegura que la imagen llene el espacio sin deformarse */
    background-color: #e9e9e9;
    border-bottom: 4px solid var(--accent-purple);
}

/* Contenido de la tarjeta */
.flyer-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* CLAVE: Asegura que el botón se vaya al final */
    text-align: center;
}
.flyer-title {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem; /* Espacio entre el título y el botón */
}
.flyer-tag { display: none; } /* Ocultamos la etiqueta "CLASE" para un look más limpio */

/* Flechas de Navegación */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--white);
    border: none;
    cursor: pointer;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.carousel-arrow:hover:not(:disabled) {
    background-color: var(--primary-purple);
}
.carousel-arrow:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}
.carousel-arrow.left { left: 1rem; }
.carousel-arrow.right { right: 1rem; }


/* --- RESPONSIVIDAD DEL CARRUSEL --- */
@media (max-width: 768px) {
    .class-flyer-grid {
        gap: 1rem;
        /* Padding calculado para centrar una tarjeta de 80vw en móvil */
        padding-inline: calc(50% - 40vw); 
    }
    .flyer-card {
        width: 80vw;
    }
    .flyer-image {
        height: 220px;
    }
    .carousel-arrow {
        width: 40px;
        height: 40px;
        /* Ajuste para que no quede sobre la imagen */
        top: 40%; 
    }
    .carousel-arrow.left { left: 0.5rem; }
    .carousel-arrow.right { right: 0.5rem; }
}

/* --- EFECTO HOVER SOLO EN ESCRITORIO --- */
@media (hover: hover) and (pointer: fine) {
    .flyer-card:hover {
        transform: scale(1);
        opacity: 1;
    }
}


/* --- Footer --- */
.footer {
    background-color: var(--primary-purple);
    color: var(--white);
    text-align: center;
    padding: 2em 1.5em;
    font-size: 0.9em;
}

.footer .social-links {
    margin-top: 1em;
}

.footer .social-links a {
    color: var(--white);
    font-size: 1.5em;
    margin: 0 0.8em;
    transition: color 0.3s ease;
}

.footer .social-links a:hover {
    color: var(--light-purple);
}

/* ===============================================================
   CONTENIDO ESPECIALIZADO Y SECCIONES
   =============================================================== */

/* --- Carrusel de Flyers --- */

/* --- Estilos para la fluidez y el centrado del Carrusel --- */



.flyer-image {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    display: block;
    border-bottom: 3px solid var(--accent-purple);
    background-color: var(--light-grey);
}

.flyer-content {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.6rem;
}

.flyer-tag {
    background-color: rgba(123, 31, 162, 0.2);
    color: var(--primary-purple);
    padding: 0.3em 0.8em;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    align-self: center;
}

.flyer-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin: 0;
    line-height: 1.3;
}

.flyer-button.btn-primary {
    text-align: center;
    width: 100%;
    padding: 1rem 0.8rem;
    font-size: 1rem;
    line-height: 1.2;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flyer-button.btn-primary:hover {
    color: var(--white);
}



/* --- Tabla de Horarios --- */
.schedule-table-container {
    overflow-x: auto;
    margin-top: 3em;
    padding: 0.5em;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    font-size: 0.9em;
    line-height: 1.4;
}

.schedule-table thead {
    background-color: var(--primary-purple);
    color: var(--white);
    text-transform: uppercase;
    font-weight: 700;
}

.schedule-table th,
.schedule-table td {
    padding: 1em 0.7em;
    border: 1px solid rgba(222, 222, 222, 0.5);
    text-align: center;
    vertical-align: middle;
}

.schedule-table th {
    white-space: nowrap;
}

.schedule-table th:first-child,
.schedule-table td:first-child {
    background-color: var(--accent-purple);
    color: var(--white);
    font-weight: 700;
    border-color: var(--accent-purple);
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 80px;
}

.schedule-table td {
    background-color: var(--light-grey);
    color: var(--dark-grey);
}

.schedule-table tbody tr:nth-child(even) td {
    background-color: #efe6f5;
}

.schedule-table tbody tr:nth-child(even) td:first-child {
    background-color: var(--accent-purple);
}

.schedule-table td:empty {
    background-color: rgba(255, 255, 255, 0.9);
}

.schedule-table td:not(:empty):hover {
    background-color: var(--light-purple);
    color: var(--primary-purple);
    font-weight: 600;
    transform: scale(1.03);
    transition: all 0.2s ease;
    cursor: default;
}

.schedule-table th i {
    font-size: 1.2em;
    margin-right: 0.3em;
}

/* --- Formulario de Seminario --- */
.seminar-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2.5em;
    margin-top: 2.5em;
    justify-content: center;
}

.seminar-image-container {
    flex: 1 1 320px;
    max-width: 400px;
}

.seminar-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    display: block;
}

.seminar-form {
    flex: 1 1 450px;
    background-color: var(--white);
    padding: 2.5em;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 0;
    text-align: left;
}

.seminar-form .form-group {
    margin-bottom: 1.5em;
}

.seminar-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5em;
    color: var(--primary-purple);
}

.seminar-form input,
.seminar-form select,
.seminar-form textarea {
    width: 100%;
    padding: 0.8em;
    border: 1px solid var(--light-purple);
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Open Sans', sans-serif;
    color: var(--dark-grey);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.seminar-form input:focus,
.seminar-form select:focus,
.seminar-form textarea:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(123, 31, 162, 0.2);
    outline: none;
}

.seminar-form textarea {
    resize: vertical;
}

.seminar-form .form-submit-btn {
    width: 100%;
    padding: 1em;
    font-size: 1.1em;
    margin-top: 1em;
}

/* --- Secciones con Grids de 3 Columnas --- */
.benefits-grid,
.levels-grid {
    display: grid;
    gap: 2em;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.benefit-item,
.level-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2em;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover,
.level-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.benefit-item i,
.level-item i {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    display: block;
}

.benefit-item h3,
.level-item h3 {
    font-size: 1.4em;
    color: var(--white);
}

/* --- Grids de 1 Sola Columna --- */
.class-format-grid,
.progress-info-grid,
.teacher-bio-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    gap: 2em;
}

.format-card,
.progress-card {
    text-align: center;
    background-color: var(--white);
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.format-card h3,
.progress-card h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}

.format-card i,
.progress-card i {
    font-size: 1.5em;
    color: var(--accent-purple);
}

.teacher-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--white);
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.teacher-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5em;
    border: 4px solid var(--light-purple);
}

.teacher-card h3 {
    font-size: 1.5em;
    margin-bottom: 0.3em;
}

/* --- Listas Personalizadas --- */
.access-list,
.style-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5em;
}

.access-list li {
    font-size: 1.1em;
    margin-bottom: 0.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.access-list li i {
    color: var(--light-purple);
    margin-right: 0.8em;
    font-size: 1.2em;
}

.style-list {
    max-width: 900px;
    margin: 2em auto 0;
    display: grid;
    gap: 1.5em;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}


.style-list li i {
    color: var(--light-purple);
    margin-right: 0.8em;
    font-size: 1.2em;
}

/* --- Información de Contacto --- */
.contact-info {
    font-size: 1.2em;
    margin-bottom: 0.8em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info i {
    margin-right: 0.8em;
    width: 20px;
    text-align: center;
}

.contact-info a {
    color: var(--white);
    text-decoration: underline;
}

.contact-info a:hover {
    color: var(--light-grey);
}


/* Utilidades */
.mt-3 {
    margin-top: 1.5em !important;
}

.mt-4 {
    margin-top: 2em !important;
}

.mt-5 {
    margin-top: 3em !important;
}

/* ===============================================================
   MEDIA QUERIES (RESPONSIVIDAD)
   =============================================================== */

/* --- Tablet (hasta 992px) --- */
@media (max-width: 992px) {
    .section-intro {
        font-size: 1.2em;
    }

    h2 {
        font-size: 2.2em;
    }

    h3 {
        font-size: 1.7em;
    }
}


/* --- Móvil Grande (hasta 768px) --- */
@media (max-width: 768px) {
    /* MEJORA 1: Tabla de horarios en móvil */
    .schedule-table td:not(:empty) {
    white-space: nowrap; /* Evita que el texto de las clases se parta en varias líneas */
    }
    .schedule-table {
    font-size: 0.95em; /* Aumenta ligeramente el tamaño de fuente para legibilidad */
    }
    
    .main-navbar {
        background-color: var(--primary-purple);
        height: var(--navbar-height-mobile-closed);
    }

    .hero {
        padding-top: var(--navbar-height-mobile-closed);
    }

    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--navbar-height-mobile-closed);
        left: 0;
        right: 0;
        background-color: var(--primary-purple);
        padding: 1em 0;
        box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        gap: 0;
    }

    .nav-links.nav-active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        padding: 0.8em 1.5em;
        display: block;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-shadow: none;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }
}


/* --- Móvil Mediano (hasta 576px) --- */
@media (max-width: 576px) {
    .hero {
        min-height: auto;
        padding-bottom: 4em;
    }

    .highlight-banner h1 {
        font-size: 2em;
    }

    .hero-intro-text {
        font-size: 1.3em;
    }

    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

    h3 {
        font-size: 1.6em;
    }

    .container {
        padding: 1.5em;
    }

    .section-padded {
        padding: 3em 0;
    }

    .access-list li {
        text-align: left;
        justify-content: flex-start;
        padding-left: 5%;
        padding-right: 5%;
        font-size: 1em;
    }

    .important-notice-bar {
        font-size: 1em;
    }

    .important-notice-bar .notice-content {
        flex-direction: column;
        gap: 0.5em;
        padding: 0.5em 1em;
    }

    .important-notice-bar .notice-link {
        margin-left: 0;
    }

    .important-notice-bar .close-notice-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 15px;
        font-size: 1.3em;
    }

    .important-notice-bar .notice-content p {
        padding-right: 30px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 15px;
        right: 15px;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 75px;
        right: 15px;
    }

    .seminar-layout {
        flex-direction: column;
        align-items: center;
    }

    .seminar-image-container {
        flex-basis: auto;
        width: 100%;
        max-width: 350px;
        margin-bottom: 1.5em;
    }

    .seminar-form {
        flex-basis: auto;
        width: 100%;
    }

    .schedule-table-container {
        padding: 0.3em;
    }

    .schedule-table {
        font-size: 0.85em;
        min-width: 550px;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 0.8em 0.5em;
    }
}

/* --- Móvil Pequeño (hasta 480px) --- */
@media (max-width: 480px) {
    .highlight-banner h1 {
        font-size: 1.6em;
    }

    .hero-intro-text {
        font-size: 1.1em;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.5em;
    }

    .section-intro {
        font-size: 1.05em;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.7em 1.4em;
        font-size: 0.9em;
    }

    .flyer-title {
        font-size: 1.4em;
    }

    .flyer-button {
        font-size: 0.9em;
        padding: 0.7em;
    }

    .schedule-table {
        min-width: 480px;
        font-size: 0.8em;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 0.6em 0.4em;
    }

    .contact-info {
        font-size: 1em;
    }

    .seminar-form {
        padding: 1.5em;
    }

    .seminar-form .form-submit-btn {
        font-size: 1em;
        padding: 0.8em;
    }
}

/* ===============================================================
   AJUSTES DEL CARRUSEL EN MÓVILES (PARA VISIBILIDAD COMPLETA)
   =============================================================== */
@media (max-width: 768px) {
    /* Hacemos que el contenedor del carrusel ocupe todo el ancho para un mejor control */
    #clases-destacadas .container {
        padding-left: 0;
        padding-right: 0;
    }




    /* Reducimos la altura máxima de la imagen para que todo el card quepa en la pantalla */
    .flyer-image {
        max-height: 220px;
    }


}

/* MEJORA: Tabla de horarios a ancho completo en móvil */
@media (max-width: 768px) {
    /* 1. Quitamos el padding lateral del contenedor de la sección de horarios */
    #horarios .container {
        padding-left: 0;
        padding-right: 0;
    }

    /* 2. Forzamos al contenedor de la tabla a ocupar el 100% y eliminamos su borde redondeado */
    #horarios .schedule-table-container {
        max-width: 100%;
        border-radius: 0;
    }
}

/* --- Important Notice Bar --- */
.important-notice-bar {
    background-color: var(--accent-purple);
    color: var(--white);
    padding: 0.8em 1.5em;
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
    position: relative;
}

.important-notice-bar .notice-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
}

.important-notice-bar p {
    margin: 0;
}

.important-notice-bar i {
    margin-right: 0.6em;
}


#workshop-form .seminar-form p {
    margin-bottom: 1.5em;
}

#workshop-form .form-submit-btn {
    margin-top: 0;
}
