/* ==== BOTONES ==== */
.bt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 26px;
    border: 0;
    border-radius: 0;
    font-family: var(--fn2);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    color: var(--hl1);
    background: var(--hl4);
    box-shadow: inset 0 -4px 0 var(--hl6), var(--sb1);
    cursor: pointer;
}

.bt:hover {
    color: var(--hl8);
    background: var(--hl6);
}

.bt-lt {
    color: var(--hl4);
    background: var(--hl1);
    box-shadow: inset 0 -4px 0 var(--hl7), var(--sb2);
}

.bt-lt:hover {
    color: var(--hl4);
    background: var(--hl8);
}

.bt-ln {
    color: var(--hl4);
    background: transparent;
    box-shadow: inset 0 0 0 2px var(--hl4);
}

.bt-ln:hover {
    color: var(--hl1);
    background: var(--hl4);
}

/* ==== DETALLES ==== */
.eb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hl6);
}

.eb::before {
    content: "";
    width: 34px;
    height: 3px;
    background: currentColor;
}

.hro .eb,
.sc-pbl .eb,
.ct .eb {
    color: var(--hl7);
}

.mk {
    padding: 0 0.06em;
    background-image: linear-gradient(transparent 64%, var(--mk1) 64%, var(--mk1) 94%, transparent 94%);
}

.hro .mk,
.ct .mk {
    background-image: linear-gradient(transparent 62%, var(--mk2) 62%, var(--mk2) 92%, transparent 92%);
}

.chp {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 6px 16px;
    border: 1px solid hsla(220, 14%, 97%, 0.34);
    border-radius: var(--rd2);
    font-size: 0.94rem;
    color: var(--hl1);
    background: hsla(220, 14%, 97%, 0.08);
}

.pl {
    margin: 0;
    padding: 12px 12px 14px;
    background: var(--hl8);
    box-shadow: var(--sb2);
}

.pl figcaption {
    padding-top: 12px;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--hl5);
}

.tl-l {
    transform: rotate(-1.6deg);
}

.tl-r {
    transform: rotate(1.3deg);
}

/* ==== ESCALERA DE PRENDAS ==== */
.stg {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 44px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stg li:nth-child(3n+2) {
    margin-top: 64px;
}

.stg li:nth-child(3n) {
    margin-top: 128px;
}

.stg li:nth-child(n+4) {
    padding-top: 40px;
}

.stg-a {
    display: block;
    padding-top: 18px;
    border-top: 2px solid var(--hl4);
    text-decoration: none;
    color: var(--hl4);
}

.stg-a .pl {
    margin-bottom: 18px;
}

.stg-a h3 {
    margin-bottom: 6px;
    font-size: 1.32rem;
}

.stg-a:hover h3 {
    color: var(--hl6);
}

.stg-m {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 16px;
    font-size: 0.96rem;
    color: var(--hl5);
}

.stg-m b {
    font-size: 1.12rem;
    color: var(--hl4);
}

.stg-nx {
    display: flex;
    justify-content: flex-end;
    margin-top: 56px;
}

/* ==== LATERAL FIJO ==== */
.sbr-box {
    padding: 30px 30px 26px;
    border-radius: var(--rd1);
    background: var(--hl8);
    box-shadow: var(--sb1);
}

.sbr-box h2 {
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
}

.fx {
    margin: 22px 0 0;
}

.fx div {
    padding: 13px 0;
    border-top: 1px solid var(--hl3);
}

.fx dt {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hl5);
}

.fx dd {
    margin: 2px 0 0;
    font-family: var(--fn1);
    font-size: 1.32rem;
    font-weight: 800;
    line-height: 1.2;
}

.stp {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: paso;
}

.stp li {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 4px 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--hl3);
    counter-increment: paso;
}

.stp li::before {
    content: counter(paso, decimal-leading-zero);
    grid-row: span 2;
    font-family: var(--fn1);
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 0.9;
    color: var(--hl3);
}

.stp h2,
.stp h3 {
    margin: 0;
}

.stp h2 {
    font-size: 1.5rem;
}

.stp p {
    margin: 0;
}

/* ==== CARTELERA ==== */
.pbl {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 2px solid var(--hl1);
}

.pbl li {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr) minmax(0, 0.6fr) minmax(0, 1fr);
    align-items: baseline;
    gap: 6px 28px;
    padding: 22px 0;
    border-bottom: 1px solid hsla(220, 13%, 85%, 0.24);
}

.pbl-n {
    font-family: var(--fn1);
    font-size: clamp(1.3rem, 2.2vw, 1.85rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.015em;
}

.pbl-c {
    font-size: 0.98rem;
    color: var(--hl3);
}

.pbl-c i {
    display: block;
    font-size: 0.74rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hl7);
}

/* ==== EQUIPO Y CITA ==== */
.eq-ph {
    max-width: 480px;
}

.cita {
    position: relative;
    margin: 30px 0 0;
    padding: 30px 32px 26px 74px;
    border-radius: var(--rd1);
    background: var(--hl8);
    box-shadow: var(--sb1);
}

.cita::before {
    content: "\00AB";
    position: absolute;
    top: 14px;
    left: 22px;
    font-family: var(--fn1);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--hl6);
}

.cita p {
    margin-bottom: 12px;
    font-family: var(--fn1);
    font-size: 1.22rem;
    font-weight: 500;
    line-height: 1.45;
}

.cita footer {
    font-size: 0.92rem;
    color: var(--hl5);
}

/* ==== PREGUNTAS ==== */
.fq {
    padding: 8px 28px;
    border-radius: var(--rd1);
    background: var(--hl8);
    box-shadow: var(--sb1);
}

.fq details {
    border-bottom: 1px solid var(--hl3);
}

.fq details:last-child {
    border-bottom: 0;
}

.fq summary {
    display: flex;
    align-items: center;
    min-height: 60px;
    padding: 14px 32px 14px 0;
    font-weight: 700;
    cursor: pointer;
}

.fq details p {
    margin: 0;
    padding: 0 0 18px;
}

/* ==== FRANJA FINAL ==== */
.ct {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) auto;
    align-items: center;
    gap: 24px 48px;
    padding: 52px 56px;
    border-radius: var(--rd3);
    color: var(--hl1);
    background-color: var(--hl4);
    background-image: radial-gradient(420px 260px at 92% 10%, hsla(204, 70%, 62%, 0.22), transparent 70%), linear-gradient(120deg, var(--hl4) 0%, var(--hl9) 100%);
    box-shadow: var(--sb2);
}

.ct h2 {
    margin-bottom: 10px;
}

.ct p {
    margin: 0;
    color: var(--hl3);
}

.ct-ac {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

/* ==== TARJETAS Y NOTAS ==== */
.cd {
    padding: 26px 26px 22px;
    border-radius: var(--rd1);
    background: var(--hl8);
    box-shadow: var(--sb1);
}

.cd h2,
.cd h3 {
    font-size: 1.3rem;
}

.cd ul {
    margin: 0;
    padding-left: 1.1em;
}

.cd p:last-child,
.cd li:last-child {
    margin-bottom: 0;
}

.nt {
    margin: 0 0 1em;
    padding: 18px 22px;
    border-left: 4px solid var(--hl6);
    border-radius: 0 var(--rd1) var(--rd1) 0;
    background: var(--hl2);
}

/* ==== CATÁLOGO: FICHAS ==== */
.flt {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 40px;
}

.js-loaded .flt {
    display: flex;
}

.flt button {
    min-height: 44px;
    padding: 8px 18px;
    border: 1px solid var(--hl3);
    border-radius: var(--rd2);
    font-family: var(--fn2);
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--hl4);
    background: var(--hl8);
    cursor: pointer;
}

.flt button.nav-active {
    border-color: var(--hl4);
    color: var(--hl1);
    background: var(--hl4);
}

.ctl > li[hidden] {
    display: none;
}

.ctl-a {
    display: block;
    padding-top: 16px;
    border-top: 2px solid var(--hl4);
    text-decoration: none;
    color: var(--hl4);
}

.ctl-a figure {
    margin: 0 0 16px;
}

.ctl-a h2 {
    margin-bottom: 6px;
    font-size: 1.36rem;
}

.ctl-a:hover h2 {
    color: var(--hl6);
}

.ctl-d {
    margin: 10px 0 0;
    font-size: 0.95rem;
}

.ctl-d div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid var(--hl3);
}

.ctl-d dt {
    color: var(--hl5);
}

.ctl-d dd {
    margin: 0;
    text-align: right;
}

/* ==== FICHA ==== */
.pz-pr {
    margin: 0 0 4px;
    font-family: var(--fn1);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
}

.pz-iva {
    font-size: 0.95rem;
    color: var(--hl5);
}

.pz-box {
    margin: 22px 0;
    padding: 6px 24px;
    border-radius: var(--rd1);
    background: var(--hl8);
    box-shadow: var(--sb1);
}

.at {
    margin: 0;
}

.at div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--hl3);
}

.at div:last-child {
    border-bottom: 0;
}

.at dt {
    font-weight: 700;
    color: var(--hl5);
}

.at dd {
    margin: 0;
}

.pz-ac {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 22px;
    margin: 24px 0 8px;
}

.pz-tel {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    font-weight: 700;
    color: var(--hl4);
}

.ot {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ot a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 88px;
    padding: 16px 0;
    border-top: 2px solid var(--hl4);
    font-family: var(--fn1);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    color: var(--hl4);
}

.ot a span {
    font-family: var(--fn2);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--hl5);
}

.ot a:hover {
    color: var(--hl6);
}

/* ==== FORMULARIO ==== */
.fm-box {
    padding: 34px 34px 30px;
    border-radius: var(--rd1);
    background: var(--hl8);
    box-shadow: var(--sb2);
}

.fm-f {
    margin-bottom: 20px;
}

.fm-f label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.fm-f input,
.fm-f textarea {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--hl5);
    border-radius: 0;
    font-family: var(--fn2);
    font-size: 1rem;
    color: var(--hl4);
    background: var(--hl1);
}

.fm-f textarea {
    min-height: 160px;
    resize: vertical;
}

.fm-f input:focus,
.fm-f textarea:focus {
    border-color: var(--hl6);
    outline: 3px solid var(--mk1);
}

.fm-ck {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.96rem;
}

.fm-ck input {
    width: 22px;
    height: 22px;
    margin: 2px 0 0;
    accent-color: var(--hl6);
}

.fm-er {
    min-height: 1.2em;
    margin: 6px 0 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: hsl(0, 62%, 40%);
}

.fm-st {
    margin: 14px 0 0;
    font-weight: 600;
}

.fm-ft {
    margin: 16px 0 0;
    font-size: 0.92rem;
    color: var(--hl5);
}

/* ==== TABLAS Y LEGALES ==== */
.tbl {
    width: 100%;
    margin: 0 0 1.2em;
    border-collapse: collapse;
    background: var(--hl8);
    box-shadow: var(--sb1);
}

.tbl caption {
    padding: 0 0 10px;
    font-weight: 700;
    text-align: left;
}

.tbl th,
.tbl td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--hl3);
    text-align: left;
    vertical-align: top;
}

.tbl th {
    width: 34%;
    font-weight: 700;
    color: var(--hl5);
    background: var(--hl2);
}

.tbl-rq td {
    overflow-wrap: anywhere;
}

.toc {
    padding: 22px 22px 14px;
    border-radius: var(--rd1);
    background: var(--hl8);
    box-shadow: var(--sb1);
}

.toc p {
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hl5);
}

.toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.toc a {
    display: flex;
    align-items: center;
    min-height: 44px;
    border-top: 1px solid var(--hl3);
    text-decoration: none;
}

.lg-cards li {
    padding: 22px 22px 18px;
    border-radius: var(--rd1);
    background: var(--hl8);
    box-shadow: var(--sb1);
}

.lg-cards h2,
.lg-cards h3 {
    font-size: 1.15rem;
}

.lg-cards p {
    margin: 0;
}

.lg-ed {
    font-size: 0.95rem;
    color: var(--hl5);
}

/* ==== AVISO DE COOKIES ==== */
.consent-notice {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 250;
    width: min(372px, calc(100% - 48px));
    padding: 18px 20px 18px;
    border-radius: var(--rd1);
    font-size: 0.94rem;
    line-height: 1.45;
    color: var(--hl1);
    background: var(--hl4);
    box-shadow: var(--sb2);
}

.consent-notice[hidden] {
    display: none;
}

.consent-notice p {
    margin: 0 0 12px;
}

.consent-notice a {
    color: var(--hl7);
}

.cn-bts {
    display: flex;
    gap: 10px;
}

.cn-bts .bt {
    flex: 1 1 0;
    min-height: 44px;
    padding: 8px 14px;
}

.cn-no {
    background: transparent;
    box-shadow: inset 0 0 0 2px var(--hl3);
}

.cn-no:hover {
    color: var(--hl4);
    background: var(--hl3);
}

.cn-rs {
    display: none;
}

.js-loaded .cn-rs {
    display: inline-flex;
}

/* ==== ANIMACIÓN ==== */
.js-loaded .rv {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-loaded .rv.inview {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .js-loaded .rv {
        transform: none;
        transition: none;
    }
}

/* ==== ADAPTACIÓN ==== */
@media (max-width: 1099px) {
    .stg {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stg li:nth-child(3n+2),
    .stg li:nth-child(3n) {
        margin-top: 0;
    }

    .stg li:nth-child(even) {
        margin-top: 56px;
    }

    .stg li:nth-child(n+3) {
        padding-top: 32px;
    }
}

@media (max-width: 760px) {
    .stg,
    .ot {
        grid-template-columns: minmax(0, 1fr);
    }

    .stg li:nth-child(even) {
        margin-top: 0;
    }

    .stg li:nth-child(n+2) {
        padding-top: 36px;
    }

    .pbl li {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .pbl-n {
        grid-column: 1 / -1;
    }

    .ct {
        grid-template-columns: minmax(0, 1fr);
        padding: 36px 24px;
    }

    .stp li {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 4px 14px;
    }

    .stp li::before {
        font-size: 2.6rem;
    }

    .fm-box,
    .sbr-box {
        padding: 24px 20px;
    }

    .cita {
        padding: 64px 22px 22px;
    }

    .at div {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }
}

@media (max-width: 600px) {
    .consent-notice {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
    }
}
