/* Whiterock Juguetes — hoja de estilos */

/* ───────── Fuentes (autoalojadas) ───────── */
@font-face {
    font-family: "Fredoka";
    src: url("/assets/fonts/fredoka-latin-wght-normal.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Mulish";
    src: url("/assets/fonts/mulish-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Mulish";
    src: url("/assets/fonts/mulish-latin-wght-italic.woff2") format("woff2");
    font-weight: 200 1000;
    font-style: italic;
    font-display: swap;
}

:root {
    color-scheme: only light;

    --red: #e52a2c;
    --red-dark: #c41e20;
    --red-soft: #fdeaea;
    --teal: #57b5b5;
    --teal-dark: #2a7f81;
    --teal-soft: #b9e4e1;
    --green: #23893f;
    --green-soft: #e9f6ec;
    --ink: #232323;
    --muted: #666462;
    --line: #e7e4e0;
    --bg: #f9f9f8;
    --white: #fff;

    --font-display: "Fredoka", "Trebuchet MS", "Segoe UI", sans-serif;
    --font-body: "Mulish", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --radius: 16px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --shadow: 0 10px 30px -12px rgba(35, 35, 35, .18);
    --shadow-sm: 0 2px 10px -4px rgba(35, 35, 35, .12);
    --container: 1240px;
    --gutter: 20px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 150px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

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

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    color: var(--ink);
    text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
    outline: 3px solid var(--teal-dark);
    outline-offset: 2px;
    border-radius: 4px;
}

[hidden] { display: none !important; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 12px; top: -60px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

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

.linklike {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    text-align: left;
}
.linklike:hover { text-decoration: underline; }

/* ───────── Botones ───────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 22px;
    border: 2px solid transparent;
    border-radius: 15px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn--outline { background: var(--white); border-color: var(--red); color: var(--red); }
.btn--outline:hover { background: var(--red); color: #fff; }

.btn--white { background: #fff; border-color: #fff; color: var(--red); }
.btn--white:hover { background: var(--red-soft); border-color: var(--red-soft); }

.btn--ghost { background: transparent; border-color: #fff; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--red); }

.btn--lg { min-height: 50px; padding: 11px 28px; font-size: 17px; }
.btn--sm { min-height: 38px; padding: 6px 14px; font-size: 14.5px; border-radius: 12px; }
.btn--block { display: flex; width: 100%; }

/* ───────── Barra superior ───────── */
.topbar {
    background: var(--bg);
    font-size: 14px;
}
.topbar__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    min-height: 36px;
}
.topbar__item {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    white-space: nowrap;
}
.topbar__item .icon { width: 22px; height: 22px; }
.topbar__item--end { justify-self: end; }
.topbar__item strong { font-weight: 800; }

/* ───────── Cabecera ───────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--white);
}
.site-header__main {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 112px;
    transition: min-height .2s;
}
.site-header.is-stuck .site-header__main { min-height: 84px; }
.site-header.is-stuck { box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .35); }

.burger {
    display: none;
    width: 44px; height: 44px;
    margin-left: -8px;
    padding: 0;
    border: 0;
    background: none;
    color: #555;
    place-items: center;
}
.burger .icon { width: 30px; height: 30px; stroke-width: 2.4; }

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
    color: var(--red);
    text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo img { width: auto; height: 58px; }
.logo__text {
    display: grid;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 38px;
    line-height: .9;
    letter-spacing: .01em;
    text-transform: uppercase;
}
.logo__text small {
    margin-top: 5px;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .34em;
    color: var(--muted);
}

.search {
    display: flex;
    align-items: stretch;
    flex: 1;
    max-width: 500px;
    height: 44px;
    margin-inline: auto;
    background: var(--white);
    border: 1px solid var(--red);
    border-radius: 22px;
    overflow: hidden;
}
.search:focus-within { box-shadow: 0 0 0 3px rgba(229, 42, 44, .2); }
.search input {
    flex: 1;
    min-width: 0;
    padding: 0 6px 0 18px;
    border: 0;
    background: none;
    outline: none;
    font-size: 16px;
}
.search input::placeholder { color: #8d8a87; }
.search input::-webkit-search-cancel-button { display: none; }
.search button {
    display: grid;
    place-items: center;
    width: 46px;
    padding: 0;
    border: 0;
    background: var(--red);
    color: #fff;
}
.search button:hover { background: var(--red-dark); }
.search button .icon { width: 22px; height: 22px; }
.search--mobile { display: none; }

.header-actions { display: flex; align-items: flex-end; gap: 26px; flex: none; }
.header-action {
    display: grid;
    justify-items: center;
    gap: 3px;
    color: var(--ink);
    font-size: 14.5px;
    text-decoration: none;
}
.header-action:hover { color: var(--red); text-decoration: none; }
.header-action__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
}
.header-action__icon .icon { width: 25px; height: 25px; }
.header-action--cart .header-action__icon { background: var(--red-soft); color: var(--red); }
.cart-count {
    position: absolute;
    top: -5px; right: -7px;
    min-width: 22px; height: 22px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 11px;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}

/* ───────── Navegación ───────── */
.mainnav { background: var(--red); color: #fff; }
.mainnav__inner { display: flex; align-items: center; gap: 26px; min-height: 40px; }

.catmenu { position: relative; }
.catmenu__toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    padding: 0 14px;
    border: 0;
    background: rgba(0, 0, 0, .08);
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    text-transform: uppercase;
}
.catmenu__toggle .icon { width: 19px; height: 19px; }
.catmenu__list {
    position: absolute;
    top: 100%; left: 0;
    z-index: 70;
    min-width: 290px;
    padding: 10px;
    background: var(--white);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .15s, transform .15s, visibility .15s;
}
.catmenu.is-open .catmenu__list,
.catmenu:focus-within .catmenu__list { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) {
    .catmenu:hover .catmenu__list { opacity: 1; visibility: visible; transform: none; }
}
.catmenu__list a {
    display: block;
    padding: 9px 14px;
    border-radius: 10px;
    color: var(--ink);
    font-weight: 600;
}
.catmenu__list a:hover { background: var(--red-soft); color: var(--red); text-decoration: none; }
.catmenu__all { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.catmenu__all a { color: var(--red); }

.mainnav__links { display: flex; align-items: center; flex-wrap: wrap; }
.mainnav__links li + li { border-left: 1px solid rgba(255, 255, 255, .75); }
.mainnav__links a {
    display: block;
    padding: 0 10px;
    color: #fff;
    font-size: 18.5px;
    line-height: 1.15;
}
.mainnav__links li:first-child a { padding-left: 0; }
.mainnav__links a[aria-current] { font-weight: 800; }

/* ───────── Menú móvil ───────── */
.drawer { position: fixed; inset: 0; z-index: 120; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(20, 20, 20, .5); }
.drawer__panel {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(340px, 88vw);
    padding: 14px 18px 28px;
    background: var(--white);
    overflow-y: auto;
    animation: drawer-in .2s ease-out;
}
@keyframes drawer-in { from { transform: translateX(-100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.drawer__title { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.drawer__close { width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; display: grid; place-items: center; }
.drawer__close .icon { width: 26px; height: 26px; }
.drawer__label {
    margin: 18px 0 4px;
    color: var(--red);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.drawer__list a {
    display: block;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-weight: 600;
}
.drawer__contact { display: grid; gap: 12px; margin-top: 22px; }
.drawer__contact a { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.drawer__contact .icon { color: var(--red); }

/* ───────── Secciones ───────── */
.section { margin-top: 56px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section__title { font-size: 27px; margin-bottom: 18px; }
.section__head .section__title { margin-bottom: 0; }
.section__more { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; white-space: nowrap; }
.section__more .icon { width: 18px; height: 18px; }

.bar-title {
    margin-bottom: 26px;
    padding: 7px 20px 8px;
    background: var(--red);
    border-radius: 30px;
    color: #fff;
    font-size: 21px;
    font-weight: 600;
    text-align: center;
}

/* ───────── Hero ───────── */
.hero-wrap { margin-top: 16px; }
.hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #d8ddd3;
    box-shadow: var(--shadow-sm);
}
.hero__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.hero__track::-webkit-scrollbar { display: none; }
.hero__slide {
    position: relative;
    flex: 0 0 100%;
    aspect-ratio: 1240 / 440;
    min-height: 320px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.hero__img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: right var(--slide-pos, 60%);
}
.hero__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(24, 24, 24, .56) 0%, rgba(24, 24, 24, .34) 36%, rgba(24, 24, 24, 0) 62%);
}
.hero__content {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: clamp(64px, 8.5%, 108px);
    max-width: min(44%, 500px);
    transform: translateY(-50%);
    color: #fff;
}
.hero__title {
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(30px, 3.7vw, 50px);
    line-height: 1.04;
    text-transform: uppercase;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .28);
    text-wrap: balance;
}
.hero__text {
    max-width: 420px;
    margin: 14px 0 0;
    font-size: clamp(16px, 1.5vw, 19px);
    font-weight: 600;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}
.hero__cta {
    display: inline-block;
    margin-top: 22px;
    padding: 5px 34px 7px;
    background: var(--red-dark);
    border: 3px solid #fff;
    border-radius: 15px;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(19px, 2vw, 25px);
    transition: background-color .15s;
}
.hero__cta:hover { background: var(--red); text-decoration: none; }
.hero__dots {
    position: absolute;
    z-index: 2;
    left: 0; right: 0; bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.hero__dots button {
    width: 11px; height: 11px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.hero__dots button[aria-current="true"] { background: #fff; }

.round-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .88);
    color: var(--red);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
    transform: translateY(-50%);
    transition: background-color .15s, opacity .15s;
}
.round-arrow:hover { background: #fff; }
.round-arrow .icon { width: 22px; height: 22px; stroke-width: 2.6; }
.round-arrow--prev { left: 14px; }
.round-arrow--next { right: 14px; }
.round-arrow[disabled] { opacity: 0; pointer-events: none; }

/* ───────── Píldoras de edad ───────── */
.pills { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pill {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 6px 12px;
    background: var(--white);
    border: 2px solid var(--red);
    border-radius: 15px;
    color: var(--red);
    font-weight: 700;
    text-align: center;
    transition: background-color .15s, color .15s;
}
.pill:hover { background: var(--red); color: #fff; text-decoration: none; }

/* ───────── Tarjeta de producto ───────── */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card__media { display: block; aspect-ratio: 1; padding: 10px 10px 0; }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; }
.product-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 8px 14px 14px; }
.product-card__title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15.5px;
    line-height: 1.35;
    text-wrap: pretty;
}
.product-card__title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-height: 2.7em;
    overflow: hidden;
    color: var(--ink);
}
.product-card__title a::after { content: ""; position: absolute; inset: 0; }
.product-card__title a:hover { color: var(--red); text-decoration: none; }
.product-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
    padding: 1px 8px;
    border: 1.5px solid transparent;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}
.badge--new { border-color: var(--green); color: var(--green); text-transform: uppercase; }
.badge--age { background: var(--bg); border-color: var(--line); color: #55524f; }

.price {
    margin: 0;
    color: var(--red);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 23px;
    line-height: 1.1;
    white-space: nowrap;
}
.price--xl { font-size: 38px; }
.ship-free {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 0;
    color: var(--green);
    font-size: 13.5px;
    font-weight: 700;
}
.ship-free .icon { width: 18px; height: 18px; }

.btn-cart {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    flex: none;
    width: 44px; height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    transition: background-color .15s, transform .15s;
}
.btn-cart:hover { background: var(--red-dark); transform: scale(1.06); }
.btn-cart .icon { width: 22px; height: 22px; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-grid--related { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ───────── Carrusel ───────── */
.carousel { position: relative; }
.carousel__track {
    display: flex;
    gap: 16px;
    padding: 4px 0 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item { flex: 0 0 calc((100% - 64px) / 5); scroll-snap-align: start; min-width: 0; }
.carousel .round-arrow { top: 38%; }
.carousel .round-arrow--prev { left: -8px; }
.carousel .round-arrow--next { right: -8px; }

/* ───────── Categorías ───────── */
.cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cat-card {
    display: flex;
    flex-direction: column;
    margin-top: 44px;
    padding: 0 12px 18px;
    background: var(--white);
    border-radius: var(--radius);
    text-align: center;
}
.cat-card__media { display: block; width: 124px; margin: -44px auto 8px; transition: transform .2s; }
.cat-card:hover .cat-card__media { transform: translateY(-4px) rotate(-2deg); }
.cat-card__title { font-size: 19px; line-height: 1.1; margin-bottom: 12px; }
.cat-card__title a { color: var(--ink); }
.cat-card__title a:hover { color: var(--red); text-decoration: none; }
.cat-card__links { margin-bottom: 14px; font-size: 14.5px; line-height: 1.3; }
.cat-card__links li + li::before {
    content: "";
    display: block;
    width: 24px; height: 1px;
    margin: 8px auto;
    background: var(--red);
}
.cat-card__links a { color: var(--ink); }
.cat-card__links a:hover { color: var(--red); }
.cat-card__all { margin-top: auto; font-weight: 800; font-size: 14.5px; }

/* ───────── Tipos de juego ───────── */
.play-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.play { display: grid; justify-items: center; gap: 12px; color: var(--ink); font-weight: 700; font-size: 17px; text-align: center; }
.play img {
    width: min(100%, 164px);
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    transition: transform .2s;
}
.play:hover { color: var(--red); text-decoration: none; }
.play:hover img { transform: scale(1.04); }

/* ───────── Promo ───────── */
.promo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 76px;
    padding: 34px 64px;
    background: var(--teal-soft);
    border-radius: var(--radius-lg);
}
.promo__body { max-width: 600px; }
.promo__title { color: var(--teal-dark); font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 10px; }
.promo__text { color: var(--teal-dark); font-size: 21px; line-height: 1.3; margin-bottom: 20px; }
.promo__img { flex: none; width: 290px; margin: -74px 20px -40px 0; filter: drop-shadow(0 14px 14px rgba(20, 60, 60, .22)); }

/* ───────── Bloque «sobre la tienda» ───────── */
.about-card {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 40px 44px;
    background: var(--white);
    border-radius: var(--radius-lg);
}
.about-card__text .btn { margin-top: 8px; }
.about-card__features { display: grid; gap: 22px; font-size: 17px; line-height: 1.4; }
.about-card__features li { display: flex; align-items: flex-start; gap: 18px; }
.about-card__features .icon { width: 40px; height: 40px; color: var(--red); stroke-width: 1.4; }

.seo-text__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.seo-text h3 { font-size: 20px; margin-bottom: 10px; }
.seo-text p { color: #3d3b39; }

/* ───────── Formulario de contacto (inicio) ───────── */
.lead { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: start; }
.lead__intro { padding-top: 12px; }
.lead__intro p { font-size: 17px; }
.lead__contact { display: grid; gap: 18px; margin-top: 26px; }
.lead__contact li { display: flex; align-items: center; gap: 14px; }
.lead__contact .icon {
    width: 46px; height: 46px;
    padding: 11px;
    background: var(--red-soft);
    border-radius: 50%;
    color: var(--red);
}
.lead__contact a { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.lead__contact small { color: var(--muted); font-size: 14px; }
.lead__form { padding: 30px 32px; }

/* ───────── Formularios ───────── */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__row--cp { grid-template-columns: 170px 1fr; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: 15px; }
.field label small { color: var(--muted); font-weight: 500; }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea,
.sort select {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    background: var(--white);
    border: 1.5px solid #cfcbc6;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: #9b9895; }
.field input:focus, .field textarea:focus, .sort select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(229, 42, 44, .16);
    outline: none;
}
.field [aria-invalid="true"] { border-color: var(--red); background: #fffafa; }
.field__error { margin: 0; color: var(--red-dark); font-size: 14px; font-weight: 700; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500 !important; font-size: 15px; cursor: pointer; }
.check input {
    flex: none;
    width: 20px; height: 20px;
    margin: 1px 0 0;
    accent-color: var(--red);
}
.form__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 4px; }
.form__note { flex: 1; min-width: 200px; margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.4; }

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 15.5px;
}
.alert strong { display: block; }
.alert p { margin: 4px 0 0; }
.alert--success { background: var(--green-soft); border: 1.5px solid #9fd3ad; color: #17592a; }
.alert--success .icon { width: 26px; height: 26px; margin-top: 1px; stroke-width: 2.4; }
.alert--error { display: block; margin-bottom: 0; background: var(--red-soft); border: 1.5px solid #f3b3b4; color: #8f1517; }
.alert--big { padding: 26px 28px; font-size: 17px; }
.alert--big p { margin-top: 10px; }
.alert--big .btn { margin-top: 6px; }

/* ───────── Pie ───────── */
.site-footer { margin-top: 80px; padding-top: 8px; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 40px; padding-bottom: 28px; }
.site-footer__title { font-size: 19px; margin-bottom: 12px; }
.site-footer__links { display: grid; gap: 7px; }
.site-footer__links a, .site-footer__links .linklike { color: var(--ink); }
.site-footer__contact { display: grid; gap: 12px; }
.site-footer__contact li { display: flex; align-items: flex-start; gap: 10px; }
.site-footer__contact .icon { width: 20px; height: 20px; margin-top: 2px; }
.site-footer__contact a { color: var(--ink); }
.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-block: 16px 28px;
    border-top: 1px solid var(--line);
}
.paychips { display: flex; gap: 8px; }
.paychips li {
    padding: 4px 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #4a4846;
    font-size: 13px;
    font-weight: 700;
}
.site-footer__legal { margin: 0; color: var(--muted); font-size: 14px; }

/* ───────── Cookies y avisos ───────── */
.cookie {
    position: fixed;
    z-index: 100;
    left: 20px; bottom: 20px;
    width: min(470px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    padding: 22px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 50px -10px rgba(0, 0, 0, .35);
    font-size: 14.5px;
    line-height: 1.5;
    overflow-y: auto;
}
.cookie__title { font-size: 20px; margin-bottom: 8px; }
.cookie__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.cookie__actions .btn { min-height: 42px; padding-inline: 8px; font-size: 15px; }
.cookie__config .cookie__actions { grid-template-columns: 1fr 1.6fr; }
.cookie__opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.cookie__opt input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--red); }
.cookie__opt strong { display: block; }

.toast {
    position: fixed;
    z-index: 110;
    left: 50%; bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: calc(100vw - 32px);
    padding: 12px 14px 12px 20px;
    background: var(--ink);
    border-radius: 16px;
    box-shadow: var(--shadow);
    color: #fff;
    font-weight: 600;
    transform: translateX(-50%);
    animation: toast-in .2s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }
.toast a { flex: none; padding: 6px 14px; background: #fff; border-radius: 10px; color: var(--red); font-weight: 800; }
.toast a:hover { text-decoration: none; background: var(--red-soft); }

/* ───────── Páginas interiores ───────── */
.page { padding-top: 4px; }
.page--narrow { max-width: calc(940px + var(--gutter) * 2); }
.page-title { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 14px; }
.lead-text { max-width: 760px; color: #3d3b39; font-size: 18px; line-height: 1.5; margin-bottom: 28px; }

.breadcrumb { padding: 16px 0 18px; color: var(--muted); font-size: 13.5px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumb li + li::before { content: ">"; margin: 0 9px; font-size: 11px; color: #9b9895; }
.breadcrumb a { color: var(--muted); }

/* Catálogo */
.catalog { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 30px; align-items: start; }
.catalog__side { display: grid; gap: 16px; }
.filter { padding: 18px 20px; }
.filter__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    list-style: none;
}
.filter__title::-webkit-details-marker { display: none; }
.filter__title::after {
    content: "";
    width: 9px; height: 9px;
    margin-right: 4px;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .15s;
}
.filter[open] > .filter__title::after { transform: rotate(-135deg) translate(-2px, -2px); }
.filter__list { margin-top: 10px; }
.filter__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 10px;
    color: #4a4846;
}
.filter__list a span { color: #9b9895; font-size: 13.5px; }
.filter__list a:hover { background: var(--bg); color: var(--ink); text-decoration: none; }
.filter__list a[aria-current] { background: var(--red-soft); color: var(--red); font-weight: 800; }
.filter__list--check a { justify-content: flex-start; }
.filter__list--check a::before {
    content: "";
    flex: none;
    width: 16px; height: 16px;
    border: 2px solid var(--ink);
    border-radius: 3px;
}
.filter__list--check a[aria-current]::before {
    border-color: var(--red);
    background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8.5 3 3 6.5-7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.side-note { display: flex; gap: 12px; padding: 16px 20px; font-size: 14.5px; }
.side-note .icon { width: 28px; height: 28px; color: var(--green); }

.catalog__head { margin-bottom: 18px; }
.catalog__head .page-title { margin-bottom: 8px; }
.catalog__intro { max-width: 820px; color: #3d3b39; }
.catalog__bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 16px; }
.catalog__count { margin: 0; color: var(--muted); font-weight: 600; }
.sort { display: flex; align-items: center; gap: 10px; }
.sort label { color: var(--muted); font-size: 14.5px; white-space: nowrap; }
.sort select { width: auto; min-height: 40px; padding: 6px 12px; font-size: 15px; }
.js .sort__go { display: none; }
.empty { padding: 48px 28px; text-align: center; }
.empty h2 { font-size: 23px; margin-bottom: 10px; }
.empty .btn { margin-top: 10px; }

/* Producto */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.product__media { padding: 28px; }
.product__media img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.product__title { font-size: clamp(26px, 3vw, 36px); margin: 12px 0 8px; }
.product__ref { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.product__ref a { color: var(--muted); text-decoration: underline; }
.product__short { font-size: 17.5px; line-height: 1.5; margin-bottom: 20px; }
.buybox { padding: 24px 26px; }
.buybox__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.buybox__price small { color: var(--muted); font-size: 14px; }
.buybox__stock { display: flex; align-items: center; gap: 7px; color: var(--green); font-weight: 700; font-size: 15px; margin-bottom: 18px; }
.buybox__stock .icon { stroke-width: 2.6; }
.buybox__row { display: flex; flex-wrap: wrap; gap: 12px; }
.buybox__add { flex: 1; min-width: 210px; }
.buybox__perks { display: grid; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; }
.buybox__perks li { display: flex; align-items: flex-start; gap: 10px; }
.buybox__perks .icon { width: 22px; height: 22px; color: var(--teal-dark); }

.qty { display: inline-flex; align-items: center; height: 50px; border: 1.5px solid #cfcbc6; border-radius: 15px; overflow: hidden; background: #fff; }
.qty button { display: grid; place-items: center; width: 42px; height: 100%; padding: 0; border: 0; background: none; }
.qty button:hover { background: var(--bg); color: var(--red); }
.qty button .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.qty input {
    width: 42px; height: 100%;
    padding: 0;
    border: 0;
    background: none;
    font-weight: 800;
    font-size: 17px;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: 40px; border-radius: 12px; }
.qty--sm button { width: 34px; }
.qty--sm input { width: 34px; font-size: 15.5px; }

.product-details { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.product-details__block { padding: 28px 30px; }
.product-details__block--wide { grid-column: 1 / -1; }
.product-details__block h2 { font-size: 22px; margin-bottom: 14px; }
.warning { padding: 14px 18px; background: #fff6e6; border: 1.5px solid #f2d39a; border-radius: 12px; color: #6b4a08; }

.specs { margin: 0; }
.specs > div { display: grid; grid-template-columns: minmax(130px, 38%) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs > div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); font-weight: 600; }
.specs dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Cesta */
.cart__layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; align-items: start; }
.cart__main { display: grid; gap: 24px; }
.cart__items, .cart__form, .cart__summary { padding: 26px 28px; }
.cart__items h2, .cart__form h2, .cart__summary h2 { font-size: 22px; margin-bottom: 14px; }
.cart__hint { color: var(--muted); margin-bottom: 18px; }
.cart__summary { position: sticky; top: 150px; display: grid; gap: 12px; }
.cart__summary h2 { margin-bottom: 2px; }
.cart__free { margin: 0; padding: 10px 14px; background: var(--green-soft); border-radius: 12px; color: #17592a; font-size: 14.5px; font-weight: 700; }
.cart__perks { display: grid; gap: 8px; margin-top: 4px; color: var(--muted); font-size: 14.5px; }
.cart__perks li { display: flex; align-items: center; gap: 8px; }
.cart__empty { display: grid; justify-items: center; gap: 8px; padding: 56px 24px; text-align: center; }
.cart__empty > .icon { width: 56px; height: 56px; color: var(--red); stroke-width: 1.3; }
.cart__empty h2 { font-size: 24px; }
.cart__empty .btn { margin-top: 8px; }

.cart-list li {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) auto auto 40px;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.cart-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-list img { width: 84px; height: 84px; object-fit: contain; border-radius: 10px; }
.cart-list__name { color: var(--ink); font-weight: 700; line-height: 1.3; }
.cart-list__meta { display: block; color: var(--muted); font-size: 13.5px; font-weight: 500; margin-top: 3px; }
.cart-list__total { min-width: 84px; font-family: var(--font-display); font-weight: 700; font-size: 19px; text-align: right; white-space: nowrap; }
.cart-list__remove { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); }
.cart-list__remove:hover { background: var(--red-soft); color: var(--red); }

.totals { margin: 0; }
.totals > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; }
.totals dd { margin: 0; font-weight: 700; }
.totals__total { margin-top: 4px; padding-top: 14px !important; border-top: 1px solid var(--line); }
.totals__total dt { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.totals__total dt small { color: var(--muted); font-family: var(--font-body); font-size: 13px; font-weight: 500; }
.totals__total dd { color: var(--red); font-family: var(--font-display); font-size: 27px; }

/* Sobre nosotros */
.page-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: center; margin-bottom: 64px; }
.page-hero .lead-text { margin-bottom: 0; }
.page-hero__img, .split__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 64px; }
.split--reverse .split__text { order: 2; }
.split__text p { font-size: 17px; }
.values { margin-bottom: 64px; }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.values__grid li { padding: 26px 24px; }
.values__grid .icon { width: 42px; height: 42px; color: var(--red); stroke-width: 1.4; margin-bottom: 14px; }
.values__grid h3 { font-size: 19px; margin-bottom: 8px; }
.values__grid p { color: #3d3b39; font-size: 15.5px; }
.steps { display: grid; gap: 12px; margin-top: 22px; counter-reset: step; }
.steps li { position: relative; padding-left: 46px; counter-increment: step; }
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0; top: -2px;
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    background: var(--red);
    border-radius: 50%;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
}
.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px 32px;
    margin-top: 48px;
    padding: 34px 44px;
    background: var(--red);
    border-radius: var(--radius-lg);
    color: #fff;
}
.cta-band h2 { color: #fff; font-size: 28px; margin-bottom: 6px; }
.cta-band p { font-size: 17px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Preguntas frecuentes */
.faq-group { margin-bottom: 34px; }
.faq-group__title { font-size: 22px; margin-bottom: 12px; }
.faq { margin-bottom: 10px; border-radius: var(--radius); }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 22px;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--red); transition: transform .2s; }
.faq[open] summary .icon { transform: rotate(180deg); }
.faq p { margin: 0; padding: 0 22px 20px; color: #3d3b39; max-width: 780px; }

/* Contacto */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-cards li { display: flex; gap: 16px; padding: 20px 22px; }
.contact-cards .icon { width: 46px; height: 46px; padding: 11px; background: var(--red-soft); border-radius: 50%; color: var(--red); }
.contact-cards h2 { font-size: 18px; margin-bottom: 4px; }
.contact-cards p { margin: 0 0 2px; font-weight: 600; }
.contact-cards a { color: var(--ink); }
.contact-cards small { color: var(--muted); font-size: 14px; }
.contact__form { padding: 30px 32px; }
.contact__form > h2 { font-size: 24px; margin-bottom: 18px; }

/* Textos legales */
.legal__updated { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.legal { padding: 36px 44px; }
.legal h2 { font-size: 22px; margin: 34px 0 12px; }
.legal > h2:first-child, .legal > p:first-child + h2 { margin-top: 0; }
.legal > p:first-child { margin-bottom: 28px; }
.legal h3 { font-family: var(--font-body); font-weight: 800; font-size: 17px; margin: 22px 0 8px; }
.legal p, .legal li { color: #33312f; }
.legal ul, .legal ol { margin: 0 0 1em; padding-left: 22px; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--red); font-weight: 700; }
.legal a { text-decoration: underline; }
.legal .specs { margin-bottom: 1em; }
.model { margin: 0 0 1em; padding: 18px 22px; background: var(--bg); border: 1px dashed #cfcbc6; border-radius: 12px; }
code { padding: 1px 6px; background: var(--bg); border-radius: 6px; font-size: .92em; }

.table-wrap { margin: 0 0 1em; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--bg); font-weight: 800; white-space: nowrap; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.facts li { display: grid; gap: 2px; padding: 20px 22px; }
.facts .icon { width: 32px; height: 32px; color: var(--red); margin-bottom: 8px; }
.facts strong { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.facts span { color: var(--muted); font-size: 14.5px; }

/* 404 */
.notfound { display: grid; justify-items: center; gap: 6px; margin-top: 28px; padding: 52px 28px; text-align: center; }
.notfound img { width: 108px; height: auto; margin-bottom: 6px; }
.notfound__code { margin: 0; color: var(--red); font-family: var(--font-display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.notfound .page-title { margin-bottom: 8px; }
.notfound > p { max-width: 560px; }
.notfound__search { flex: none; width: min(100%, 460px); margin-top: 10px; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; }

/* ───────── Adaptación ───────── */
@media (max-width: 1180px) {
    .carousel__item { flex-basis: calc((100% - 48px) / 4); }
    .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mainnav__links a { font-size: 17px; padding-inline: 8px; }
    .header-action__label { display: none; }
    .promo { padding-inline: 40px; }
    .promo__img { width: 240px; margin-right: 0; }
}

@media (max-width: 1023px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .product-grid--related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .carousel__item { flex-basis: calc((100% - 32px) / 3); }
    .catalog { grid-template-columns: 240px minmax(0, 1fr); gap: 20px; }
    .about-card { grid-template-columns: 1fr; gap: 28px; padding: 32px; }
    .lead, .contact { grid-template-columns: 1fr; gap: 24px; }
    .cart__layout { grid-template-columns: 1fr; }
    .cart__main { display: contents; }
    .cart__items { order: 1; }
    .cart__summary { position: static; order: 2; }
    .cart__form { order: 3; }
    .values__grid { grid-template-columns: repeat(2, 1fr); }
    .page-hero, .split { gap: 28px; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__col--shop { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
    html { scroll-padding-top: 130px; }
    .section { margin-top: 44px; }
    .section__title { font-size: 24px; }

    .topbar__inner { grid-template-columns: 1fr; min-height: 32px; }
    .topbar__item { justify-content: center; font-size: 13.5px; }
    .topbar__item--mid, .topbar__item--end { display: none; }

    .burger { display: grid; }
    .site-header__main, .site-header.is-stuck .site-header__main { min-height: 64px; gap: 10px; }
    .logo { gap: 8px; margin-right: auto; }
    .logo img { height: 38px; }
    .logo__text { font-size: 25px; }
    .logo__text small { display: none; }
    .search--desktop { display: none; }
    .header-actions { gap: 10px; }
    .header-action__icon { width: 42px; height: 42px; }
    .header-action__icon .icon { width: 23px; height: 23px; }

    .mainnav__inner { min-height: 56px; }
    .catmenu, .mainnav__links { display: none; }
    .search--mobile { display: flex; max-width: none; height: 40px; border-color: #fff; background: #f4f3f2; }
    .search--mobile button { background: transparent; color: var(--red); }
    .search--mobile button:hover { background: transparent; }

    .hero__slide { min-height: 340px; }
    .hero__slide::after { background: linear-gradient(90deg, rgba(24, 24, 24, .7) 0%, rgba(24, 24, 24, .5) 46%, rgba(24, 24, 24, 0) 80%); }
    .hero__content { left: 56px; max-width: 50%; }

    .pills { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .pills li:last-child:nth-child(odd) { grid-column: 1 / -1; }

    .play-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 12px; }
    .play-grid li { flex: 0 0 calc((100% - 24px) / 3); }
    .play { font-size: 15.5px; }

    .promo { flex-direction: column; align-items: flex-start; margin-top: 44px; padding: 28px 24px 0; overflow: hidden; }
    .promo__text { font-size: 18px; }
    .promo__img { align-self: center; width: 220px; margin: 0 0 -34px; }

    .seo-text__cols { grid-template-columns: 1fr; gap: 20px; }

    .catalog { grid-template-columns: 1fr; }
    .catalog__side { grid-template-columns: 1fr 1fr; gap: 10px; }
    .filter { padding: 14px 16px; align-self: start; }
    .filter__title { font-size: 16.5px; }
    .side-note { display: none; }

    .product { grid-template-columns: 1fr; gap: 20px; }
    .product__media { padding: 16px; }
    .product-details { grid-template-columns: 1fr; margin-top: 24px; }
    .product-details__block { padding: 22px 20px; }

    .page-hero, .split { grid-template-columns: 1fr; margin-bottom: 44px; }
    .page-hero__img { order: -1; }
    .split--reverse .split__text { order: 0; }
    .values { margin-bottom: 44px; }
    .cta-band { padding: 28px 24px; }
    .legal { padding: 26px 20px; }
    .facts { grid-template-columns: 1fr; }
    .site-footer { margin-top: 56px; }
}

@media (max-width: 639px) {
    :root { --gutter: 16px; }

    /* En móvil el texto va sobre un fondo liso y la foto debajo, sin solaparse */
    .hero__slide { display: flex; flex-direction: column; aspect-ratio: auto; min-height: 0; background: var(--slide-bg, #5d6b55); }
    .hero__slide::after { display: none; }
    .hero__content { position: static; order: 0; max-width: none; padding: 26px 22px 6px; transform: none; }
    .hero__title { font-size: clamp(27px, 8vw, 40px); text-shadow: none; }
    .hero__text { max-width: none; text-shadow: none; }
    .hero__cta { margin-top: 16px; }
    .hero__img {
        position: relative;
        inset: auto;
        order: 1;
        height: auto;
        margin-top: auto;
        aspect-ratio: 3 / 2.15;
        object-position: 88% center;
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%);
        mask-image: linear-gradient(180deg, transparent 0%, #000 26%);
    }
    .hero .round-arrow { display: none; }
    .hero__dots button { width: 12px; height: 12px; }

    .product-grid, .product-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .carousel__track { gap: 10px; }
    .carousel__item { flex-basis: calc((100% - 10px) / 2.15); }
    .carousel .round-arrow { display: none; }
    .product-card__body { padding: 6px 10px 12px; }
    .product-card__title { font-size: 14.5px; }
    .price { font-size: 21px; }
    .price--xl { font-size: 34px; }
    .btn-cart { width: 40px; height: 40px; }
    .ship-free { font-size: 12.5px; white-space: nowrap; }
    .ship-free .icon { display: none; }
    .badge { font-size: 11.5px; padding-inline: 6px; }

    .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .cat-card { padding-inline: 8px; }
    .cat-card__media { width: 104px; }
    .cat-card__title { font-size: 17px; }
    .bar-title { font-size: 19px; }

    .about-card { padding: 24px 20px; }
    .about-card__features { font-size: 16px; }
    .about-card__features .icon { width: 34px; height: 34px; }
    .lead__form, .contact__form { padding: 22px 18px; }
    .form__row, .form__row--cp { grid-template-columns: 1fr; }
    .form__foot .btn { width: 100%; }

    .catalog__side { grid-template-columns: 1fr; }
    .catalog__bar { align-items: flex-start; flex-direction: column; }
    .sort { width: 100%; }
    .sort select { flex: 1; }

    .buybox { padding: 20px 18px; }
    .buybox__add { min-width: 0; }
    .specs > div { grid-template-columns: 1fr; gap: 2px; }

    .cart__items, .cart__form, .cart__summary { padding: 20px 18px; }
    .cart-list li { grid-template-columns: 64px minmax(0, 1fr) 40px; gap: 6px 12px; }
    .cart-list img { width: 64px; height: 64px; grid-row: span 2; }
    .cart-list__remove { grid-column: 3; grid-row: 1; }
    .cart-list .qty { grid-column: 2; grid-row: 2; justify-self: start; }
    .cart-list__total { grid-column: 3; grid-row: 2; min-width: 0; font-size: 17px; }

    .values__grid { grid-template-columns: 1fr; }
    .contact-cards li { padding: 16px 18px; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
    .site-footer__bottom { flex-direction: column; align-items: flex-start; }

    .cookie { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 18px; }
    .cookie__actions .btn { font-size: 14px; }
    .toast { left: 16px; right: 16px; bottom: 16px; transform: none; justify-content: space-between; animation: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
    .topbar, .site-header, .site-footer, .cookie, .toast, .drawer { display: none !important; }
    body { background: #fff; }
}
