@import url("styles/zeiba-design-system.css");

:root{
    --header-height: 81px;
    --panel-inner-pad: 18px;
    --font-sans: var(--zw-font-body);
    --color-page-bg: var(--zw-sand);
    --color-surface: #ffffff;
    --color-surface-alt: var(--zw-soft-surface);
    --color-surface-soft: var(--zw-sand-light);
    --color-surface-dark: var(--zw-forest);
    --color-header-bg: #ffffff;
    --color-header-border: var(--zw-forest-10);
    --color-text-strong: var(--zw-forest);
    --color-text-body: var(--zw-forest-75);
    --color-text-muted: rgba(24, 48, 40, 0.68);
    --color-text-inverse: var(--zw-sand);
    --color-accent: var(--zw-clay);
    --color-accent-strong: var(--zw-clay);
    --color-accent-soft: rgba(191, 123, 82, 0.14);
    --color-border-soft: var(--zw-forest-10);
    --color-border-strong: var(--zw-forest-20);
    --shadow-soft: var(--zw-shadow-soft);
    --shadow-card: var(--zw-shadow-soft);
    --shadow-glass: var(--zw-shadow-hero);
    --radius-lg: var(--zw-radius-panel);
    --radius-md: 1rem;
    --transition-base: var(--zw-transition);
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--zw-font-body);
}

html{
    scroll-behavior: smooth;
}

body{
    background:
        radial-gradient(circle at top, rgba(223, 232, 227, 0.70), transparent 30%),
        linear-gradient(180deg, var(--zw-sand) 0%, var(--zw-sand-light) 100%);
    color: var(--zw-forest);
    padding-top: var(--header-height);
}

.inline-highlight{
    display: inline-flex;
    align-items: center;
    margin-left: 0.2em;
}

.inline-highlight--strong{
    padding: 0.14em 0.55em;
    border-radius: var(--zw-radius-control);
    background: var(--zw-forest);
    color: var(--zw-sand);
    font-weight: 700;
    line-height: 1.05;
}

/*MENU*/

.contenedor-header{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    padding: 0 20px;
    background: #ffffff;
    border-bottom: 1px solid var(--zw-forest-10);
}

.contenedor-header header{
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    color: var(--zw-forest);
}

.contenedor-header header h1{
    margin: 0;
}

.brand-title{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--zw-forest);
    font-family: var(--zw-font-body);
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

.brand-logo{
    width: 30px;
    height: 30px;
    display: block;
}

.txtLetraColor{
    color: var(--zw-clay);
}

.contenedor-header header nav{
    display: flex;
    align-items: center;
    gap: 6px;
}

.contenedor-header header nav a{
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contenedor-header header nav a.zw-nav-item{
    color: var(--zw-forest-80);
}

.contenedor-header header nav a.zw-nav-item:hover{
    color: var(--zw-forest);
}

.contenedor-header header nav a.zw-nav-item.is-active{
    background: var(--zw-forest);
    color: #ffffff;
}

.nav-login-btn{
    margin-left: auto;
    color: #ffffff !important;
}

.nav-login-btn:hover{
    color: #ffffff !important;
}

.nav-responsive{
    display: none;
}

.mobile-quick-tab{
    display: none;
}

/*SECCION INICIO*/

.inicio{
    height: calc(100vh - var(--header-height));
    margin-top: 0;
    background:linear-gradient(rgba(0, 1, 3, 0.5), rgba(0,0,0,.7)),url(img/inizio.png);
    /*background-image: url(fondo.jpg);*/
    background-size: cover;
    background-position: top center;
    color: #fff;
    position: relative;
}

.inicio .contenido-seccion{
    max-width: 1100px;
    margin: auto;
}
.inicio .info{
    width: fit-content;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.inicio .info h2{
    font-family: var(--zw-font-display);
    font-size: 4.5rem;
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: 0.015em;
}

.inicio .info p{
    margin: 20px 0;
    color: rgba(249, 245, 239, 0.82);
    font-size: 16px;
    text-transform: uppercase;
}

.hero-login-note{
    color: rgba(249, 245, 239, 0.88) !important;
    text-transform: none !important;
    margin: 0 0 14px 0 !important;
}

.hero-subtitle-mobile{
    display: none;
}

.hero-login-btn{
    display: inline-flex;
    width: fit-content;
    text-decoration: none;
}

.hero-login-btn:hover{
    background: #ad6d48;
}

.hero-glass-panel{
    min-width: min(680px, 90vw);
    padding: clamp(1.6rem, 3vw, 2.5rem);
    text-align: center;
    background: rgba(8, 18, 15, 0.56);
    border: 1px solid var(--zw-white-15);
    border-radius: var(--zw-radius-strong);
    box-shadow: var(--zw-shadow-hero);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.hero-glass-panel h2,
.hero-glass-panel p,
.hero-glass-panel a{
    position: relative;
    z-index: 1;
}

.glass-cta-box{
    margin: 18px auto 0;
    width: min(520px, 100%);
    padding: 18px;
    background: var(--zw-white-10);
    border: 1px solid var(--zw-white-15);
    border-radius: 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.glass-cta-box--wide{
    width: min(760px, 90vw);
}

/* CTA centrata: la regola è scoped al box e non altera il pulsante Acceso dell'header. */
.glass-cta-box .hero-login-btn{
    align-self: center;
    margin-left: auto;
    margin-right: auto;
}

.inicio .info .btn-mas{
    width: 50px;
    margin: auto;
    height: 50px;
    border: 2px solid var(--zw-clay);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--zw-clay);
    margin-top: 50px;
    text-decoration: none;
}

.opciones{
    position: absolute;
    display: flex;
    justify-content: space-between;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);

}

.opciones .opcion{
    border-top: 2px solid var(--zw-clay);
    padding: 7px;
    color: var(--zw-forest-75);
    margin: 0 20px;
}




/* Pagina NOSOTROS */

.nosotros{
    max-width: 1100px;
    margin: auto;
    min-height: 100vh;
    background-color: transparent;
    padding: 100px 20px;
}
.nosotros .fila{
    display: flex;
    align-items: center;
}
.nosotros .fila .col{
    width: 50%;
}
.nosotros .fila .col img{
    width: 80%;
    display: block;
    margin: auto;
    margin-bottom: 50px;
}
.nosotros .fila .col .contenedor-titulo{
    display: flex;
    align-items:center
}
.nosotros .fila .col .contenedor-titulo .numero{
    color: var(--zw-clay);
    font-weight: bold;
    display: block;
    font-size: 5rem;
}
.nosotros .fila .col .contenedor-titulo .info{
    margin-left: 30px;
}
.nosotros .fila .col .contenedor-titulo .info .frase{
    color: var(--color-accent);
}
.nosotros .fila .col .contenedor-titulo .info h2{
    font-size: 2rem;
}
.nosotros .fila .col p{
   margin-bottom: 10px;
   line-height: 28px;
}
.nosotros .fila .col .p-especial{
    font-weight: bold;
    color: var(--color-text-strong);
}
.nosotros hr{
    margin-bottom: 30px;
}
.nosotros .fila-nosotros{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nosotros .fila-nosotros .frase{
    font-size: 18px;
    font-weight: 600;
}
.nosotros .fila-nosotros h2{
    font-size: 25px;
}
.nosotros .fila-nosotros button{
    background: var(--zw-clay);
    border: 1px solid var(--zw-clay);
    color: #ffffff;
    padding: 15px 35px;
    font-size: 14px;
    letter-spacing: 3px;
    font-weight: bold;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: var(--zw-shadow-soft);
}

.inicio-nosotros{
    background: linear-gradient(rgba(0, 1, 3, 0.5), rgba(0,0,0,.7)), url(img/nosotros.png);
    background-size: cover;
    background-position: top center;
}

.inicio-clases{
    background: linear-gradient(rgba(0, 1, 3, 0.5), rgba(0,0,0,.7)), url(img/clases.jpg);
    background-size: cover;
    background-position: center;
}

.inicio-clases .info{
    text-align: center;
}

.inicio-clases .lista-clases{
    margin-top: 24px;
    list-style: none;
    color: rgba(249, 245, 239, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.inicio-clases .lista-clases li{
    margin-bottom: 14px;
    font-size: 1.1rem;
}

.inicio-clases .lista-clases a{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(249, 245, 239, 0.9);
    text-decoration: none;
    border-bottom: 1px solid rgba(249, 245, 239, 0.24);
    padding-bottom: 2px;
}

.inicio-clases .lista-clases a:hover{
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.88);
}

.nosotros-texto{
    padding: 56px 20px;
}

.nosotros-texto-wrap{
    max-width: 1100px;
    margin: auto;
    padding: 26px;
    background: var(--zw-white-85);
    border: 1px solid var(--zw-white-50);
    border-radius: var(--zw-radius-section);
    box-shadow: var(--zw-shadow-soft);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nosotros-texto-wrap p{
    color: var(--color-text-body);
    line-height: 1.85;
    margin-bottom: 16px;
}

.nosotros-texto-wrap p:last-child{
    margin-bottom: 0;
}

.clases-detalle{
    max-width: 1100px;
    margin: 0 auto;
    padding: 54px 20px;
    display: grid;
    gap: 24px;
}

service-card{
    display: block;
}

.clase-item{
    overflow: hidden;
    display: grid;
    grid-template-columns: 42% 58%;
    scroll-margin-top: calc(var(--header-height) + 22px);
}

.clase-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 320px;
    background: linear-gradient(180deg, var(--zw-sand) 0%, var(--zw-soft-surface) 100%);
    opacity: 0;
    transform: translateX(-36px);
    animation: claseImgIn 700ms ease-out forwards;
}

service-card:nth-of-type(2) .clase-item img{
    animation-delay: 140ms;
}

service-card:nth-of-type(3) .clase-item img{
    animation-delay: 280ms;
}

service-card:nth-of-type(4) .clase-item img{
    animation-delay: 420ms;
}

.clase-item-texto{
    padding: 24px;
}

.clase-item-texto h3{
    color: var(--color-text-strong);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.clase-item-texto p{
    color: var(--color-text-body);
    line-height: 1.8;
    margin-bottom: 14px;
}

.clase-item-texto p:last-child{
    margin-bottom: 0;
}

.clase-item--reverse{
    grid-template-columns: 58% 42%;
}

.clase-item--reverse img{
    order: 2;
}

.clase-item--reverse .clase-item-texto{
    order: 1;
}

.inicio-tarifa{
    background: linear-gradient(rgba(0, 1, 3, 0.5), rgba(0,0,0,.7)), url(img/tarifa.jpg);
    background-size: cover;
    background-position: center;
}

pricing-switcher{
    display: block;
}

.tarifa-switcher{
    width: min(760px, 90vw);
    margin-top: 24px;
    padding: 18px;
}

.tarifa-switcher-tabs{
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.tarifa-switcher-tab{
    appearance: none;
    border: 1px solid var(--zw-white-15);
    background: rgba(255, 255, 255, 0.06);
    color: var(--zw-mist-90);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 0.94rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.tarifa-switcher-tab:hover{
    background: rgba(255,255,255,0.14);
}

.tarifa-switcher-tab.is-active{
    background: var(--zw-clay);
    color: var(--zw-sand);
    border-color: transparent;
}

.tarifa-switcher-panels{
    width: 100%;
}

.tarifa-switcher-panel{
    display: none;
}

.tarifa-switcher-panel.is-active{
    display: block;
}

.tabla-tarifa{
    width: min(760px, 90vw);
    margin-top: 24px;
    padding: 14px 18px;
}

.tabla-tarifa--embedded{
    width: 100%;
    margin-top: 0;
    padding: 0;
}

.fila-tarifa{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--zw-white-15);
    color: var(--zw-mist-90);
    text-transform: uppercase;
}

.fila-tarifa:last-child{
    border-bottom: none;
}

.fila-tarifa strong{
    color: var(--zw-sand);
    white-space: nowrap;
}

.fila-tarifa--featured span,
.fila-tarifa--featured strong{
    font-weight: 700;
}

.inicio-contacto{
    background: linear-gradient(rgba(0, 1, 3, 0.5), rgba(0,0,0,.75)), url(img/contacto.jpg);
    background-size: cover;
    background-position: center;
}

.contacto-panel{
    width: min(860px, 92vw);
    margin-top: 44px;
    padding: 16px;
    background: rgba(8, 18, 15, 0.62);
    border: 1px solid var(--zw-white-15);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-glass);
}

.contacto-panel iframe{
    width: 100%;
    height: 320px;
    border: 0;
    border-radius: 10px;
}

.contacto-botones{
    display: flex;
    gap: 14px;
    margin-top: 14px;
    justify-content: center;
}

.btn-contacto{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--color-text-inverse);
    border: 1px solid var(--zw-white-20);
    border-radius: 999px;
    padding: 10px 16px;
    text-transform: uppercase;
    font-size: 0.92rem;
    background: rgba(255, 255, 255, 0.08);
}

.btn-contacto:hover{
    background-color: rgba(255, 255, 255, 0.14);
}

.inicio-login{
    background: linear-gradient(rgba(0, 1, 3, 0.58), rgba(0,0,0,.78)), url(img/login.jpg);
    background-size: cover;
    background-position: center;
}

.inicio-signin{
    background: linear-gradient(rgba(0, 1, 3, 0.58), rgba(0,0,0,.78)), url(img/signin.jpg);
    background-size: cover;
    background-position: center;
}

.auth-wrap{
    width: min(920px, 94vw);
    text-align: center;
}

.auth-grid{
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 16px;
}

.auth-card{
    background: rgba(8, 18, 15, 0.68);
    border: 1px solid var(--zw-white-15);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    box-shadow: var(--shadow-glass);
}

.auth-card h3{
    color: var(--zw-sand);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.auth-card label{
    color: var(--zw-mist-85);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.auth-card input{
    width: 100%;
    border: 1px solid var(--zw-mist-75);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--zw-sand);
    padding: 10px 12px;
}

.auth-card input::placeholder{
    color: var(--zw-mist-75);
}

.auth-card button{
    margin-top: 8px;
    border: 1px solid var(--zw-clay);
    border-radius: var(--zw-radius-control);
    background: var(--zw-clay);
    color: #ffffff;
    padding: 11px 14px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--zw-shadow-soft);
}

.auth-card button:hover{
    background: #ad6d48;
}

.auth-single{
    width: min(460px, 92vw);
    margin: 24px auto 0;
}

.auth-help{
    margin: 4px 0 0;
    color: var(--zw-mist-85);
    text-transform: none;
    font-size: 0.95rem;
}

.auth-link{
    color: var(--zw-clay);
    text-decoration: underline;
    text-transform: none;
    margin-bottom: 8px;
}


.auth-card{
    border-radius: var(--radius-lg);
}

.site-footer{
    background: var(--zw-soft-surface);
    border-top: 1px solid var(--zw-forest-10);
    padding: 32px 20px;
}

.footer-contenido{
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 20px;
}

.footer-col h3,
.footer-col h4{
    color: var(--color-text-strong);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.footer-col p{
    color: var(--color-text-body);
}

.footer-col a{
    display: block;
    text-decoration: none;
    color: var(--color-text-body);
    margin-bottom: 7px;
}

.footer-col a:hover{
    color: var(--color-accent-strong);
}

@media (max-width: 900px){
    body{
        padding-bottom: 78px;
    }

    .contenedor-header{
        padding: 0 14px;
    }

    .contenedor-header header{
        padding: 14px 0;
        gap: 10px;
        justify-content: space-between;
    }

    .contenedor-header header h1{
        font-size: 1.15rem;
    }

    .contenedor-header header nav{
        display: none;
        gap: 6px;
        flex-direction: column;
        position: absolute;
        left: 14px;
        right: 14px;
        top: calc(var(--header-height) - 4px);
        background: #ffffff;
        border: 1px solid var(--zw-forest-10);
        border-radius: var(--zw-radius-panel);
        padding: 10px;
        transform-origin: top;
        z-index: 130;
        box-shadow: var(--shadow-soft);
    }

    .contenedor-header header nav a{
        font-size: 0.9rem;
        padding: 10px 12px;
        background: rgba(24, 48, 40, 0.06);
        border-radius: 12px;
    }

    .contenedor-header header nav .nav-login-btn{
        margin-left: 0;
        text-align: center;
        background: var(--zw-clay);
        color: #ffffff !important;
        border-radius: var(--zw-radius-control);
    }

    #nav.is-open{
        display: flex;
    }

    #nav.is-opening{
        animation: menuOpen 220ms ease-out forwards;
    }

    #nav.is-closing{
        animation: menuClose 220ms ease-in forwards;
    }

    .nav-responsive{
        display: inline-flex;
        margin-left: auto;
        padding: 8px 14px;
        font-size: 0.86rem;
        cursor: pointer;
    }

    .inicio{
        height: auto;
        min-height: 0;
        background-size: 100% auto;
        background-repeat: no-repeat;
        background-position: top center;
        background-color: transparent;
        padding-top: clamp(180px, 58vw, 420px);
    }

    .inicio .contenido-seccion{
        min-height: 0;
        display: block;
        padding: 0 14px 24px;
    }

    .inicio .info{
        position: static;
        transform: none;
        width: min(92vw, 700px);
        margin: -54px auto 0;
    }

    .inicio .info h2{
        font-size: 2.5rem;
        line-height: 1.1;
        text-shadow: 0 3px 12px rgba(0,0,0,0.5);
    }

    .inicio .info p{
        margin: 14px 0;
        font-size: 0.92rem;
    }

    .hero-subtitle-desktop{
        display: block;
    }

    .hero-subtitle-mobile{
        display: none;
    }

    .glass-cta-box{
        width: 100%;
        padding: 14px;
    }

    .auth-grid{
        grid-template-columns: 1fr;
    }

    .fila-tarifa{
        flex-direction: column;
        align-items: flex-start;
    }

    .contacto-panel iframe{
        height: 260px;
    }

    .contacto-botones{
        flex-direction: column;
    }

    .clase-item{
        grid-template-columns: 1fr;
    }

    .clase-item img{
        min-height: 240px;
    }

    .footer-contenido{
        grid-template-columns: 1fr 1fr;
    }

    .mobile-quick-tab{
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 120;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        background: #ffffff;
        border-top: 1px solid var(--zw-forest-10);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .mobile-quick-tab a{
        text-decoration: none;
        color: var(--color-text-strong);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 9px 4px 10px;
        font-size: 0.78rem;
        text-transform: uppercase;
    }

    .mobile-quick-tab a i{
        font-size: 1.1rem;
    }
}

@media (max-width: 560px){
    .contenedor-header header{
        flex-direction: row;
        align-items: center;
    }

    .contenedor-header header nav{
        width: 100%;
        left: 10px;
        right: 10px;
    }

    .brand-logo{
        width: 24px;
        height: 24px;
    }

    .inicio .info h2{
        font-size: 2rem;
    }

    .inicio{
        padding-top: clamp(165px, 62vw, 320px);
    }

    .inicio .info{
        margin-top: -42px;
    }

    .lista-clases li,
    .fila-tarifa span,
    .fila-tarifa strong{
        font-size: 0.95rem;
    }

    .contacto-panel{
        padding: 12px;
    }

    .contacto-panel iframe{
        height: 220px;
    }

    .auth-card{
        padding: 16px;
    }

    .clases-detalle,
    .nosotros-texto{
        padding: 36px 14px;
    }

    .clase-item-texto{
        padding: 16px;
    }

    .footer-contenido{
        grid-template-columns: 1fr;
    }
}

@keyframes menuOpen{
    from{
        opacity: 0;
        transform: translateY(-8px) scaleY(0.96);
    }
    to{
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

@keyframes menuClose{
    from{
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
    to{
        opacity: 0;
        transform: translateY(-8px) scaleY(0.96);
    }
}

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

.auth-message {
    min-height: 20px;
    margin: 8px 0;
    font-size: 0.95rem;
    text-transform: none !important;
}

.auth-message.error {
    color: #ffd1d1 !important;
}

.auth-message.success {
    color: #d6ffd5 !important;
}

.auth-card select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #d9d1c6;
}

.nav-logout-btn {
    margin-left: 12px;
    padding: 10px 16px;
}

.panel-wrap {
    width: min(680px, 92vw);
}

.panel-card {
    margin-top: 14px;
    background: rgba(8, 18, 15, 0.64);
    border: 1px solid var(--zw-white-15);
    border-radius: 14px;
    padding: var(--panel-inner-pad);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.panel-card p {
    color: #f7f0ea !important;
    text-transform: none !important;
}

.panel-card button {
    margin-top: 10px;
    border: 1px solid var(--zw-clay);
    background: var(--zw-clay);
    color: #ffffff;
    border-radius: var(--zw-radius-control);
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
}

.panel-full {
    width: min(980px, 94vw);
}

.panel-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.panel-actions button {
    border: 1px solid rgba(111, 84, 64, 0.48);
    background: rgba(255, 250, 244, 0.78);
    color: var(--color-text-strong);
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 700;
}

.panel-actions button.activo-vista {
    background: var(--zw-forest);
    color: #ffffff;
    border-color: var(--zw-forest);
}

.admin-vista {
    display: none;
    margin-top: 8px;
    background: rgba(8, 18, 15, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 8px;
}

.admin-vista.vista-activa {
    display: block;
}

.admin-cards {
    display: none;
}

.admin-card-item {
    background: rgba(8, 18, 15, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
}

.admin-card-item p {
    margin: 4px 0;
    color: #fff6ef !important;
    text-transform: none !important;
}

.panel-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.tab-btn {
    border: 1px solid rgba(111, 84, 64, 0.48);
    background: rgba(255, 250, 244, 0.78);
    color: var(--color-text-strong);
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 700;
}

.tab-btn.activo-tab {
    background: var(--zw-forest);
    color: #ffffff;
    border-color: var(--zw-forest);
}

.vista-instructor {
    display: none;
}

.vista-instructor.vista-activa {
    display: block;
}

.panel-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.panel-form-grid input,
.panel-form-grid select,
.panel-form-grid button {
    padding: 9px;
    border-radius: 8px;
    border: 1px solid #d9d1c6;
}

.panel-lista {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.item-panel {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 10px;
}

.item-panel p {
    margin: 4px 0;
    color: #f7f0ea !important;
    text-transform: none !important;
}

.tabla-wrap {
    overflow-x: auto;
}

.tabla-panel {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.tabla-panel th,
.tabla-panel td {
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px;
    text-align: left;
    color: #f7f0ea;
}

.tabla-panel button {
    border: 1px solid var(--zw-clay);
    background: var(--zw-clay);
    color: #ffffff;
    border-radius: var(--zw-radius-control);
    padding: 6px 10px;
    cursor: pointer;
}

/* Miglioria leggibilità pannelli protetti */
[data-protected-panel] {
    min-height: calc(100vh - var(--header-height));
    height: auto;
    padding: 36px 0;
}

[data-protected-panel]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 18, 15, 0.62);
    z-index: 0;
}

[data-protected-panel] .contenido-seccion,
[data-protected-panel] .info {
    position: relative;
    z-index: 1;
}

[data-protected-panel] .info {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 0 auto;
}

[data-protected-panel] h2 {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
    padding-left: var(--panel-inner-pad);
    margin-bottom: 10px;
}

.panel-card {
    background: rgba(16, 32, 26, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.panel-card p,
.tabla-panel th,
.tabla-panel td,
.item-panel p {
    color: #fff6ef !important;
}

.item-panel {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.24);
}

.tabla-panel {
    background: rgba(8, 18, 15, 0.46);
}

@media (max-width: 900px) {
    :root{
        --panel-inner-pad: 14px;
    }

    [data-protected-panel] {
        padding: 24px 0 100px 0;
    }

    .panel-full {
        width: min(98vw, 98vw);
    }

    .panel-card {
        padding: 14px;
    }

    [data-protected-panel] h2 {
        font-size: 2rem !important;
    }
}

@media (max-width: 760px) {
    [data-protected-panel] {
        padding: 18px 0 96px 0;
    }

    [data-protected-panel] .contenido-seccion {
        width: 100%;
        padding: 0 10px;
    }

    .panel-wrap,
    .panel-full {
        width: 100% !important;
        max-width: 100%;
    }

    .panel-card {
        margin-top: 10px;
        padding: 12px;
        border-radius: 12px;
    }

    [data-protected-panel] h2 {
        padding-left: 12px;
    }

    .panel-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .panel-actions button,
    .panel-card button {
        width: 100%;
        margin-top: 0;
        padding: 10px 12px;
    }

    .panel-form-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .panel-form-grid input,
    .panel-form-grid select,
    .panel-form-grid button {
        width: 100%;
        min-height: 42px;
    }

    .panel-lista {
        gap: 8px;
    }

    .item-panel {
        padding: 10px;
    }

    .tabla-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tabla-panel {
        min-width: 620px;
        font-size: 0.92rem;
    }

    .tabla-panel th,
    .tabla-panel td {
        padding: 7px;
        vertical-align: top;
    }

    .tabla-panel td:last-child button {
        white-space: normal;
        width: 100%;
    }
}

@media (max-width: 460px) {
    [data-protected-panel] h2 {
        font-size: 1.55rem !important;
        letter-spacing: 1px;
    }

    #panel-user {
        font-size: 0.92rem;
    }

    .panel-card p,
    .item-panel p,
    .item-panel li {
        font-size: 0.92rem;
    }
}

@media (max-width: 560px) {
    .tabla-wrap {
        display: none;
    }

    .admin-cards {
        display: block;
    }

    .admin-card-item .panel-actions {
        grid-template-columns: 1fr;
    }

    .panel-tabs {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tab-btn {
        width: 100%;
    }

    .clases-tabs-nav {
        display: grid;
        grid-template-columns: 1fr;
    }

    .clase-tab-btn {
        width: 100%;
        text-align: left;
    }
}

.item-panel ul {
    margin: 6px 0 10px 18px;
}

.item-panel li {
    margin: 3px 0;
    color: #fff6ef;
}

.inscritos-desplegable {
    display: none;
    margin-top: 8px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.inscritos-desplegable.abierto {
    display: block;
}

.clases-tabs-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.clase-tab-btn {
    border: 1px solid var(--zw-forest-20);
    background: rgba(255, 255, 255, 0.85);
    color: var(--zw-forest);
    border-radius: var(--zw-radius-control);
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 700;
}

.clase-tab-btn.activo-tab-clase {
    background: var(--zw-forest);
    color: #ffffff;
    border-color: var(--zw-forest);
}

.clases-tab-contenido {
    margin-top: 6px;
}


@media screen and (max-width: 700px){
    .tarifa-switcher{
        padding: 14px;
    }

    .tarifa-switcher-tabs{
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .tarifa-switcher-tab{
        width: 100%;
        text-align: center;
    }
}
