/* ============================================ */
/* 1. RESET Y ESTILOS BASE */
/* ============================================ */

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

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #7252da 0%, #5e3ac0 50%, #e94944 100%);
    color: #1a1a2e;
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.separador {
    width: 70px;
    height: 4px;
    background: #FFD966 !important;
    margin: 0.75rem auto 0;
    border-radius: 4px;
}

/* ============================================ */
/* 2. TOP BAR */
/* ============================================ */

.top-bar {
    background: #1a0e3a;
    padding: 0.4rem 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-bar-logo {
    background: #e94944;
    padding: 0.3rem 1.2rem;
    display: inline-block;
    border-radius: 6px;
}

.logo-texto {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.logo-icono {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-palabras {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-amigos {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logo-bailando {
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: -2px;
    opacity: 0.9;
}

.top-bar-socials {
    display: flex;
    gap: 1rem;
}

.top-bar-socials a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.top-bar-socials a:hover {
    color: #FFD966;
    transform: translateY(-2px);
}

.top-bar-whatsapp a {
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 211, 102, 0.15);
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.top-bar-whatsapp a i {
    color: #25d366;
    font-size: 1rem;
}

.top-bar-whatsapp a:hover {
    background: rgba(37, 211, 102, 0.3);
}

/* ============================================ */
/* 3. HEADER Y NAVEGACIÓN */
/* ============================================ */

.main-header {
    background: linear-gradient(135deg, #2C1B5A, #3d2a7a);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.logo-principal .logo-header {
    height: 85px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-principal .logo-header:hover {
    transform: scale(1.03);
}

.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.main-nav .nav-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    letter-spacing: 0.03em;
}

.main-nav .nav-list a:hover,
.main-nav .nav-list a.active {
    color: #fff;
    background: rgba(233, 73, 68, 0.3);
}

.header-cta .btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #e94944;
    color: #fff;
    padding: 0.6rem 1.4rem;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.header-cta .btn-cta:hover {
    background: #FFD966;
    color: #1a0e3a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 73, 68, 0.4);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.3rem;
}

/* ============================================ */
/* 4. CONTENEDOR PRINCIPAL - HORARIO */
/* ============================================ */

.poster {
    width: 100%;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.contenedor-principal {
    position: relative;
    z-index: 2;
    padding: 2rem 2.5rem;
    backdrop-filter: blur(4px);
    border-radius: 1.5rem;
}

/* ============================================ */
/* 5. ENCABEZADO DE SECCIÓN */
/* ============================================ */

.encabezado {
    text-align: center;
    margin-bottom: 2rem;
}

.titulo-principal {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #FFD966, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.subtitulo {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.encabezado .separador {
    width: 80px;
    height: 4px;
    background: #e94944;
    margin: 1rem auto 0;
    border-radius: 4px;
}

/* ============================================ */
/* 6. MENSAJE DE CARGA */
/* ============================================ */

.cargando-mensaje {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
}

.cargando-mensaje i {
    color: #FFD966;
    font-size: 1.2rem;
}

/* ============================================ */
/* 7. CALENDARIO - WRAPPER Y TABLA */
/* ============================================ */

.calendar-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 1.5rem;
    backdrop-filter: blur(4px);
    padding: 0.75rem;
}

.weekly-calendar {
    width: 100%;
    min-width: 700px;
    border-collapse: separate;
    border-spacing: 0.5rem 0;
    table-layout: fixed;
}

.weekly-calendar th {
    background: #2C1B5A;
    padding: 0.9rem 0.3rem;
    text-align: center;
    font-weight: 900;
    font-size: 1rem;
    color: white;
    border-radius: 0.8rem 0.8rem 0 0;
    letter-spacing: 0.03em;
    backdrop-filter: blur(4px);
}

.weekly-calendar td {
    background: rgba(137, 73, 73, 0.06);
    padding: 0.6rem;
    vertical-align: top;
    border-radius: 0 0 0.8rem 0.8rem;
    transition: all 0.2s ease;
    min-height: 150px;
}

.weekly-calendar td:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ============================================ */
/* 8. DÍA VACÍO */
/* ============================================ */

.empty-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0.5rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
}

.empty-day i {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    color: rgba(255, 255, 255, 0.2);
}

.empty-day span {
    font-size: 0.75rem;
}

/* ============================================ */
/* 9. TARJETAS DE CLASE */
/* ============================================ */

.class-item {
    background: rgba(114, 82, 218, 0.4);
    border-radius: 0.75rem;
    padding: 0.6rem 0.7rem;
    margin-bottom: 0.7rem;
    transition: transform 0.15s ease, background 0.2s;
    cursor: default;
}

.class-item:hover {
    transform: translateX(4px);
    background: #2C1B5A;
}

.class-time {
    font-weight: 900;
    color: #FFD966;
    display: block;
    font-size: 0.75rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.class-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    display: block;
    line-height: 1.2;
}

.class-level {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.85;
    color: #f0f0f0;
    display: block;
    margin-top: 0.2rem;
}

/* ============================================ */
/* 10. BADGES */
/* ============================================ */

.badge-workshop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e94944;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
    margin-top: 0.25rem;
    color: white;
    flex-wrap: wrap;
}

.badge-workshop .star {
    color: white;
    font-size: 0.6rem;
}

.badge-workshop .stars {
    display: inline-flex;
    gap: 1px;
    margin-left: 2px;
}

.badge-special {
    background: #FFD966;
    color: #1a0e3a;
}

.badge-special .star {
    color: #1a0e3a;
}

/* ============================================ */
/* 11. ESTRELLAS - NIVELES */
/* ============================================ */

.star {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1;
}

.star.active {
    color: #e94944;
}

.star:not(.active) {
    color: rgba(255, 255, 255, 0.3);
}

.badge-special .star.active {
    color: #1a0e3a;
}

.badge-special .star:not(.active) {
    color: rgba(26, 14, 58, 0.3);
}

/* --- Estrellas estilo original forzado --- */
.badge-workshop .stars {
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    margin-left: 6px !important;
}

.badge-workshop .star {
    display: inline-block !important;
    font-size: 0.75rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: rgba(255, 255, 255, 0.2) !important;
}

.badge-workshop .star.active {
    color: #e94944 !important;
}

.badge-special .star.active {
    color: #1a0e3a !important;
}

.badge-special .star:not(.active) {
    color: rgba(26, 14, 58, 0.3) !important;
}

.class-level .stars {
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    margin-left: 6px !important;
}

.class-level .star {
    display: inline-block !important;
    font-size: 0.75rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: rgba(255, 255, 255, 0.2) !important;
}

.class-level .star.active {
    color: #e94944 !important;
}

/* Forzar estrellas blancas */
.badge-workshop .stars .star {
    color: #ffffff !important;
    font-size: 0.7rem !important;
    font-weight: 900 !important;
}

.badge-workshop .stars {
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    margin-left: 4px !important;
}

.badge-special .stars .star {
    color: #1a0e3a !important;
}

/* ============================================ */
/* 12. LEYENDA DE NIVELES */
/* ============================================ */

.leyenda-niveles {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.8rem 1.5rem;
    padding: 0.8rem 1.2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    margin-top: 1rem;
}

.leyenda-titulo {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    font-size: 0.8rem;
}

.leyenda-titulo i {
    color: #FFD966;
    margin-right: 0.3rem;
}

.leyenda-item {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.leyenda-item .star {
    color: #e94944;
    font-size: 0.7rem;
}

.badge-leyenda {
    background: #e94944;
    color: white;
    padding: 0.1rem 0.5rem;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 600;
}

/* ============================================ */
/* 13. ÚLTIMA ACTUALIZACIÓN */
/* ============================================ */

.ultima-actualizacion {
    text-align: center;
    padding: 0.6rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.ultima-actualizacion i {
    color: #FFD966;
    margin-right: 0.4rem;
}

.ultima-actualizacion strong {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================ */
/* 14. MENSAJE DE ERROR */
/* ============================================ */

.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1.5rem;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    min-height: 300px;
    backdrop-filter: blur(4px);
}

.error-message i {
    font-size: 3.5rem;
    color: #FFD966;
    margin-bottom: 1.2rem;
    background: rgba(255, 217, 102, 0.15);
    padding: 1rem;
    border-radius: 50%;
    animation: pulse-error 2s ease-in-out infinite;
}

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

.error-message h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.error-message p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
    max-width: 400px;
    line-height: 1.6;
}

.btn-reintentar {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #FFD966;
    color: #1a0e3a;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 217, 102, 0.2);
}

.btn-reintentar:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 217, 102, 0.3);
    background: #ffffff;
}

.btn-reintentar:active {
    transform: scale(0.95);
}

.btn-reintentar i {
    font-size: 1rem;
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    animation: none;
    color: inherit;
}

/* ============================================ */
/* 15. FOOTER */
/* ============================================ */

.main-footer {
    background: #1a0e3a;
    color: rgba(255, 255, 255, 0.8);
    padding: 2.5rem 0 0;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 0.5rem;
}

.footer-col p {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

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

.footer-col ul li {
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #FFD966;
}

.footer-col ul li i {
    width: 1.4rem;
    color: #e94944;
    flex-shrink: 0;
    text-align: center;
}

.footer-bottom {
    padding: 1.2rem 0;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-credit a {
    color: #FFD966;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-credit a:hover {
    text-decoration: underline;
}

.footer-credit a i {
    font-size: 0.9rem;
}

/* ============================================ */
/* 16. BOTONES FLOTANTES */
/* ============================================ */

.floating-buttons {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 999;
}

.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.float-btn:hover {
    transform: scale(1.08) translateY(-3px);
}

.float-whatsapp {
    background: #25d366;
}

.float-whatsapp:hover {
    background: #268142;
}

.float-contrast {
    background: #e94944;
}

.float-contrast:hover {
    background: #8F332D;
    color: #ffffff;
}

.float-up {
    background: #e94944;
}

.float-up:hover {
    background: #8F332D;
    color: #ffffff;
}

/* ============================================ */
/* 17. ESTADO DE CONTRASTE ALTO (accesibilidad) */
/* ============================================ */

body.high-contrast {
    background: #000 !important;
    color: #fff !important;
}

body.high-contrast .main-header,
body.high-contrast .top-bar,
body.high-contrast .main-footer {
    background: #111 !important;
}

body.high-contrast .contenedor-principal {
    background: #111 !important;
}

body.high-contrast .poster {
    background: #111 !important;
}

body.high-contrast .class-item {
    background: #222 !important;
}

body.high-contrast .class-item:hover {
    background: #333 !important;
}

body.high-contrast .class-time {
    color: #ffcc00 !important;
}

body.high-contrast .class-name {
    color: #fff !important;
}

body.high-contrast .class-level {
    color: #ddd !important;
}

body.high-contrast .badge-workshop {
    background: #ffcc00 !important;
    color: #000 !important;
}

body.high-contrast .badge-workshop .star {
    color: #000 !important;
}

body.high-contrast .badge-special {
    background: #ffcc00 !important;
    color: #000 !important;
}

body.high-contrast .badge-special .star {
    color: #000 !important;
}

body.high-contrast .weekly-calendar th {
    background: #222 !important;
    color: #ffcc00 !important;
}

body.high-contrast .weekly-calendar td {
    background: #1a1a1a !important;
}

body.high-contrast .weekly-calendar td:hover {
    background: #333 !important;
}

body.high-contrast .btn-cta {
    background: #ffcc00 !important;
    color: #000 !important;
}

body.high-contrast .btn-cta:hover {
    background: #ffcc00 !important;
    color: #000 !important;
}

body.high-contrast .float-contrast {
    background: #ffcc00 !important;
    color: #000 !important;
}

body.high-contrast .float-whatsapp {
    background: #ffcc00 !important;
    color: #000 !important;
}

body.high-contrast .float-up {
    background: #ffcc00 !important;
    color: #000 !important;
}

body.high-contrast .top-bar-logo {
    background: #ffcc00 !important;
}

body.high-contrast .logo-icono {
    color: #000 !important;
}

body.high-contrast .logo-amigos,
body.high-contrast .logo-bailando {
    color: #000 !important;
}

body.high-contrast .top-bar-whatsapp a {
    background: #222 !important;
    border: 1px solid #555 !important;
}

body.high-contrast .top-bar-whatsapp a i {
    color: #ffcc00 !important;
}

body.high-contrast .top-bar-whatsapp a span {
    color: #fff !important;
}

body.high-contrast .top-bar-socials a {
    color: #ffcc00 !important;
}

body.high-contrast .top-bar-socials a:hover {
    color: #fff !important;
}

body.high-contrast .footer-col h4 {
    color: #ffcc00 !important;
}

body.high-contrast .footer-col ul li a {
    color: #ddd !important;
}

body.high-contrast .footer-col ul li a:hover {
    color: #ffcc00 !important;
}

body.high-contrast .footer-credit a {
    color: #ffcc00 !important;
}

body.high-contrast .footer-credit a i {
    color: #ffcc00 !important;
}

body.high-contrast .separador {
    background: #ffcc00 !important;
}

body.high-contrast .encabezado .separador {
    background: #ffcc00 !important;
}

body.high-contrast .titulo-principal {
    -webkit-text-fill-color: #ffcc00 !important;
    background: none !important;
    color: #ffcc00 !important;
}

body.high-contrast .subtitulo {
    color: #ddd !important;
}

body.high-contrast .star {
    color: #ffcc00 !important;
}

body.high-contrast .star:not(.active) {
    color: rgba(255, 255, 255, 0.3) !important;
}

body.high-contrast .star.active {
    color: #000 !important;
}

body.high-contrast .badge-workshop .star.active {
    color: #000 !important;
}

body.high-contrast .badge-workshop .star:not(.active) {
    color: rgba(0, 0, 0, 0.3) !important;
}

body.high-contrast .leyenda-niveles {
    background: #1a1a1a !important;
}

body.high-contrast .leyenda-titulo {
    color: #ffcc00 !important;
}

body.high-contrast .leyenda-item {
    color: #ddd !important;
}

body.high-contrast .leyenda-item .star {
    color: #ffcc00 !important;
}

body.high-contrast .badge-leyenda {
    background: #ffcc00 !important;
    color: #000 !important;
}

body.high-contrast .empty-day {
    color: rgba(255, 255, 255, 0.5) !important;
}

body.high-contrast .cargando-mensaje {
    color: #ffcc00 !important;
}

body.high-contrast .cargando-mensaje i {
    color: #ffcc00 !important;
}

body.high-contrast .error-message {
    color: #fff !important;
}

body.high-contrast .error-message i {
    color: #ffcc00 !important;
}

body.high-contrast .btn-reintentar {
    background: #ffcc00 !important;
    color: #000 !important;
}

body.high-contrast .ultima-actualizacion {
    color: #ddd !important;
}

body.high-contrast .ultima-actualizacion i {
    color: #ffcc00 !important;
}

body.high-contrast .ultima-actualizacion strong {
    color: #fff !important;
}

/* ============================================ */
/* 18. RESPONSIVE - MEDIA QUERIES */
/* ============================================ */

/* --- Tablets (768px - 1024px) --- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .top-bar-logo {
        padding: 0.25rem 1rem;
    }
    .logo-icono { font-size: 2rem; }
    .logo-amigos { font-size: 1.1rem; }
    .logo-bailando { font-size: 0.65rem; }

    .contenedor-principal {
        padding: 1.5rem;
    }

    .poster {
        margin: 1.5rem auto;
    }

    .weekly-calendar {
        min-width: 650px;
    }

    .weekly-calendar th {
        font-size: 0.85rem;
        padding: 0.7rem 0.2rem;
    }

    .class-item {
        padding: 0.5rem 0.6rem;
        margin-bottom: 0.6rem;
    }

    .class-time {
        font-size: 0.7rem;
    }

    .class-name {
        font-size: 0.75rem;
    }

    .leyenda-niveles {
        gap: 0.5rem 1rem;
        padding: 0.6rem 1rem;
    }

    .leyenda-item {
        font-size: 0.7rem;
    }
}

/* --- Tablets pequeñas (hasta 850px) --- */
@media (max-width: 850px) {
    .poster {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .contenedor-principal {
        padding: 1rem;
        border-radius: 1rem;
    }

    .titulo-principal {
        font-size: 1.5rem;
    }

    .subtitulo {
        font-size: 0.8rem;
    }

    .encabezado .separador {
        width: 60px;
        height: 3px;
    }

    .weekly-calendar {
        border-spacing: 0.3rem 0;
        min-width: 580px;
    }

    .weekly-calendar th {
        font-size: 0.7rem;
        padding: 0.5rem 0.2rem;
    }

    .class-item {
        padding: 0.4rem 0.5rem;
        margin-bottom: 0.5rem;
    }

    .class-time {
        font-size: 0.65rem;
    }

    .class-name {
        font-size: 0.65rem;
    }

    .class-level {
        font-size: 0.6rem;
    }

    .badge-workshop {
        font-size: 0.5rem;
        padding: 0.1rem 0.4rem;
        gap: 3px;
    }

    .badge-workshop .star {
        font-size: 0.5rem;
    }

    .calendar-wrapper {
        padding: 0.5rem;
        border-radius: 1rem;
    }

    .leyenda-niveles {
        gap: 0.4rem 0.8rem;
        padding: 0.5rem 0.8rem;
    }

    .leyenda-titulo {
        font-size: 0.7rem;
    }

    .leyenda-item {
        font-size: 0.65rem;
    }
}

/* --- Móviles grandes (600px - 768px) --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav .nav-list {
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        gap: 0.3rem;
    }

    .main-nav .nav-list a {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
        width: 100%;
        text-align: center;
    }

    .header-cta .btn-cta {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
        gap: 0.3rem;
    }

    .logo-principal .logo-header {
        height: 45px;
    }

    .top-bar-inner {
        justify-content: center;
        gap: 0.8rem;
        flex-wrap: wrap;
    }

    .top-bar-whatsapp span {
        display: none;
    }

    .top-bar-socials {
        gap: 0.6rem;
    }

    .top-bar-logo {
        padding: 0.2rem 0.8rem;
        border-radius: 4px;
    }
    .logo-texto { gap: 0.4rem; }
    .logo-icono { font-size: 1.7rem; }
    .logo-amigos { font-size: 0.95rem; }
    .logo-bailando { font-size: 0.55rem; }

    .poster {
        padding: 0 0.8rem;
        margin: 0.5rem auto;
    }

    .contenedor-principal {
        padding: 0.8rem;
        border-radius: 0.8rem;
    }

    .titulo-principal {
        font-size: 1.3rem;
        letter-spacing: 0.05em;
    }

    .subtitulo {
        font-size: 0.7rem;
    }

    .encabezado .separador {
        width: 50px;
        height: 3px;
        margin: 0.6rem auto 0;
    }

    .encabezado {
        margin-bottom: 1rem;
    }

    .weekly-calendar {
        min-width: 520px;
        border-spacing: 0.25rem 0;
    }

    .weekly-calendar th {
        font-size: 0.6rem;
        padding: 0.4rem 0.1rem;
        border-radius: 0.5rem 0.5rem 0 0;
    }

    .weekly-calendar td {
        padding: 0.4rem;
        border-radius: 0 0 0.5rem 0.5rem;
    }

    .calendar-wrapper {
        padding: 0.4rem;
        border-radius: 0.8rem;
        margin: 0.5rem 0;
    }

    .class-item {
        padding: 0.35rem 0.4rem;
        margin-bottom: 0.4rem;
        border-radius: 0.5rem;
    }

    .class-time {
        font-size: 0.55rem;
    }

    .class-name {
        font-size: 0.58rem;
    }

    .class-level {
        font-size: 0.55rem;
        margin-top: 0.1rem;
    }

    .badge-workshop {
        display: flex;
        flex-wrap: wrap;
        gap: 3px;
        font-size: 0.5rem;
        padding: 0.1rem 0.4rem;
        width: 100%;
        justify-content: flex-start;
        margin-top: 0.15rem;
    }

    .badge-workshop .star {
        font-size: 0.5rem;
    }

    .badge-workshop .stars {
        gap: 1px;
        margin-left: 2px;
    }

    .empty-day {
        padding: 1rem 0.3rem;
    }

    .empty-day i {
        font-size: 1.2rem;
    }

    .empty-day span {
        font-size: 0.65rem;
    }

    .leyenda-niveles {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        padding: 0.6rem 1rem;
    }

    .leyenda-item {
        font-size: 0.7rem;
    }

    /* Reordenamiento footer en vertical */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .footer-col ul li {
        justify-content: center;
    }

    /* Botones flotantes en móvil */
    .floating-buttons {
        bottom: 1rem;
        right: 0.8rem;
        gap: 0.6rem;
    }

    .float-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .ultima-actualizacion {
        font-size: 0.7rem;
    }
}

/* --- Móviles pequeños (hasta 480px) --- */
@media (max-width: 480px) {
    .poster {
        padding: 0 0.5rem;
        margin: 0.3rem auto;
    }

    .contenedor-principal {
        padding: 0.5rem;
        border-radius: 0.6rem;
    }

    .titulo-principal {
        font-size: 1.1rem;
        letter-spacing: 0.03em;
    }

    .subtitulo {
        font-size: 0.6rem;
    }

    .encabezado .separador {
        width: 40px;
        height: 2px;
        margin: 0.4rem auto 0;
    }

    .encabezado {
        margin-bottom: 0.8rem;
    }

    .cargando-mensaje {
        font-size: 0.8rem;
        padding: 0.8rem;
    }

    .weekly-calendar {
        min-width: 420px;
        border-spacing: 0.2rem 0;
    }

    .weekly-calendar th {
        font-size: 0.5rem;
        padding: 0.3rem 0.1rem;
        border-radius: 0.4rem 0.4rem 0 0;
        letter-spacing: 0.02em;
    }

    .weekly-calendar td {
        padding: 0.3rem;
        border-radius: 0 0 0.4rem 0.4rem;
    }

    .calendar-wrapper {
        padding: 0.3rem;
        border-radius: 0.6rem;
        margin: 0.4rem 0;
    }

    .class-item {
        padding: 0.25rem 0.3rem;
        margin-bottom: 0.3rem;
        border-radius: 0.4rem;
    }

    .class-time {
        font-size: 0.45rem;
    }

    .class-name {
        font-size: 0.48rem;
    }

    .class-level {
        font-size: 0.45rem;
        margin-top: 0.05rem;
    }

    .badge-workshop {
        display: flex;
        flex-wrap: wrap;
        gap: 2px;
        padding: 0.08rem 0.3rem;
        font-size: 0.42rem;
        width: 100%;
        justify-content: flex-start;
        border-radius: 12px;
        margin-top: 0.1rem;
    }

    .badge-workshop .star {
        font-size: 0.42rem;
    }

    .top-bar-logo {
        padding: 0.15rem 0.5rem;
        border-radius: 4px;
    }
    .logo-texto { gap: 0.25rem; }
    .logo-icono { font-size: 1.3rem; }
    .logo-amigos { font-size: 0.75rem; }
    .logo-bailando { font-size: 0.45rem; }

    .top-bar-socials a {
        font-size: 0.8rem;
    }
    .top-bar-socials {
        gap: 0.5rem;
    }

    .empty-day {
        padding: 0.8rem 0.2rem;
    }

    .empty-day i {
        font-size: 1rem;
    }

    .empty-day span {
        font-size: 0.55rem;
    }

    .leyenda-niveles {
        padding: 0.5rem 0.8rem;
        gap: 0.3rem;
    }

    .leyenda-titulo {
        font-size: 0.7rem;
    }

    .leyenda-item {
        font-size: 0.6rem;
    }

    .badge-leyenda {
        font-size: 0.5rem;
        padding: 0.05rem 0.4rem;
    }

    .footer-grid {
        gap: 1rem;
        padding-bottom: 1rem;
    }
    .footer-logo {
        height: 35px;
    }
    .footer-col h4 {
        font-size: 0.8rem;
    }
    .footer-col ul li {
        font-size: 0.7rem;
        gap: 0.3rem;
    }
    .footer-col ul li i {
        width: 1rem;
        font-size: 0.7rem;
    }
    .footer-bottom {
        padding: 0.6rem 0;
        font-size: 0.6rem;
    }

    .floating-buttons {
        bottom: 0.7rem;
        right: 0.5rem;
        gap: 0.4rem;
    }

    .float-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .error-message {
        padding: 2rem 1rem;
    }

    .error-message i {
        font-size: 2.5rem;
    }

    .error-message p {
        font-size: 0.85rem;
    }

    .btn-reintentar {
        font-size: 0.8rem;
        padding: 0.5rem 1.2rem;
    }

    .ultima-actualizacion {
        font-size: 0.65rem;
    }
}

/* --- Móviles muy pequeños (hasta 400px) --- */
@media (max-width: 400px) {
    .poster {
        padding: 0 0.3rem;
        margin: 0.2rem auto;
    }

    .contenedor-principal {
        padding: 0.3rem;
        border-radius: 0.4rem;
    }

    .titulo-principal {
        font-size: 0.9rem;
        letter-spacing: 0.02em;
    }

    .subtitulo {
        font-size: 0.5rem;
        margin-top: 0.2rem;
    }

    .encabezado .separador {
        width: 35px;
        height: 2px;
        margin: 0.3rem auto 0;
    }

    .encabezado {
        margin-bottom: 0.6rem;
    }

    .weekly-calendar {
        min-width: 340px;
        border-spacing: 0.15rem 0;
    }

    .weekly-calendar th {
        font-size: 0.4rem;
        padding: 0.2rem 0.05rem;
        border-radius: 0.3rem 0.3rem 0 0;
    }

    .weekly-calendar td {
        padding: 0.2rem;
        border-radius: 0 0 0.3rem 0.3rem;
    }

    .calendar-wrapper {
        padding: 0.2rem;
        border-radius: 0.4rem;
        margin: 0.3rem 0;
    }

    .class-item {
        padding: 0.2rem 0.25rem;
        margin-bottom: 0.25rem;
        border-radius: 0.3rem;
    }

    .class-time {
        font-size: 0.4rem;
        margin-bottom: 0.05rem;
    }

    .class-name {
        font-size: 0.42rem;
    }

    .class-level {
        font-size: 0.4rem;
        margin-top: 0.05rem;
    }

    .badge-workshop {
        padding: 0.06rem 0.25rem;
        font-size: 0.35rem;
        gap: 1px;
        border-radius: 10px;
        margin-top: 0.05rem;
    }

    .badge-workshop .star {
        font-size: 0.35rem;
    }

    .top-bar-logo {
        padding: 0.1rem 0.3rem;
        border-radius: 3px;
    }
    .logo-texto { gap: 0.15rem; }
    .logo-icono { font-size: 1rem; }
    .logo-amigos { font-size: 0.6rem; }
    .logo-bailando { font-size: 0.35rem; }
    .top-bar-socials a {
        font-size: 0.7rem;
    }
    .top-bar-socials {
        gap: 0.4rem;
    }

    .leyenda-niveles {
        padding: 0.4rem 0.6rem;
        gap: 0.2rem;
    }

    .leyenda-titulo {
        font-size: 0.6rem;
    }

    .leyenda-item {
        font-size: 0.55rem;
    }

    .footer-col ul li {
        font-size: 0.65rem;
    }
    .footer-col ul li i {
        width: 0.9rem;
        font-size: 0.65rem;
    }
    .footer-bottom {
        font-size: 0.55rem;
    }

    .floating-buttons {
        bottom: 0.5rem;
        right: 0.4rem;
        gap: 0.35rem;
    }

    .float-btn {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .ultima-actualizacion {
        font-size: 0.55rem;
    }
}