/* Laveta — hoja de estilos */

@font-face {
    font-family: "Outfit";
    src: url("/assets/fonts/outfit-latin-ext.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Outfit";
    src: url("/assets/fonts/outfit-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Karla";
    src: url("/assets/fonts/karla-latin-ext.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Karla";
    src: url("/assets/fonts/karla-latin.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Karla";
    src: url("/assets/fonts/karla-italic-latin.woff2") format("woff2");
    font-weight: 200 800;
    font-style: italic;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: only light;

    --ink: #1d2320;
    --green: #1f4035;
    --green-deep: #17322a;
    --amber: #b8751c;
    --paper: #ffffff;
    --mist: #eef2ef;
    --tile: #efe1d3;
    --line: #d5dcd7;
    --muted: #56615c;
    --error: #a3271a;

    --display: "Outfit", "Avenir Next", "Century Gothic", "Segoe UI", sans-serif;
    --text: "Karla", "Helvetica Neue", Arial, sans-serif;

    --gutter: clamp(20px, 4vw, 48px);
    --section: clamp(56px, 8vw, 112px);
    --radius: 2px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-wrap: break-word;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: var(--display);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.25rem, 5.2vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.025em;
}

h2 {
    font-size: clamp(1.75rem, 3.1vw, 2.625rem);
}

h3 {
    font-size: 1.3125rem;
    font-weight: 500;
    letter-spacing: -0.005em;
}

p,
ul,
ol,
dl,
address {
    margin: 0;
}

address {
    font-style: normal;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--green);
}

:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

.container {
    width: 100%;
    max-width: 1296px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow {
    max-width: 880px;
}

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
}

.skip:focus {
    top: 12px;
    color: #fff;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ---------- Botones ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 28px;
    border: 1.5px solid var(--green);
    border-radius: var(--radius);
    background: var(--green);
    color: #fff;
    font-family: var(--display);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
    background: var(--green-deep);
    border-color: var(--green-deep);
    color: #fff;
}

.btn--line {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
}

.btn--line:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.btn--light {
    background: #fff;
    border-color: #fff;
    color: var(--ink);
}

.btn--light:hover {
    background: var(--mist);
    border-color: var(--mist);
    color: var(--ink);
}

.btn--small {
    min-height: 42px;
    padding: 8px 18px;
    font-size: 0.875rem;
}

.linklike {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    cursor: pointer;
}

.linklike:hover {
    color: var(--green);
}

.textlink {
    font-family: var(--display);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.3em;
}

/* ---------- Cabecera ---------- */

.topbar {
    padding: 9px var(--gutter);
    background: var(--green);
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.4;
    text-align: center;
}

.masthead {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding-block: 26px 18px;
}

.masthead__tel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
    font-size: 0.9375rem;
    text-decoration: none;
}

.masthead__cta {
    justify-self: end;
    min-height: 44px;
    padding: 9px 20px;
    font-size: 0.875rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--green);
    text-decoration: none;
}

.logo img,
.logo svg {
    width: 34px;
    height: 34px;
}

.logo__word {
    font-family: var(--display);
    font-size: 2.125rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
}

.logo:hover {
    color: var(--green-deep);
}

.nav-toggle {
    display: none;
}

.mainnav {
    border-bottom: 1px solid var(--line);
}

.mainnav__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 clamp(18px, 3vw, 44px);
    list-style: none;
    padding-block: 0;
}

.mainnav a {
    position: relative;
    display: block;
    padding: 14px 0 16px;
    font-family: var(--display);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-decoration: none;
    text-transform: uppercase;
}

.mainnav a::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px 0;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.mainnav a:hover::after,
.mainnav a[aria-current="page"]::after {
    transform: scaleX(1);
}

/* ---------- Portada: hero ---------- */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    min-height: clamp(470px, 72vh, 700px);
    background: var(--green-deep);
    color: #fff;
}

.hero__media {
    position: relative;
}

.hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 36% 22%;
}

.hero__body {
    display: flex;
    align-items: center;
    padding: clamp(32px, 4.4vw, 72px);
}

.hero__text {
    max-width: 30rem;
}

.hero__text h1 {
    font-size: clamp(2.125rem, 3.5vw, 3.375rem);
}

.hero__text p {
    margin-top: 20px;
    color: #dbe6e0;
    font-size: 1.125rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    align-items: center;
    margin-top: 30px;
}

.hero__actions .textlink,
.hero__actions .textlink:hover {
    color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
    .hero__text > * {
        animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }
    .hero__text > :nth-child(2) {
        animation-delay: 0.08s;
    }
    .hero__text > :nth-child(3) {
        animation-delay: 0.16s;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Secciones ---------- */

.section {
    padding-block: var(--section);
}

.section--mist {
    background: var(--mist);
}

.section--green {
    background: var(--green);
    color: #fff;
}

.section--flush-top {
    padding-top: 0;
}

.section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px 32px;
    margin-bottom: clamp(26px, 3.5vw, 44px);
}

.section__head p {
    max-width: 34rem;
    margin-top: 12px;
    color: var(--muted);
}

.lede {
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
    line-height: 1.55;
}

.prose > * + * {
    margin-top: 1.05em;
}

.prose {
    max-width: 40rem;
}

.muted {
    color: var(--muted);
}

/* Manifiesto: frase grande a la izquierda, texto a la derecha */

.statement {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(28px, 6vw, 96px);
    align-items: start;
}

.statement h2 {
    font-size: clamp(1.875rem, 3.6vw, 3rem);
}

/* ---------- Tarjetas de producto ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(28px, 3.4vw, 44px) clamp(14px, 2vw, 28px);
    list-style: none;
    padding: 0;
}

.cards--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card__media {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--tile);
    aspect-ratio: 3 / 2;
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card:hover .card__media img {
    transform: scale(1.035);
}

.card__row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 2px 12px;
    margin-top: 14px;
}

.card__name {
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.card:hover .card__name {
    color: var(--green);
}

.card__price {
    font-size: 1rem;
    white-space: nowrap;
}

.card__meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.4;
}

.tint {
    flex: none;
    width: 11px;
    height: 11px;
    border: 1px solid rgba(29, 35, 32, 0.28);
    border-radius: 50%;
    background: var(--tint, #888);
    transform: translateY(1px);
}

/* ---------- Proceso ---------- */

.process {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 6vw, 88px);
    align-items: start;
}

.process__media img {
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.process__media {
    position: sticky;
    top: 28px;
}

.steps {
    counter-reset: paso;
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.steps li {
    counter-increment: paso;
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0 12px;
    padding-block: 22px;
    border-top: 1px solid var(--line);
}

.steps li::before {
    content: counter(paso);
    font-family: var(--display);
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1.1;
    color: var(--green);
}

.steps h3 {
    margin-bottom: 6px;
}

.steps p {
    color: var(--muted);
}

/* ---------- Bloques partidos imagen + texto ---------- */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(28px, 6vw, 88px);
    align-items: center;
}

.split--reverse .split__media {
    order: 2;
}

.split__media img {
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.split__body > * + * {
    margin-top: 16px;
}

.split__body .btn,
.split__body .textlink {
    margin-top: 10px;
}

.deflist {
    display: grid;
    gap: 0;
    margin-top: 22px;
}

.deflist > div {
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    gap: 4px 20px;
    padding-block: 13px;
    border-top: 1px solid var(--line);
}

.section--mist .deflist > div {
    border-color: #cdd6d0;
}

.deflist dt {
    font-family: var(--display);
    font-weight: 500;
}

.deflist dd {
    margin: 0;
    color: var(--muted);
}

/* ---------- Taller: dirección + fotos ---------- */

.visit {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.25fr);
    background: var(--mist);
}

.visit__info {
    align-self: center;
    padding: clamp(32px, 5vw, 64px) var(--gutter);
}

.visit__info h2 {
    font-size: clamp(1.625rem, 2.6vw, 2.25rem);
}

.visit__info address,
.visit__info .hours {
    margin-top: 18px;
}

.visit__info .btn {
    margin-top: 26px;
}

.visit img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.hours {
    display: grid;
    gap: 2px;
    font-size: 0.9375rem;
    color: var(--muted);
}

/* ---------- Preguntas ---------- */

.faq {
    border-bottom: 1px solid var(--line);
}

.faq details {
    border-top: 1px solid var(--line);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    font-family: var(--display);
    font-size: 1.1875rem;
    font-weight: 500;
    line-height: 1.3;
    list-style: none;
    cursor: pointer;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "";
    flex: none;
    width: 12px;
    height: 12px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
    transition: transform 0.2s ease;
}

.faq details[open] summary::after {
    transform: translateY(3px) rotate(225deg);
}

.faq summary:hover {
    color: var(--green);
}

.faq__answer {
    max-width: 44rem;
    padding: 0 0 24px;
    color: var(--muted);
}

.faq__answer > * + * {
    margin-top: 0.8em;
}

.faq-group + .faq-group {
    margin-top: clamp(40px, 5vw, 64px);
}

.faq-group h2 {
    margin-bottom: 18px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}

/* ---------- Formulario ---------- */

.contact {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

.contact__intro > * + * {
    margin-top: 16px;
}

.contact__intro .deflist {
    margin-top: 26px;
}

.leadform {
    scroll-margin-top: 24px;
    padding: clamp(22px, 3.2vw, 40px);
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
}

.field {
    margin-bottom: 18px;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--display);
    font-size: 0.9375rem;
    font-weight: 500;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #aab4ae;
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    font: inherit;
    line-height: 1.4;
}

.field textarea {
    min-height: 140px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #8a948f;
}

.field input:focus-visible,
.field textarea:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 0;
    border-color: var(--green);
}

.leadform .field input[aria-invalid="true"],
.leadform .field textarea[aria-invalid="true"] {
    border-color: var(--error);
}

.field__error {
    margin-top: 6px;
    color: var(--error);
    font-size: 0.9375rem;
    line-height: 1.4;
}

.field--trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.field--check label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-family: var(--text);
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
}

.field--check input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 3px 0 0;
    accent-color: var(--green);
}

.leadform__note {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.45;
}

.leadform__alert {
    margin-bottom: 20px;
    padding: 12px 16px;
    border: 1px solid #e3b5ad;
    border-radius: var(--radius);
    background: #fbefec;
    color: var(--error);
}

.leadform__done h3 {
    font-size: 1.625rem;
    font-weight: 400;
}

.leadform__done > * + * {
    margin-top: 12px;
}

/* ---------- Cabecera de página interior ---------- */

.pagehead {
    padding-block: clamp(40px, 6vw, 84px) clamp(28px, 4vw, 52px);
}

.pagehead p {
    max-width: 40rem;
    margin-top: 18px;
    color: var(--muted);
}

.pagehead--center {
    text-align: center;
}

.pagehead--center p {
    margin-inline: auto;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 20px;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.9375rem;
}

.crumbs--top {
    margin-bottom: 24px;
    padding-top: clamp(24px, 3.4vw, 44px);
}

.crumbs li + li::before {
    content: "/";
    margin-right: 10px;
    color: #a3ada8;
}

/* ---------- Colección ---------- */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: clamp(26px, 3.5vw, 44px);
    padding: 0;
    list-style: none;
}

.filters a {
    display: block;
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--display);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
}

.filters a:hover {
    border-color: var(--green);
}

.filters a[aria-current="true"] {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.group + .group {
    margin-top: clamp(48px, 6vw, 84px);
}

.group__head {
    margin-bottom: clamp(20px, 2.6vw, 32px);
}

.group__head p {
    max-width: 38rem;
    margin-top: 8px;
    color: var(--muted);
}

/* ---------- Ficha de producto ---------- */

.product {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 76px);
    align-items: start;
}

.product__media img {
    width: 100%;
    border-radius: var(--radius);
    background: var(--tile);
}

.product__thumbs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 1.4vw, 18px);
    margin-top: clamp(10px, 1.4vw, 18px);
}

.product__thumbs img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.product__info h1 {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
}

.product__type {
    color: var(--muted);
}

.product__price {
    margin-top: 14px;
    font-family: var(--display);
    font-size: 1.625rem;
}

.product__price small {
    margin-left: 8px;
    color: var(--muted);
    font-family: var(--text);
    font-size: 0.9375rem;
}

.product__text {
    margin-top: 22px;
}

.product__text > * + * {
    margin-top: 0.9em;
}

.product__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.product__note {
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.9375rem;
}

/* ---------- Franja de dos tarjetas grandes ---------- */

.duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 2.4vw, 32px);
}

.duo__item {
    display: block;
    color: inherit;
    text-decoration: none;
}

.duo__item img {
    width: 100%;
    border-radius: var(--radius);
    background: var(--tile);
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.duo__item h3 {
    margin-top: 16px;
    font-size: 1.5rem;
}

.duo__item p {
    margin-top: 6px;
    color: var(--muted);
}

.duo__item:hover h3 {
    color: var(--green);
}

.section--green .duo__item p {
    color: #cfdcd5;
}

.section--green .duo__item:hover h3 {
    color: #fff;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.section--green .section__head p {
    color: #cfdcd5;
}

.section--green .textlink,
.section--green .textlink:hover {
    color: #fff;
}

/* ---------- Materiales ---------- */

.matgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 64px);
}

.matgrid article img {
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.matgrid article h2 {
    margin-top: 22px;
    font-size: clamp(1.5rem, 2.3vw, 2rem);
}

.matgrid article > p {
    margin-top: 12px;
    color: var(--muted);
}

.woods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 clamp(20px, 3vw, 48px);
    margin-top: clamp(24px, 3vw, 40px);
}

.woods > div {
    padding-block: 16px;
    border-top: 1px solid #cdd6d0;
}

.woods dt {
    font-family: var(--display);
    font-size: 1.1875rem;
    font-weight: 500;
}

.woods dd {
    margin: 4px 0 0;
    color: var(--muted);
}

/* ---------- Banda ancha con imagen ---------- */

.band img {
    width: 100%;
    height: clamp(260px, 42vw, 560px);
    object-fit: cover;
}

/* ---------- Texto legal ---------- */

.legal {
    max-width: 46rem;
}

.legal h2 {
    margin-top: 2.2em;
    font-size: 1.5rem;
    font-weight: 500;
}

.legal h3 {
    margin-top: 1.6em;
    font-size: 1.125rem;
}

.legal p,
.legal ul,
.legal ol,
.legal .tablewrap {
    margin-top: 0.9em;
}

.legal ul,
.legal ol {
    padding-left: 1.3em;
}

.legal li + li {
    margin-top: 0.4em;
}

.tablewrap {
    overflow-x: auto;
}

.legal table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.legal th,
.legal td {
    padding: 10px 12px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.legal th {
    background: var(--mist);
    font-family: var(--display);
    font-weight: 500;
}

.legal__date {
    color: var(--muted);
    font-size: 0.9375rem;
}

/* ---------- 404 ---------- */

.notfound {
    padding-block: clamp(64px, 10vw, 140px);
    text-align: center;
}

.notfound p {
    max-width: 32rem;
    margin: 18px auto 0;
    color: var(--muted);
}

.notfound__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

/* ---------- Pie ---------- */

.site-footer {
    background: var(--green-deep);
    color: #e6ede9;
    font-size: 0.9375rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
    gap: 36px clamp(24px, 4vw, 64px);
    padding-block: clamp(44px, 6vw, 76px);
}

.site-footer__brand p {
    max-width: 22rem;
    margin-top: 16px;
    color: #b9c9c1;
}

.logo--footer,
.logo--footer:hover {
    color: #fff;
}

.logo--footer img,
.logo--footer svg {
    width: 30px;
    height: 30px;
}

.logo--footer .logo__word {
    font-size: 1.75rem;
}

.site-footer__title {
    margin-bottom: 14px;
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: 0;
}

.site-footer ul {
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover,
.site-footer .linklike:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer address {
    line-height: 1.75;
}

.site-footer__hours {
    margin-top: 12px;
    color: #b9c9c1;
}

.site-footer__base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 24px;
    padding-block: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: #b9c9c1;
    font-size: 0.875rem;
}

.site-footer :focus-visible {
    outline-color: #f0c070;
}

/* ---------- Aviso de cookies ---------- */

.cookie {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 50;
    width: min(440px, calc(100vw - 32px));
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 18px 48px rgba(23, 50, 42, 0.18);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.cookie h2 {
    margin-bottom: 8px;
    font-size: 1.1875rem;
    font-weight: 500;
    letter-spacing: 0;
}

.cookie__prefs {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.cookie__prefs label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie__prefs input {
    width: 18px;
    height: 18px;
    accent-color: var(--green);
}

.cookie__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.cookie__actions .btn {
    flex: 1 1 auto;
}

/* ---------- Adaptación ---------- */

@media (max-width: 1080px) {
    .cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .visit__info {
        grid-column: 1 / -1;
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .statement,
    .process,
    .split,
    .contact,
    .product {
        grid-template-columns: minmax(0, 1fr);
    }

    .split--reverse .split__media {
        order: 0;
    }

    .process__media {
        position: static;
    }

    .process__media img {
        aspect-ratio: 3 / 2;
    }

    .woods {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Cabecera compacta con menú desplegable */
    .masthead {
        grid-template-columns: 1fr auto 1fr;
        padding-block: 14px;
    }

    .masthead__cta {
        display: none;
    }

    .masthead__tel {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }

    .masthead__tel span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .masthead__tel svg {
        width: 22px;
        height: 22px;
    }

    .logo {
        grid-column: 2;
        grid-row: 1;
    }

    .logo img,
    .logo svg {
        width: 28px;
        height: 28px;
    }

    .logo__word {
        font-size: 1.75rem;
    }

    .js .nav-toggle {
        grid-column: 1;
        grid-row: 1;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        justify-self: start;
        min-height: 44px;
        padding: 0;
        border: 0;
        background: none;
        color: var(--ink);
        font-family: var(--display);
        font-size: 0.9375rem;
        font-weight: 500;
        cursor: pointer;
    }

    .nav-toggle__bars,
    .nav-toggle__bars::before,
    .nav-toggle__bars::after {
        display: block;
        width: 22px;
        height: 1.5px;
        background: currentColor;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .nav-toggle__bars {
        position: relative;
    }

    .nav-toggle__bars::before,
    .nav-toggle__bars::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .nav-toggle__bars::before {
        top: -7px;
    }

    .nav-toggle__bars::after {
        top: 7px;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__bars {
        background: transparent;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
        transform: translateY(-7px) rotate(-45deg);
    }

    .js .mainnav {
        display: none;
    }

    .js .mainnav.is-open {
        display: block;
    }

    .mainnav__list {
        display: block;
        padding-block: 6px 14px;
    }

    .mainnav a {
        padding: 13px 0;
        border-top: 1px solid var(--line);
        font-size: 0.9375rem;
    }

    .mainnav a::after {
        display: none;
    }

    .mainnav a[aria-current="page"] {
        color: var(--green);
    }

    /* Hero apilado */
    .hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .hero__media img {
        position: static;
        height: auto;
        aspect-ratio: 4 / 5;
        max-height: 70vh;
        object-position: 50% 20%;
    }

    .hero__body {
        padding: 32px var(--gutter) 40px;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 1rem;
    }

    .cards,
    .cards--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cards--two,
    .duo,
    .matgrid,
    .field-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .card__name {
        font-size: 1.0625rem;
    }

    .card__price {
        font-size: 0.9375rem;
    }

    .card__meta {
        font-size: 0.875rem;
    }

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

    .visit img {
        min-height: 0;
        aspect-ratio: 3 / 2;
    }

    .deflist > div {
        grid-template-columns: minmax(0, 1fr);
    }

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

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

    .topbar {
        font-size: 0.8125rem;
    }

    .cookie {
        left: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
        padding: 18px;
    }

    .product__actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
