/* ============================================ */
/* RESET Y BASE */
/* ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #3ebdb3;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem;
}

/* ============================================ */
/* POSTER - FONDO TURQUESA */
/* ============================================ */
.poster {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: #3ebdb3;
    z-index: 0;
}

/* ============================================ */
/* CONTENEDOR PRINCIPAL */
/* ============================================ */
.contenedor-principal {
    position: relative;
    z-index: 2;
    padding: 1.2rem;
    backdrop-filter: blur(3px);
}

/* ============================================ */
/* LOGO */
/* ============================================ */
.logo-top-left {
    position: absolute;
    top: 0.5rem;
    left: 2.5rem !important;
    z-index: 10;
}

.logo-header {
    width: 130px;
    height: auto;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.95;
}

.logo-header:hover {
    transform: scale(1.02);
    opacity: 1;
}

/* ============================================ */
/* ENCABEZADO */
/* ============================================ */
.encabezado {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-top: 0.5rem;
}

.icono-verano {
    font-size: 2.5rem;
    color: #FFEAA7;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(255, 234, 167, 0.2);
}

.titulo-principal {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #FFEAA7, #FFD93D, #FFB347);
    -webkit-background-clip: text;
    background-clip: text;
    color: #ffffff;
    text-shadow: none;
}

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

.subtitulo i {
    color: #FFEAA7;
    margin-right: 0.3rem;
}

.separador {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #FF6B6B, #FFEAA7, #6BCB77);
    margin: 1rem auto 0;
    border-radius: 4px;
}

/* ============================================ */
/* PROFESORES - CÍRCULOS BLANCOS */
/* ============================================ */
.profesores-container {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.profesor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.profesor-foto {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #ffffff;
    padding: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.profesor-foto:hover {
    transform: scale(1.05);
}

.profesor-foto img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.profesor-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================ */
/* CALENDARIO */
/* ============================================ */
.calendario-wrapper {
    background: #32716B;
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.calendario-header {
    text-align: center;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mes-titulo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.1em;
}

.calendario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

/* ============================================ */
/* DÍA DEL CALENDARIO */
/* ============================================ */
.dia-card {
    background: rgba(255, 234, 167, 0.06);
    border-radius: 1rem;
    padding: 1rem;
    border: 2px solid rgba(255, 234, 167, 0.15);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.dia-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 234, 167, 0.4);
}

.dia-card.fin-semana {
    border-color: rgba(255, 234, 167, 0.25);
    background: rgba(255, 234, 167, 0.08);
}

.dia-fecha {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dia-numero-cal {
    font-size: 2.8rem;
    font-weight: 900;
    color: #FFEAA7;
    line-height: 1;
}

.dia-mes-cal {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================ */
/* CLASES DENTRO DEL DÍA */
/* ============================================ */
.dia-clases {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
}

.clase-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.7rem 0.8rem;
    background: rgba(57, 98, 94, 0.8);
    border-radius: 0.6rem;
}

.clase-item-2 {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.7rem 0.8rem;
    background: #1F4F3A;
    border-radius: 0.6rem;
}

.clase-item-3 {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.7rem 0.8rem;
    background: #3D4F1F;
    border-radius: 0.6rem;
}


.clase-item.destacado-cal {
    border-left-color: #FFEAA7;
    background: rgba(32, 50, 48, 0.9);
}

.clase-item-son {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.7rem 0.8rem;
    background: #1A2F4A;
    border-radius: 0.6rem;
}

.clase-item-son-moderno {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.7rem 0.8rem;
    background: #365D7D;
    border-radius: 0.6rem;
}

.clase-item-bachata {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.7rem 0.8rem;
    background: #4A1A2E;
    border-radius: 0.6rem;
}

.clase-item-salsa-cubana {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.7rem 0.8rem;
    background: #B85C1A;
    border-radius: 0.6rem;
}

.clase-item-latinos {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.7rem 0.8rem;
    background: #5B3073;
    border-radius: 0.6rem;
}

.clase-item-rueda {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.7rem 0.8rem;
    background: #1A4A3A;
    border-radius: 0.6rem;
}

.clase-item-rueda-inter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.7rem 0.8rem;
    background: #1A2F3A;
    border-radius: 0.6rem;
}

.clase-item-mambo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.7rem 0.8rem;
    background: #188B85;
    border-radius: 0.6rem;
}

/* ============================================ */
/* BADGES DE NIVEL */
/* ============================================ */
.clase-nivel-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.4rem 1.6rem;
    border-radius: 40px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    align-self: flex-start;
    color: #ffffff;
}

.clase-nivel-badge.iniciacion {
    background: #4ECDC4;
    color: #0a0a0a;
}

.clase-nivel-badge.iniciacion-son {
    background: #4ECDC4;
    color: #0a0a0a;
}

.clase-nivel-badge.kids {
    background: #8DB847;
    color: #ffffff;
}

.clase-nivel-badge.fitness {
    background: #27AE60;
    color: #ffffff;
}

.clase-nivel-badge.basico {
    background: #FFEAA7;
    color: #1a0a0a;
}

.clase-nivel-badge.avanzado {
    background: #B265BB;
    color: #ffffff;
}

.clase-nivel-badge.inicio-bachata {
    background: #BD4275;
    color: #ffffff;
}

.clase-nivel-badge.inicio-son-trad {
    background: #4277BD;
    color: #ffffff;
}

.clase-nivel-badge.inicio-salsa-cubana {
    background: #E58948;
    color: #ffffff;
}

.clase-nivel-badge.inicio-latinos {
    background: #A26CC1;
    color: #ffffff;
}

.clase-nivel-badge.inicio-rueda {
    background: #42BD94;
    color: #ffffff;
}

.clase-nivel-badge.inter-rueda {
    background: #4F8EB0;
    color: #ffffff;
}

.clase-nivel-badge.basico-son-moderno {
    background: #6D9BC0;
    color: #ffffff;
}

.clase-nivel-badge.basico-mambo {
    background: #74E7E1;
    color: #0a0a0a;
}

/* ============================================ */
/* NOMBRE Y HORARIO */
/* ============================================ */
.clase-nombre-cal {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.clase-horario-cal {
    font-size: 1rem;
    font-weight: 200;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.clase-horario-cal i {
    color: #FFEAA7;
    font-size: 0.8rem;
}

.clase-profesor-cal {
    font-size: 0.9rem;
    font-weight: 200;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.clase-profesor-cal i {
    color: #FFEAA7;
    font-size: 0.8rem;
}

/* ============================================ */
/* NOTA ESPECIAL EN CALENDARIO */
/* ============================================ */
.clase-nota-cal {
    margin-top: 0.2rem;
    padding: 0.3rem 0.5rem;
    background: rgba(255, 234, 167, 0.1);
    border-radius: 6px;
    font-size: 0.8rem;
    color: #FFEAA7;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    border: 1px solid rgba(255, 234, 167, 0.1);
}

.clase-nota-cal i {
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: #FFEAA7;
}

/* ============================================ */
/* LOGO ZUMBA EN CALENDARIO */
/* ============================================ */
.zumba-logo-cal {
    margin-top: 0.15rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.logo-zumba-cal {
    height: 22px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* ============================================ */
/* FOOTER */
/* ============================================ */
.footer-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    align-items: center;
}

.chip {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    padding: 0.4rem 0.8rem;
    border-radius: 40px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    font-size: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.chip:hover {
    transform: translateY(-2px);
    border-color: #FFEAA7;
    background: #113633;
}

.chip i {
    font-size: 0.8rem;
    flex-shrink: 0;
    color: #FFEAA7;
}

.chip a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    word-break: break-word;
}

.chip a:hover {
    color: #FFEAA7;
}

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

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
    .calendario-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 0.8rem;
    }
    
    .dia-numero-cal {
        font-size: 2.5rem;
    }
    
    .profesor-foto {
        width: 85px;
        height: 85px;
    }

    .clase-nivel-badge {
        font-size: 0.7rem;
        padding: 0.4rem 1.5rem;
    }
}

/* Tablets pequeñas y móviles grandes */
@media (max-width: 820px) {
    .calendario-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 0.7rem;
    }
    
    .titulo-principal {
        font-size: 2.2rem;
    }
    
    .profesor-foto {
        width: 75px;
        height: 75px;
    }
    
    .profesores-container {
        gap: 2rem;
    }
}

/* Móviles estándar y tablets en vertical */
@media (max-width: 768px) {
    .calendario-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
    
    .dia-card {
        padding: 0.8rem;
    }
    
    .dia-numero-cal {
        font-size: 2.2rem;
    }
    
    .clase-nombre-cal {
        font-size: 0.95rem;
    }
    
    .clase-horario-cal {
        font-size: 0.9rem;
    }
    
    .clase-profesor-cal {
        font-size: 0.8rem;
    }
    
    .profesor-foto {
        width: 70px;
        height: 70px;
    }
    
    .profesores-container {
        gap: 1.8rem;
    }

    .clase-nivel-badge {
        font-size: 0.65rem;
        padding: 0.35rem 1.2rem;
    }
    
    .logo-header {
        width: 110px;
    }
}

/* Móviles pequeños */
@media (max-width: 600px) {
    .calendario-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .titulo-principal {
        font-size: 1.8rem;
    }
    
    .subtitulo {
        font-size: 0.85rem;
    }
    
    .mes-titulo {
        font-size: 1.3rem;
    }
    
    .logo-header {
        width: 95px;
    }
}

/* Móviles muy pequeños (menos de 480px) */
@media (max-width: 480px) {
    body {
        padding: 0.4rem;
    }
    
    .poster {
        border-radius: 0.8rem;
    }
    
    .contenedor-principal {
        padding: 0.5rem;
    }
    
    .logo-top-left {
        top: 0.3rem;
        left: 0.8rem !important;
    }
    
    .logo-header {
        width: 75px;
    }
    
    .encabezado {
        margin-bottom: 1rem;
        padding-top: 2.5rem;
    }
    
    .icono-verano {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }
    
    .titulo-principal {
        font-size: 1.4rem;
        letter-spacing: 0.03em;
    }
    
    .subtitulo {
        font-size: 0.7rem;
        margin-top: 0.3rem;
    }
    
    .separador {
        width: 60px;
        height: 3px;
        margin: 0.6rem auto 0;
    }
    
    .calendario-wrapper {
        padding: 0.6rem;
        border-radius: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .calendario-header {
        margin-bottom: 0.8rem;
        padding-bottom: 0.4rem;
    }
    
    .mes-titulo {
        font-size: 1rem;
        letter-spacing: 0.05em;
    }
    
    .calendario-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .dia-card {
        padding: 0.6rem;
        border-radius: 0.6rem;
        border-width: 1.5px;
    }
    
    .dia-card:hover {
        transform: none;
    }
    
    .dia-fecha {
        gap: 0.4rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.4rem;
    }
    
    .dia-numero-cal {
        font-size: 2rem;
    }
    
    .dia-mes-cal {
        font-size: 0.7rem;
    }
    
    .dia-clases {
        gap: 0.5rem;
    }
    
    .clase-item,
    .clase-item-2 {
        padding: 0.4rem 0.5rem;
        gap: 0.3rem;
        border-radius: 0.4rem;
    }
    
    .clase-nivel-badge {
        font-size: 0.5rem;
        padding: 0.2rem 0.8rem;
        border-radius: 25px;
    }
    
    .clase-nombre-cal {
        font-size: 0.85rem;
    }
    
    .clase-horario-cal {
        font-size: 0.75rem;
        gap: 0.2rem;
    }
    
    .clase-horario-cal i {
        font-size: 0.65rem;
    }
    
    .clase-profesor-cal {
        font-size: 0.7rem;
        gap: 0.2rem;
    }
    
    .clase-profesor-cal i {
        font-size: 0.65rem;
    }
    
    .clase-nota-cal {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
        gap: 0.3rem;
    }
    
    .clase-nota-cal i {
        font-size: 0.55rem;
    }
    
    .logo-zumba-cal {
        height: 16px;
    }
    
    .zumba-logo-cal {
        margin-top: 0.1rem;
    }
    
    .profesores-container {
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .profesor-foto {
        width: 55px;
        height: 55px;
        padding: 3px;
    }
    
    .profesor-label {
        font-size: 0.6rem;
    }
    
    .footer-info {
        gap: 0.4rem;
        margin-top: 1rem;
    }
    
    .chip {
        padding: 0.2rem 0.5rem;
        font-size: 0.5rem;
        gap: 0.3rem;
        border-radius: 30px;
    }
    
    .chip i {
        font-size: 0.6rem;
    }
}

/* Móviles extra pequeños (menos de 380px) */
@media (max-width: 380px) {
    body {
        padding: 0.2rem;
    }
    
    .logo-header {
        width: 60px;
    }
    
    .logo-top-left {
        top: 0.2rem;
        left: 0.5rem !important;
    }
    
    .titulo-principal {
        font-size: 1.1rem;
    }
    
    .subtitulo {
        font-size: 0.6rem;
    }
    
    .icono-verano {
        font-size: 1.3rem;
    }
    
    .dia-numero-cal {
        font-size: 1.6rem;
    }
    
    .dia-mes-cal {
        font-size: 0.6rem;
    }
    
    .clase-nombre-cal {
        font-size: 0.75rem;
    }
    
    .clase-horario-cal {
        font-size: 0.65rem;
    }
    
    .clase-profesor-cal {
        font-size: 0.6rem;
    }
    
    .clase-nivel-badge {
        font-size: 0.45rem;
        padding: 0.15rem 0.6rem;
        border-radius: 20px;
    }
    
    .profesor-foto {
        width: 45px;
        height: 45px;
        padding: 2px;
    }
    
    .profesor-label {
        font-size: 0.5rem;
    }
    
    .profesores-container {
        gap: 0.8rem;
    }
    
    .mes-titulo {
        font-size: 0.85rem;
    }
    
    .calendario-wrapper {
        padding: 0.4rem;
    }
    
    .dia-card {
        padding: 0.4rem;
    }
    
    .clase-item,
    .clase-item-2 {
        padding: 0.3rem 0.4rem;
    }
    
    .chip {
        font-size: 0.45rem;
        padding: 0.15rem 0.4rem;
    }
    
    .chip i {
        font-size: 0.5rem;
    }
}

/* ============================================ */
/* SOPORTE PARA NOTCH Y SAFE AREA */
/* ============================================ */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0.4rem, env(safe-area-inset-left));
        padding-right: max(0.4rem, env(safe-area-inset-right));
        padding-top: max(0.4rem, env(safe-area-inset-top));
        padding-bottom: max(0.4rem, env(safe-area-inset-bottom));
    }

    .logo-top-left {
        top: max(0.3rem, env(safe-area-inset-top));
        left: max(0.5rem, env(safe-area-inset-left)) !important;
    }
}

/* ============================================ */
/* REDUCCIÓN DE ANIMACIONES POR PREFERENCIA */
/* ============================================ */
@media (prefers-reduced-motion: reduce) {
    .dia-card:hover,
    .chip:hover,
    .logo-header:hover,
    .profesor-foto:hover {
        transform: none !important;
        transition: none !important;
    }
}

/* ============================================ */
/* MEJORAS DE ACCESIBILIDAD - FOCUS VISIBLE */
/* ============================================ */
a:focus-visible,
.chip:focus-visible {
    outline: 2px solid #FFEAA7;
    outline-offset: 2px;
}

.dia-card:focus-visible {
    outline: 2px solid #FFEAA7;
    outline-offset: 2px;
}

/* ============================================ */
/* ORIENTACIÓN PAISAJE EN MÓVILES */
/* ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .contenedor-principal {
        padding: 0.4rem;
    }
    
    .encabezado {
        margin-bottom: 0.5rem;
        padding-top: 0.2rem;
    }
    
    .icono-verano {
        font-size: 1.2rem;
        margin-bottom: 0.2rem;
    }
    
    .titulo-principal {
        font-size: 1.2rem;
    }
    
    .subtitulo {
        font-size: 0.6rem;
        margin-top: 0.2rem;
    }
    
    .separador {
        width: 50px;
        height: 2px;
        margin: 0.4rem auto 0;
    }
    
    .profesores-container {
        gap: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .profesor-foto {
        width: 40px;
        height: 40px;
        padding: 2px;
    }
    
    .profesor-label {
        font-size: 0.5rem;
    }
    
    .calendario-wrapper {
        padding: 0.4rem;
        margin-bottom: 0.5rem;
    }
    
    .calendario-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 0.4rem;
    }
    
    .dia-card {
        padding: 0.4rem;
    }
    
    .dia-numero-cal {
        font-size: 1.3rem;
    }
    
    .dia-mes-cal {
        font-size: 0.5rem;
    }
    
    .clase-item,
    .clase-item-2 {
        padding: 0.2rem 0.3rem;
        gap: 0.2rem;
    }
    
    .clase-nivel-badge {
        font-size: 0.4rem;
        padding: 0.1rem 0.5rem;
    }
    
    .clase-nombre-cal {
        font-size: 0.65rem;
    }
    
    .clase-horario-cal {
        font-size: 0.55rem;
    }
    
    .clase-profesor-cal {
        font-size: 0.5rem;
    }
    
    .logo-header {
        width: 55px;
    }
    
    .footer-info {
        gap: 0.3rem;
        margin-top: 0.4rem;
    }
    
    .chip {
        padding: 0.15rem 0.4rem;
        font-size: 0.4rem;
    }
    
    .chip i {
        font-size: 0.45rem;
    }
}

/* ============================================ */
/* SOPORTE PARA PANTALLAS MUY GRANDES */
/* ============================================ */
@media (min-width: 1600px) {
    .calendario-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .logo-header {
        width: 160px;
    }
    
    .titulo-principal {
        font-size: 3.5rem;
    }
    
    .profesor-foto {
        width: 120px;
        height: 120px;
    }
    
    .dia-numero-cal {
        font-size: 3.5rem;
    }
}