/* Bascones Exterior — componentes: cabecera, portada, fichas, formulario, legal, pie y aviso */

/* ---------- cabecera ---------- */
.bx-head {
    position: sticky;
    top: 0;
    z-index: 999;

    color: var(--bx-viruta);

    background: var(--bx-yunque);
    border-bottom: 1px solid var(--bx-yunque-2);
}

.bx-head-bar {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--bx-head-h);
}

.bx-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;

    font-family: var(--bx-sans);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--bx-viruta);
}

.bx-brand:hover,
.bx-brand:focus-visible {
    color: var(--bx-cal);
}

.bx-brand-mark {
    flex: none;
    width: 34px;
    height: 34px;

    fill: currentColor;
}

.bx-mark-tile {
    fill: var(--bx-yunque-2);
}

.bx-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;

    list-style: none;
}

/* borde inferior transparente en todos: el subrayado activo no cambia la altura */
.bx-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 14px;

    font-family: var(--bx-sans);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--bx-viruta);

    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
}

.bx-nav a:hover,
.bx-nav a:focus-visible {
    color: var(--bx-cal);

    border-bottom-color: var(--bx-niebla);
}

.bx-nav a[aria-current="page"] {
    color: var(--bx-cal);

    border-bottom-color: var(--bx-cal);
}

.bx-nav .bx-nav-cta {
    margin-left: 10px;
    padding: 0 22px;

    color: var(--bx-cal);

    background: var(--bx-brote);
    border-radius: 14px;
}

.bx-nav .bx-nav-cta:hover,
.bx-nav .bx-nav-cta:focus-visible,
.bx-nav .bx-nav-cta[aria-current="page"] {
    color: var(--bx-cal);

    background: var(--bx-brote-hondo);
    border-bottom-color: transparent;
}

.bx-burger {
    display: none;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;

    color: var(--bx-viruta);

    background: transparent;
    border: 1px solid var(--bx-yunque-2);
    border-radius: 14px;
    cursor: pointer;
}

.bx-burger-lines,
.bx-burger-lines::before,
.bx-burger-lines::after {
    display: block;
    width: 22px;
    height: 2px;

    background: currentColor;
    border-radius: 2px;

    transition: transform 0.2s ease, background-color 0.2s ease;
}

.bx-burger-lines {
    position: relative;
}

.bx-burger-lines::before,
.bx-burger-lines::after {
    position: absolute;
    left: 0;

    content: '';
}

.bx-burger-lines::before {
    top: -7px;
}

.bx-burger-lines::after {
    top: 7px;
}

.bx-head.state-open .bx-burger-lines {
    background: transparent;
}

.bx-head.state-open .bx-burger-lines::before {
    transform: translateY(7px) rotate(45deg);
}

.bx-head.state-open .bx-burger-lines::after {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 899px) {
    :root {
        --bx-head-h: 64px;
    }

    /* sin JS el menú queda visible en línea, debajo de la marca */
    .bx-head-bar {
        flex-wrap: wrap;
        gap: 4px 16px;
    }

    .bx-nav-list {
        flex-wrap: wrap;
    }

    .js .bx-burger {
        display: grid;
    }

    .js .bx-nav {
        position: fixed;
        top: var(--bx-head-h);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1;

        padding: 28px var(--bx-gutter) 40px;
        overflow-y: auto;

        background: var(--bx-yunque);
        border-top: 1px solid var(--bx-yunque-2);
        visibility: hidden;

        transform: translateY(-12px);
        transition: transform 0.22s ease, visibility 0s linear 0.22s;
    }

    .js .bx-head.state-open .bx-nav {
        visibility: visible;

        transform: none;
        transition: transform 0.22s ease;
    }

    .js .bx-nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .js .bx-nav a {
        display: flex;
        min-height: 60px;
        padding: 0 4px;

        font-size: 1.5rem;
        font-weight: 700;

        border-top: 0;
        border-bottom: 1px solid var(--bx-yunque-2);
    }

    .js .bx-nav .bx-nav-cta {
        justify-content: center;
        margin: 18px 0 0;
        min-height: 62px;

        font-size: 1.125rem;

        border-bottom: 0;
        border-radius: var(--bx-radio-s);
    }

    .bx-lock,
    .bx-lock body {
        overflow: hidden;
    }
}

@media (min-width: 900px) {
    .bx-burger {
        display: none;
    }
}


/* ---------- portada: titular centrado y tira de fotos ---------- */
.bx-hero {
    --bx-strip-tail: 150px; /* parte de la tira que cae sobre el fondo claro */

    padding-top: clamp(44px, 7vh, 96px);

    color: var(--bx-viruta);

    background: linear-gradient(to bottom, var(--bx-yunque) 0 calc(100% - var(--bx-strip-tail)), var(--bx-fresno) calc(100% - var(--bx-strip-tail)));
}

.bx-hero-copy {
    display: grid;
    justify-items: center;

    text-align: center;
}

.bx-hero .bx-eyebrow {
    color: var(--bx-niebla);
}

.bx-hero h1 {
    max-width: 12.5em;

    font-size: clamp(2.6rem, min(6.9vw, 11.4vh), 6.5rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
    color: var(--bx-cal);
}

.bx-hero-lead {
    max-width: 45rem;
    margin: clamp(20px, 3vh, 30px) auto clamp(24px, 3.6vh, 36px);

    font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem);
    color: var(--bx-niebla);
}

.bx-hero-actions {
    display: grid;
    justify-items: center;
    gap: 10px;
    width: min(100%, 380px);
}

@media (max-width: 420px) {
    .bx-hero {
        padding-top: 28px;
    }

    .bx-hero h1 {
        font-size: clamp(2.2rem, 10vw, 2.6rem);
    }

    .bx-hero-lead {
        margin-top: 16px;
        margin-bottom: 22px;

        font-size: 1rem;
        line-height: 1.62;
    }
}

.bx-hero .bx-arrow {
    color: var(--bx-viruta);
}

.bx-hero .bx-arrow:hover,
.bx-hero .bx-arrow:focus-visible {
    color: var(--bx-cal);
}

.bx-strip {
    display: flex;
    gap: 12px;
    margin-top: clamp(40px, 6vh, 72px);
    margin-bottom: 0;
    padding: 0;

    list-style: none;
}

.bx-strip-item {
    flex: 1.5 1 0;
    min-width: 0;
}

.bx-strip-item.bx-ar-185 {
    flex-grow: 1.85;
}

.bx-strip-item.bx-ar-169 {
    flex-grow: 1.78;
}

.bx-strip img {
    width: 100%;

    object-fit: cover;
}

.bx-strip figcaption {
    padding-top: 12px;

    font-family: var(--bx-sans);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--bx-grano);
}

@media (max-width: 759px) {
    .bx-hero {
        --bx-strip-tail: 128px;
    }

    /* en móvil la tira pasa a carril con desplazamiento nativo y sale hasta el borde */
    .bx-strip {
        width: auto;
        margin-inline: 0;
        padding-inline: var(--bx-gutter);
        padding-bottom: 6px;
        overflow-x: auto;

        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--bx-gutter);
        scrollbar-width: thin;
        scrollbar-color: var(--bx-brote) transparent;
    }

    .bx-strip-item {
        flex: none;

        scroll-snap-align: start;
    }

    .bx-strip-item.bx-ar-185 {
        order: -1;
    }

    .bx-strip img {
        width: auto;
        height: clamp(170px, 44vw, 230px);
        max-width: none;
    }

    .bx-strip figcaption {
        max-width: 280px;
    }
}

/* ---------- catálogo escalonado ---------- */
.bx-steps {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;

    list-style: none;
}

.bx-step {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 26px 22px;

    background: var(--bx-cal);
    border: 1px solid var(--bx-lija);
    border-radius: var(--bx-radio);
    box-shadow: var(--bx-sombra);
}

.bx-step-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;

    border-bottom: 1px solid var(--bx-lija);
}

.bx-step-n {
    font-family: var(--bx-sans);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--bx-grano);
}

.bx-step-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;

    font-family: var(--bx-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bx-grano);
}

.bx-step-price .bx-num {
    font-size: clamp(2rem, 1.6rem + 1vw, 2.6rem);
    line-height: 1;
}

.bx-step > p:not(.bx-step-price) {
    margin: 0;

    font-size: 0.98rem;
    line-height: 1.6;
}

.bx-params {
    display: grid;
    gap: 0;
    margin: 0;
}

.bx-params div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;

    border-top: 1px dashed var(--bx-lija);
}

.bx-params dt {
    font-family: var(--bx-sans);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--bx-grano);
}

.bx-params dd {
    margin: 0;

    font-family: var(--bx-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: right;
}

.bx-step .bx-arrow {
    margin-top: auto;
}

@media (min-width: 700px) {
    .bx-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .bx-step:nth-child(even) {
        margin-top: 48px;
    }
}

@media (min-width: 1100px) {
    .bx-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
        padding-bottom: 12px;
    }

    .bx-step:nth-child(2) {
        margin-top: 44px;
    }

    .bx-step:nth-child(3) {
        margin-top: 88px;
    }

    .bx-step:nth-child(4) {
        margin-top: 132px;
    }
}

/* ---------- camino del boceto al jardín ---------- */
.bx-path {
    position: relative;
}

.bx-path-line {
    display: none;
}

.bx-path-steps {
    position: relative;

    display: grid;
    gap: 34px;
    margin: 0;
    padding: 0 0 0 46px;

    list-style: none;
}

/* en móvil el camino es una línea vertical punteada */
.bx-path-steps::before {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 10px;

    content: '';

    border-left: 2px dotted var(--bx-grano);
}

.bx-path-step {
    position: relative;
}

.bx-path-dot {
    position: absolute;
    top: 4px;
    left: -45px;

    width: 20px;
    height: 20px;

    background: var(--bx-fresno);
    border: 3px solid var(--bx-forja);
    border-radius: 50%;
}

.bx-path-n {
    display: block;
    margin-bottom: 6px;

    font-size: 2.2rem;
    line-height: 1;
}

.bx-path-step h3 {
    margin-bottom: 10px;
}

.bx-path-step p {
    margin: 0;

    font-size: 0.98rem;
    line-height: 1.62;
}

.bx-path-step .bx-path-when {
    display: inline-flex;
    margin-top: 12px;
    padding: 4px 12px;

    font-family: var(--bx-sans);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--bx-forja);

    background: var(--bx-viruta);
    border-radius: 999px;
}

@media (min-width: 1000px) {
    .bx-path-line {
        position: absolute;
        top: 0;
        left: 0;

        display: block;
        width: 100%;
        height: 120px;
        overflow: visible;

        fill: none;
        stroke: var(--bx-grano);
        stroke-width: 2;
        stroke-dasharray: 2 9;
        stroke-linecap: round;
    }

    .bx-path-steps {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0;
        padding: 0;
    }

    .bx-path-steps::before {
        content: none;
    }

    .bx-path-step {
        padding: 146px 18px 0;

        text-align: center;
    }

    .bx-path-dot {
        top: 79px;
        left: calc(50% - 11px);

        width: 22px;
        height: 22px;
    }

    .bx-path-step:nth-child(even) .bx-path-dot {
        top: 19px;
    }
}

/* ---------- cinta de materiales ---------- */
.bx-marquee {
    overflow: hidden;
    padding-top: 22px;
    padding-bottom: 22px;

    background: var(--bx-viruta);
    border-top: 1px solid var(--bx-lija);
}

.bx-marquee-track {
    display: flex;
    width: max-content;

    animation: bx-desliza 48s linear infinite;
}

.bx-marquee:hover .bx-marquee-track {
    animation-play-state: paused;
}

.bx-marquee-list {
    display: flex;
    margin: 0;
    padding: 0;

    list-style: none;
}

.bx-marquee-list li {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-right: 30px;

    font-family: var(--bx-sans);
    font-size: clamp(1.15rem, 0.95rem + 0.9vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.bx-marquee-list li::after {
    width: 9px;
    height: 9px;

    content: '';

    background: var(--bx-forja);
    border-radius: 2px;
}

@keyframes bx-desliza {
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bx-marquee-track {
        flex-wrap: wrap;
        width: auto;
        padding-inline: var(--bx-gutter);

        animation: none;
    }

    .bx-marquee-list {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .bx-marquee-list[aria-hidden="true"] {
        display: none;
    }
}

/* ---------- el taller ---------- */
.bx-taller-grid {
    display: grid;
    gap: clamp(32px, 5vw, 72px);
}

.bx-portrait img {
    width: min(360px, 100%);
}

.bx-portrait figcaption,
.bx-detail figcaption,
.bx-piece-photo figcaption {
    max-width: 360px;
    padding-top: 12px;

    font-family: var(--bx-sans);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--bx-grano);
}

.bx-taller-copy h2 {
    margin-bottom: 22px;
}

.bx-taller-copy .bx-chips {
    margin: 26px 0 34px;
}

.bx-detail {
    max-width: 640px;
}

.bx-detail img {
    width: 100%;
}

.bx-detail figcaption {
    max-width: none;
}

@media (min-width: 900px) {
    .bx-taller-grid {
        grid-template-columns: 360px minmax(0, 1fr);
        align-items: start;
    }

    .bx-portrait {
        position: sticky;
        top: calc(var(--bx-head-h) + 32px);
    }
}

/* ---------- muro de citas ---------- */
.bx-quotes {
    display: grid;
    gap: 18px;
}

.bx-quote {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    padding: clamp(24px, 3vw, 40px);

    background: var(--bx-cal);
    border: 1px solid var(--bx-lija);
    border-radius: var(--bx-radio);
}

.bx-quote blockquote {
    margin: 0;

    font-size: 1.0625rem;
    line-height: 1.7;
}

.bx-quote blockquote::before {
    display: block;
    height: 0.5em;
    margin-bottom: 10px;

    font-family: var(--bx-sans);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--bx-lija);

    content: '\201C';
}

.bx-quote-big blockquote {
    font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
    line-height: 1.6;
}

.bx-quote figcaption {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    padding-top: 16px;

    font-family: var(--bx-sans);
    font-size: 0.9375rem;
    font-weight: 700;

    border-top: 1px solid var(--bx-lija);
}

.bx-quote figcaption span {
    font-weight: 600;
    color: var(--bx-grano);
}

@media (min-width: 900px) {
    .bx-quotes {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    }

    .bx-quote-big {
        grid-row: span 2;
    }
}

/* ---------- llamada final ---------- */
.bx-cta {
    padding-top: clamp(64px, 8vw, 112px);
    padding-bottom: clamp(64px, 8vw, 112px);

    color: var(--bx-viruta);

    background: var(--bx-yunque);
}

.bx-cta-grid {
    display: grid;
    gap: 32px;
    align-items: end;
}

.bx-cta .bx-eyebrow {
    color: var(--bx-niebla);
}

.bx-cta h2 {
    margin-bottom: 20px;

    color: var(--bx-cal);
}

.bx-cta p:not(.bx-eyebrow) {
    max-width: 620px;

    color: var(--bx-niebla);
}

.bx-cta-actions {
    display: grid;
    justify-items: center;
    gap: 10px;
}

.bx-cta .bx-arrow {
    color: var(--bx-viruta);
}

.bx-cta .bx-arrow:hover,
.bx-cta .bx-arrow:focus-visible {
    color: var(--bx-cal);
}

@media (min-width: 900px) {
    .bx-cta-grid {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 64px;
    }
}

/* ---------- cabecera de página interior (alto fijo en escritorio) ---------- */
.bx-pagehead {
    display: flex;
    align-items: center;
    padding-top: 48px;
    padding-bottom: 52px;

    color: var(--bx-viruta);

    background: var(--bx-yunque);
}

.bx-pagehead .bx-eyebrow {
    color: var(--bx-niebla);
}

.bx-pagehead h1 {
    font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.4rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--bx-cal);
}

.bx-pagehead-lead {
    max-width: 46rem;
    margin-top: 20px;

    font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.2rem);
    color: var(--bx-niebla);
}

.bx-pagehead-grid {
    display: grid;
    gap: 28px;
}

/* columna de datos a la derecha: el flanco oscuro no queda vacío (en una columna sobra) */
.bx-facts {
    display: none;
    margin: 0;
}

@media (max-width: 899px) {
    .bx-pagehead {
        padding-top: 38px;
        padding-bottom: 42px;
    }
}

@media (max-width: 599px) {
    .bx-pagehead {
        padding-top: 34px;
        padding-bottom: 38px;
    }

    .bx-pagehead-lead {
        margin-top: 14px;
    }
}

.bx-facts div {
    padding-left: 16px;

    border-left: 2px solid var(--bx-grano);
}

.bx-facts dt {
    font-family: var(--bx-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bx-niebla);
}

.bx-facts dd {
    margin: 6px 0 0;

    font-family: var(--bx-sans);
    font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2.1rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--bx-cal);
}

/* cifra en verde sobre oscuro: solo a tamaño grande (contraste de texto grande) */
.bx-facts dd.bx-num {
    font-weight: 800;
    color: var(--bx-brote);
}

.bx-facts a {
    color: var(--bx-cal);
    text-decoration: none;
}

.bx-facts a:hover,
.bx-facts a:focus-visible {
    color: var(--bx-cal);
    text-decoration: underline;
}

@media (min-width: 900px) {
    .bx-pagehead {
        min-height: 364px;
    }

    .bx-pagehead-grid {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
        align-items: center;
        gap: 48px;
    }

    .bx-facts {
        display: flex;
        flex-direction: column;
        gap: 22px;
    }
}

/* ---------- especialidades ---------- */
.bx-chipnav {
    padding-top: 28px;
    padding-bottom: 28px;
}

.bx-chipnav .bx-chips {
    justify-content: flex-start;
}

.bx-chipnav a.bx-chip {
    min-height: 44px;

    text-decoration: none;
}

.bx-chipnav a.bx-chip:hover,
.bx-chipnav a.bx-chip:focus-visible {
    border-color: var(--bx-forja);
}

.bx-piece {
    display: grid;
    gap: clamp(28px, 4vw, 64px);
}

.bx-piece-photo img {
    width: 100%;
}

.bx-piece-photo figcaption {
    max-width: none;
}

.bx-piece-copy h2 {
    margin-bottom: 18px;
}

.bx-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    margin: 26px 0 24px;
    padding: 18px 0;

    font-family: var(--bx-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bx-grano);

    border-top: 1px solid var(--bx-lija);
    border-bottom: 1px solid var(--bx-lija);
}

.bx-price .bx-num {
    font-size: clamp(2.4rem, 1.8rem + 1.6vw, 3.4rem);
    line-height: 1;
}

.bx-spec {
    min-width: 0;
    padding: 6px 24px 10px;

    background: var(--bx-cal);
    border: 1px solid var(--bx-lija);
    border-radius: var(--bx-radio);
}

.bx-spec table {
    width: 100%;
}

.bx-spec caption {
    padding: 16px 0 8px;

    font-family: var(--bx-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
    color: var(--bx-grano);
}

.bx-spec th,
.bx-spec td {
    padding: 12px 0;

    font-size: 0.98rem;
    line-height: 1.5;
    text-align: left;
    vertical-align: top;

    border-top: 1px solid var(--bx-lija);
}

.bx-spec th[scope="row"] {
    width: 40%;
    padding-right: 18px;

    font-family: var(--bx-sans);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--bx-grano);
}

.bx-spec th[scope="col"] {
    padding-right: 14px;

    font-family: var(--bx-sans);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--bx-grano);

    border-top: 0;
}

/* datos de tabla en sans: cifras, NIF y teléfonos se leen sin confundir el 1 */
.bx-spec td {
    font-family: var(--bx-sans);
    font-size: 1rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

@media (min-width: 1000px) {
    .bx-piece {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        align-items: start;
    }

    .bx-piece.bx-flip .bx-piece-photo {
        order: 2;
    }

    .bx-piece-photo {
        position: sticky;
        top: calc(var(--bx-head-h) + 32px);
    }
}

.bx-medida {
    display: grid;
    gap: 24px;
}

.bx-medida-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;

    list-style: none;
}

.bx-medida-list li {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 20px 22px;

    background: var(--bx-cal);
    border: 1px solid var(--bx-lija);
    border-radius: var(--bx-radio);
}

.bx-medida-list .bx-num {
    font-size: 2.4rem;
    line-height: 1;
}

.bx-medida-list strong:not(.bx-num) {
    display: block;
    margin-bottom: 4px;

    font-family: var(--bx-sans);
    font-size: 1.125rem;
}

.bx-medida-list p {
    margin: 0;

    font-size: 0.98rem;
    line-height: 1.6;
}

.bx-plazo {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: clamp(28px, 3vw, 40px);

    color: var(--bx-viruta);

    background: var(--bx-yunque);
    border-radius: var(--bx-radio);
    box-shadow: var(--bx-sombra);
}

.bx-plazo .bx-eyebrow {
    margin: 0;

    color: var(--bx-niebla);
}

.bx-plazo .bx-num {
    font-size: clamp(3.4rem, 2.6rem + 3vw, 5.2rem);
    line-height: 0.95;
    color: var(--bx-brote);
}

.bx-plazo p {
    margin: 0;

    color: var(--bx-niebla);
}

.bx-plazo strong:not(.bx-num) {
    color: var(--bx-cal);
}

@media (min-width: 1000px) {
    .bx-medida {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        align-items: start;
    }
}

.bx-seasons {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;

    list-style: none;
}

.bx-season {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 24px;

    background: var(--bx-cal);
    border: 1px solid var(--bx-lija);
    border-radius: var(--bx-radio);
}

/* raya corta sobre el nombre de la estación: tipografía, no adorno */
.bx-season h3::before {
    display: block;
    width: 36px;
    height: 4px;
    margin-bottom: 16px;

    content: '';

    background: var(--bx-forja);
}

.bx-season-months {
    font-family: var(--bx-sans);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--bx-grano);
}

.bx-season p {
    margin: 0;

    font-size: 0.98rem;
    line-height: 1.6;
}

@media (min-width: 640px) {
    .bx-seasons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .bx-seasons {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ---------- pide cita ---------- */
.bx-cita-grid {
    display: grid;
    gap: clamp(32px, 4vw, 56px);
}

.bx-form-card {
    padding: clamp(24px, 3vw, 40px);

    background: var(--bx-cal);
    border: 1px solid var(--bx-lija);
    border-radius: 24px;
    box-shadow: var(--bx-sombra);
}

.bx-form-card h2 {
    margin-bottom: 10px;

    font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem);
}

.bx-form-card > p:not(.bx-form-alert) {
    color: var(--bx-grano);
}

.bx-field {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.bx-field label {
    font-family: var(--bx-sans);
    font-size: 1rem;
    font-weight: 700;
}

.bx-input {
    width: 100%;
    min-height: 54px;
    padding: 13px 16px;

    font-family: var(--bx-sans);
    font-size: 1.0625rem;
    line-height: 1.4;

    background: var(--bx-fresno);
    border: 1.5px solid var(--bx-grano);
    border-radius: 14px;
}

textarea.bx-input {
    min-height: 104px;

    resize: vertical;
}

.bx-input:focus-visible {
    background: var(--bx-cal);
    border-color: var(--bx-brote);
}

.bx-input[aria-invalid="true"] {
    border-color: var(--bx-forja);
    border-width: 2.5px;
}

.bx-field-error {
    font-family: var(--bx-sans);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--bx-forja);
}

.bx-field-error::before {
    content: '\2192\00a0';
}

/* trampa para robots: fuera de la vista, sin display none */
.bx-trap {
    position: absolute;
    left: -9999px;

    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* el texto del consentimiento va en un solo span: si no, la grilla parte el enlace */
.bx-check {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-top: 24px;

    font-size: 0.98rem;
    line-height: 1.55;
    cursor: pointer;
}

.bx-check input {
    width: 22px;
    height: 22px;
    min-height: 0;
    margin: 3px 0 0;

    accent-color: var(--bx-brote);
}

.bx-check a {
    font-weight: 700;
}

.bx-form-card .bx-btn {
    margin-top: 22px;
}

.bx-form-card > p {
    margin-bottom: 0;
}

.bx-form-alert {
    margin: 18px 0 0;
    padding: 14px 16px;

    font-family: var(--bx-sans);
    font-size: 0.98rem;
    font-weight: 600;

    background: var(--bx-viruta);
    border-left: 4px solid var(--bx-forja);
    border-radius: 0 12px 12px 0;
}

.bx-cita-h2 {
    margin-bottom: 26px;

    font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem);
}

.bx-visit {
    display: grid;
    gap: 14px;
    margin: 0 0 28px;
    padding: 0;

    list-style: none;
}

.bx-visit li {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding-bottom: 14px;

    border-bottom: 1px solid var(--bx-lija);
}

.bx-visit .bx-num {
    font-size: 2rem;
    line-height: 1;
}

.bx-visit p {
    margin: 0;
}

.bx-hours {
    margin-bottom: 20px;
}

.bx-address {
    display: grid;
    gap: 10px;
    padding: 24px;

    background: var(--bx-viruta);
    border: 1px solid var(--bx-lija);
    border-radius: var(--bx-radio);
}

.bx-address p {
    margin: 0;
}

.bx-address a {
    font-family: var(--bx-sans);
    font-weight: 700;
}

@media (min-width: 1000px) {
    .bx-cita-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
        align-items: start;
    }

    .bx-cita-grid .bx-form-card {
        order: 2;
    }
}

.bx-ficha {
    display: grid;
    gap: 24px;
}

.bx-ficha .bx-sec-head {
    margin-bottom: 0;
}

@media (min-width: 1000px) {
    .bx-ficha {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
        align-items: start;
    }
}

/* ---------- textos legales ---------- */
.bx-legal {
    display: grid;
    gap: 22px;
    padding-top: clamp(40px, 5vw, 72px);
    padding-bottom: clamp(56px, 7vw, 104px);
}

.bx-legal-index {
    padding: 22px 24px;

    background: var(--bx-viruta);
    border: 1px solid var(--bx-lija);
    border-radius: var(--bx-radio);
}

.bx-legal-index p {
    margin: 0 0 8px;

    font-family: var(--bx-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bx-grano);
}

.bx-legal-index ol {
    display: grid;
    margin: 0;
    padding: 0;

    list-style: none;
}

.bx-legal-index a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;

    font-family: var(--bx-sans);
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;

    border-bottom: 1px solid var(--bx-lija);
}

.bx-legal-index li:last-child a {
    border-bottom: 0;
}

.bx-legal-index a:hover,
.bx-legal-index a:focus-visible {
    text-decoration: underline;
}

.bx-legal-index a span {
    min-width: 24px;

    font-weight: 800;
    color: var(--bx-brote);
}

.bx-legal-stack {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.bx-legal-card {
    min-width: 0;
    padding: clamp(24px, 3vw, 40px);

    background: var(--bx-cal);
    border: 1px solid var(--bx-lija);
    border-radius: var(--bx-radio);
}

.bx-legal-card h2 {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 18px;

    font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.9rem);
}

.bx-legal-card h2 .bx-num {
    font-size: 1rem;
}

.bx-legal-card p,
.bx-legal-card li {
    font-size: 1rem;
    line-height: 1.7;
}

.bx-legal-card ul {
    display: grid;
    gap: 8px;
    margin: 0 0 1em;
    padding: 0;

    list-style: none;
}

.bx-legal-card ul:last-child {
    margin-bottom: 0;
}

.bx-legal-card ul li {
    position: relative;

    padding-left: 22px;
}

/* marcador absoluto: si fuera celda de grilla partiría la línea con enlace */
.bx-legal-card ul li::before {
    position: absolute;
    top: 0.72em;
    left: 2px;

    width: 8px;
    height: 2px;

    content: '';

    background: var(--bx-forja);
}

.bx-legal-card .bx-spec {
    margin: 6px 0 18px;
}

.bx-legal-card .bx-spec:last-child {
    margin-bottom: 0;
}

.bx-legal-card.bx-legal-key {
    background: var(--bx-viruta);
}

.bx-scroll {
    min-width: 0;
    overflow-x: auto;

    scrollbar-width: thin;
    scrollbar-color: var(--bx-brote) transparent;
}

.bx-scroll table {
    min-width: 620px;
}

.bx-consent-panel {
    display: grid;
    gap: 16px;
    padding: 22px 24px;

    color: var(--bx-viruta);

    background: var(--bx-yunque);
    border-radius: var(--bx-radio);
}

.bx-consent-panel p {
    margin: 0;

    font-family: var(--bx-sans);
    font-size: 1rem;
    color: var(--bx-niebla);
}

.bx-consent-panel strong {
    color: var(--bx-cal);
}

.bx-consent-panel .bx-btn {
    max-width: 340px;
}

.bx-legal-card .bx-legal-after,
.bx-legal-card .bx-legal-date {
    margin: 16px 0 0;

    font-family: var(--bx-sans);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--bx-grano);
}

@media (min-width: 1000px) {
    .bx-legal {
        grid-template-columns: 270px minmax(0, 1fr);
        align-items: start;
    }

    .bx-legal-index {
        position: sticky;
        top: calc(var(--bx-head-h) + 24px);
    }
}

/* ---------- recibido y 404 ---------- */
.bx-next {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;

    list-style: none;
}

.bx-next li {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px 26px;

    background: var(--bx-cal);
    border: 1px solid var(--bx-lija);
    border-radius: var(--bx-radio);
}

.bx-next .bx-num {
    font-size: 2.4rem;
    line-height: 1;
}

.bx-next p {
    margin: 0;
}

.bx-next .bx-arrow {
    margin-top: auto;
}

/* centrado: a la izquierda quedaría bajo la tarjeta de cookies en pantallas anchas */
.bx-next-actions {
    display: grid;
    justify-items: center;
    gap: 12px;
    max-width: 420px;
    margin-top: 40px;
    margin-inline: auto;
}

@media (min-width: 800px) {
    .bx-next {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ---------- pie ---------- */
.bx-foot {
    padding-top: clamp(56px, 6vw, 80px);
    padding-bottom: 32px;

    color: var(--bx-niebla);

    background: var(--bx-yunque);
    border-top: 1px solid var(--bx-yunque-2);
}

.bx-foot-grid {
    display: grid;
    gap: 36px;
}

.bx-foot .bx-brand {
    margin-bottom: 14px;
}

.bx-foot p {
    max-width: 360px;

    font-size: 0.98rem;
    line-height: 1.6;
}

.bx-foot-title {
    margin: 0 0 8px;

    font-family: var(--bx-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bx-viruta);
}

.bx-foot ul {
    display: grid;
    margin: 0;
    padding: 0;

    list-style: none;
}

.bx-foot ul a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;

    font-family: var(--bx-sans);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--bx-viruta);
}

.bx-foot ul a:hover,
.bx-foot ul a:focus-visible {
    color: var(--bx-cal);
    text-decoration: underline;
}

.bx-foot-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 44px;
    padding-top: 22px;

    font-family: var(--bx-sans);
    font-size: 0.875rem;

    border-top: 1px solid var(--bx-yunque-2);
}

@media (min-width: 760px) {
    .bx-foot-grid {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
    }
}

/* ---------- aviso de cookies: esquina en escritorio, franja en móvil, sin velo ---------- */
.notice-consent {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 900;

    display: grid;
    gap: 12px;
    padding: 16px 18px;

    font-family: var(--bx-sans);
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--bx-viruta);

    background: var(--bx-yunque);
    border: 1px solid var(--bx-yunque-2);
    border-radius: var(--bx-radio);
    box-shadow: var(--bx-sombra);
}

.notice-consent p {
    margin: 0;
}

.notice-consent a {
    font-weight: 700;
    color: var(--bx-cal);
}

.notice-consent a:hover,
.notice-consent a:focus-visible {
    color: var(--bx-cal);
    text-decoration-thickness: 2px;
}

.bx-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* las dos opciones pesan lo mismo: mismo tamaño, mismo color */
.bx-consent-btn {
    min-height: 46px;
    padding: 8px 14px;

    font-family: var(--bx-sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--bx-yunque);

    background: var(--bx-viruta);
    border: 0;
    border-radius: 14px;
    cursor: pointer;
}

.bx-consent-btn:hover,
.bx-consent-btn:focus-visible {
    background: var(--bx-cal);
}

.bx-consent-btn:focus-visible {
    outline-color: var(--bx-cal);
}

@media (max-width: 420px) {
    .notice-consent {
        right: 8px;
        bottom: 8px;
        left: 8px;

        gap: 10px;
        padding: 14px;

        font-size: 0.875rem;
        line-height: 1.4;
    }

    .bx-consent-btn {
        min-height: 44px;
    }
}

/* tableta: franja baja con los botones a la derecha */
@media (min-width: 600px) and (max-width: 999px) {
    .notice-consent {
        grid-template-columns: minmax(0, 1fr) 260px;
        align-items: center;
        gap: 14px 24px;
        padding: 14px 18px;
    }
}

/* escritorio: tarjeta en la esquina; su borde derecho queda a la izquierda de la columna del botón de portada */
@media (min-width: 1000px) {
    .notice-consent {
        right: auto;
        bottom: 22px;
        left: 22px;

        width: 280px;
        padding: 18px 20px;
    }
}

@media (min-width: 1200px) {
    .notice-consent {
        width: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bx-burger-lines,
    .bx-burger-lines::before,
    .bx-burger-lines::after,
    .js .bx-nav,
    .js .bx-head.state-open .bx-nav {
        transition: none;
    }
}
