/* Doopper — hoja de estilos */

@font-face {
    font-family: "Urbanist";
    src: url("/assets/fonts/urbanist-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --cream: #FCFAF2;
    --sand: #F6ECC8;
    --navy: #000F2E;
    --blue: #0067E5;
    --blue-dark: #0052B8;
    --blue-soft: #CCE2FF;
    --yellow: #FED200;
    --teal: #116973;
    --muted: #4A5378;
    --line: #E3DDC6;
    --white: #FFFFFF;
    --error: #B3261E;

    --radius: 20px;
    --radius-sm: 12px;
    --gutter: clamp(20px, 5vw, 72px);
    --wrap: 1320px;
    --header-h: 84px;
    --font: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    color-scheme: light only;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--navy);
    font: 500 1.0625rem/1.55 var(--font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1; letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
p { text-wrap: pretty; }

a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

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

.visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 16px; top: -80px; z-index: 200;
    padding: 12px 20px; background: var(--navy); color: var(--sand);
    border-radius: var(--radius-sm); text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 16px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }

.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--sand { background: var(--sand); }
.section--blue { background: var(--blue); color: var(--cream); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 56px); }
.section__head p { max-width: 46ch; color: var(--muted); }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.4; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; margin-bottom: 14px; font-size: .95rem; font-weight: 700; color: var(--blue); }

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

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 12px 30px;
    border: 2px solid transparent; border-radius: var(--radius);
    font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; text-align: center;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--dark { background: var(--navy); color: var(--sand); }
.btn--dark:hover { background: #0A2259; }
.btn--blue { background: var(--blue); color: var(--cream); }
.btn--blue:hover { background: var(--blue-dark); }
.btn--outline { border-color: currentColor; background: transparent; }
.btn--outline:hover { background: var(--navy); border-color: var(--navy); color: var(--sand); }
.btn--light { background: var(--cream); color: var(--navy); }
.btn--light:hover { background: var(--sand); }
.hero .btn--outline:hover, .section--blue .btn--outline:hover { background: var(--sand); border-color: var(--sand); color: var(--navy); }
.btn--sm { min-height: 42px; padding: 8px 20px; font-size: .98rem; border-radius: 16px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-btn { padding: 0; border: 0; background: none; text-decoration: underline; text-underline-offset: .18em; font-weight: 600; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.arrow-link::after { content: "→"; transition: transform .25s var(--ease); }
.arrow-link:hover::after { transform: translateX(5px); }

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

.site-header {
    position: sticky; top: 0; z-index: 60;
    background: var(--cream); color: var(--navy);
    transition: background-color .25s, color .25s, box-shadow .25s;
}
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line); }
.site-header__inner {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
    height: var(--header-h); padding-inline: var(--gutter);
}
.site-header__side { display: flex; align-items: center; gap: 28px; min-width: 0; }
.site-header__side--end { justify-content: flex-end; }

.nav { display: flex; gap: clamp(16px, 2vw, 30px); }
.nav a { font-weight: 700; font-size: 1.08rem; text-decoration: none; white-space: nowrap; padding-block: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .25s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { background-size: 100% 2px; }
.site-header__side--end .nav a { font-weight: 500; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo__mark {
    width: 26px; height: 36px; background: currentColor;
    -webkit-mask: url("/assets/img/logo-mark.png") center / contain no-repeat;
    mask: url("/assets/img/logo-mark.png") center / contain no-repeat;
}
.logo__word { font-size: 2.3rem; font-weight: 800; letter-spacing: -.045em; line-height: 1; padding-bottom: 5px; }

.cart-btn {
    position: relative; flex: none; display: grid; place-items: center;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--blue-soft); color: var(--navy); text-decoration: none;
    transition: transform .2s var(--ease), background-color .2s;
}
.cart-btn:hover { background: #B5D4FF; transform: scale(1.05); }
.cart-btn__count {
    position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px;
    display: grid; place-items: center; border-radius: 11px;
    background: var(--yellow); color: var(--navy); font-size: .8rem; font-weight: 800; line-height: 1;
}

.burger { display: none; width: 48px; height: 48px; margin-left: -12px; border: 0; background: none; border-radius: 50%; place-items: center; }
.burger__lines, .burger__lines::before, .burger__lines::after { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), background-color .2s; }
.burger__lines { position: relative; }
.burger__lines::before, .burger__lines::after { content: ""; position: absolute; left: 0; }
.burger__lines::before { top: -8px; }
.burger__lines::after { top: 8px; }
.burger[aria-expanded="true"] .burger__lines { background: transparent; }
.burger[aria-expanded="true"] .burger__lines::before { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines::after { transform: translateY(-8px) rotate(-45deg); }

/* En la portada la cabecera flota sobre la foto hasta que se hace scroll. */
.page-home .site-header { position: fixed; left: 0; right: 0; background: transparent; color: var(--sand); }
.page-home .site-header.is-stuck, .menu-open .site-header { background: var(--cream); color: var(--navy); }

.mobile-menu { position: fixed; inset: var(--header-h) 0 0; z-index: 55; overflow-y: auto; background: var(--cream); padding: 16px var(--gutter) 40px; }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a { padding: 12px 0; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.mobile-menu__nav a.mobile-menu__minor { font-size: 1.2rem; font-weight: 600; letter-spacing: 0; padding: 10px 0; }
.mobile-menu__nav a.mobile-menu__all { color: var(--blue); }
.mobile-menu__nav hr { width: 100%; margin: 16px 0; border: 0; border-top: 1px solid var(--line); }

/* ---------- Hero ---------- */

.hero {
    position: relative; isolation: isolate; display: flex; align-items: flex-end;
    min-height: min(100svh, 940px); color: var(--sand); background: #2B2218;
}
.hero { overflow: hidden; }
.hero__img { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
/* El vídeo (agua) y la mano comparten tamaño y encuadre para que encajen al píxel. */
.hero__layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.hero__hand { transform-origin: 100% 63%; }
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(0, 15, 46, .5) 0%, rgba(0, 15, 46, 0) 26%),
        linear-gradient(25deg, rgba(0, 15, 46, .78) 0%, rgba(0, 15, 46, .3) 46%, rgba(0, 15, 46, 0) 72%);
}
.hero__content { width: 100%; padding: calc(var(--header-h) + 64px) var(--gutter) clamp(48px, 9vh, 104px); }
.hero h1 { max-width: 11ch; }
.hero__sub { max-width: 34ch; margin: 22px 0 32px; font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.35; color: var(--cream); }

.hero__cue {
    position: absolute; left: 50%; bottom: 18px; display: grid; place-items: center;
    width: 48px; height: 48px; margin-left: -24px; border-radius: 50%; color: var(--sand);
}
.hero__cue:hover { background: rgba(252, 250, 242, .14); }

/* Movimiento del hero. --lift va de 0 a 1 con el scroll (main.js): la mano retira la botella
   llena y el chorro cae a la pila. Mientras tanto la mano se mece un poco, como al llenar. */
@media (prefers-reduced-motion: no-preference) {
    .hero__hand {
        translate: calc(var(--lift, 0) * 13%) calc(var(--lift, 0) * -8%);
        rotate: calc(var(--lift, 0) * -6deg);
        animation: hand-idle 4.8s ease-in-out infinite;
        will-change: transform, translate, rotate;
    }
    .hero__content > * { animation: hero-rise .9s var(--ease) both; }
    .hero__content > :nth-child(2) { animation-delay: .15s; }
    .hero__content > :nth-child(3) { animation-delay: .3s; }
    .hero__cue { opacity: calc(1 - var(--lift, 0) * 2); }
    .hero__cue svg { animation: hero-cue 2s ease-in-out 1.2s infinite; }
}
@keyframes hand-idle {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(-.7deg) translateY(-4px); }
}
@keyframes hero-rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes hero-cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

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

.page-head { padding-block: clamp(40px, 6vw, 88px) clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
.page-head p { max-width: 56ch; margin-top: 18px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: .95rem; color: var(--muted); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

/* ---------- Colecciones ---------- */

.collections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.collection {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    border-radius: var(--radius); background: var(--bg, var(--sand)); color: var(--navy); text-decoration: none;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.collection__head { padding: clamp(16px, 1.8vw, 26px) clamp(16px, 1.8vw, 26px) 0; }
.collection__name { display: block; font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.1; }
.collection__tag { display: block; margin-top: 6px; font-size: 1rem; line-height: 1.3; }
.collection img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s var(--ease); }
.collection__price { position: absolute; left: clamp(12px, 1.4vw, 20px); bottom: clamp(12px, 1.4vw, 20px); padding: 7px 14px; border-radius: 14px; background: var(--cream); font-size: .95rem; font-weight: 700; }
.collection:hover img { transform: scale(1.05); }
@media (min-width: 1001px) and (prefers-reduced-motion: no-preference) {
    .collection:nth-child(odd) { transform: rotate(-1.4deg); }
    .collection:nth-child(even) { transform: rotate(1.2deg) translateY(18px); }
    .collection:hover { transform: rotate(0) translateY(-6px); box-shadow: 0 24px 48px -24px rgba(0, 15, 46, .35); }
}

/* ---------- Productos ---------- */

.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(14px, 1.8vw, 28px); }
.product { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.product__media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--sand); aspect-ratio: 1; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product:hover .product__media img { transform: scale(1.05); }
.product__body { flex: 1; }
.product__name { font-size: 1.25rem; letter-spacing: -.01em; }
.product__name a { text-decoration: none; }
.product__name a:hover { text-decoration: underline; }
.product__short { margin-top: 6px; color: var(--muted); font-size: .98rem; line-height: 1.4; }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product__price { font-size: 1.15rem; font-weight: 700; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 4vw, 48px); }
.chip { padding: 9px 20px; border: 2px solid var(--navy); border-radius: 18px; font-weight: 700; text-decoration: none; transition: background-color .2s, color .2s; }
.chip:hover { background: var(--sand); }
.chip[aria-current="true"] { background: var(--navy); color: var(--sand); }

/* ---------- Bloques foto + texto ---------- */

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(28px, 7vw, 112px); }
.split--rev .split__media { order: 2; }
.split__media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.split__body { max-width: 560px; }
.split__body h2 { margin-bottom: 20px; }
.split__body p + p { margin-top: 14px; }
.split__body .btn-row, .split__body .arrow-link { margin-top: 30px; }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.duo__item { display: block; text-decoration: none; }
.duo__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); transition: transform .6s var(--ease); }
.duo__media { overflow: hidden; border-radius: var(--radius); }
.duo__item:hover img { transform: scale(1.04); }
.duo__item h3 { margin: 22px 0 10px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.duo__item p { max-width: 44ch; margin-bottom: 18px; color: var(--muted); }

/* ---------- Calculadora ---------- */

.calc { max-width: 760px; margin-inline: auto; }
.calc h2 { margin-bottom: 12px; }
.calc__label { display: block; margin: 36px 0 14px; font-size: 1.25rem; font-weight: 700; }
.calc__range { display: flex; align-items: center; gap: 20px; }
.calc__value { flex: none; min-width: 118px; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--white); box-shadow: 0 6px 20px -10px rgba(0, 15, 46, .3); font-weight: 700; text-align: center; }
input[type="range"] { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 36px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 14px; border-radius: 7px; background: var(--blue-soft); }
input[type="range"]::-moz-range-track { height: 14px; border-radius: 7px; background: var(--blue-soft); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 36px; height: 36px; margin-top: -11px; border: 12px solid var(--blue); border-radius: 50%; background: var(--cream); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 12px solid var(--blue); border-radius: 50%; background: var(--cream); }
.calc__price { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.calc .calc__price input { width: 120px; }
.calc__out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.calc__stat { padding: 22px 20px; border-radius: var(--radius); background: var(--white); }
.calc__stat strong { display: block; font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; }
.calc__stat span { display: block; margin-top: 8px; font-size: .98rem; line-height: 1.3; }
.calc__note { margin-top: 18px; font-size: .92rem; color: var(--muted); }

/* ---------- Ventajas ---------- */

.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.perk svg { width: 40px; height: 40px; margin-bottom: 16px; color: var(--blue); }
.perk h3 { font-size: 1.25rem; margin-bottom: 8px; }
.perk p { font-size: .98rem; color: var(--muted); line-height: 1.45; }

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

.faq { border-top: 2px solid var(--navy); }
.faq details { border-bottom: 2px solid var(--navy); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 700; line-height: 1.25; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 18px; height: 18px; background: linear-gradient(currentColor, currentColor) center / 100% 2.5px no-repeat, linear-gradient(currentColor, currentColor) center / 2.5px 100% no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__answer { max-width: 68ch; padding-bottom: 26px; color: #1B2748; }
.faq__answer p + p { margin-top: 12px; }
.faq-group + .faq-group { margin-top: clamp(40px, 6vw, 72px); }
.faq-group h2 { margin-bottom: 24px; font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ---------- Formularios ---------- */

.contact-block { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-block h2 { margin-bottom: 18px; }
.contact-list { display: grid; gap: 18px; margin-top: 32px; }
.contact-list dt { font-size: .92rem; font-weight: 700; color: var(--muted); }
.contact-list dd { font-size: 1.15rem; font-weight: 600; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.form-wrap { padding: clamp(22px, 3vw, 40px); border-radius: var(--radius); background: var(--white); }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-weight: 700; font-size: .98rem; }
.field__opt { font-weight: 500; color: var(--muted); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="number"], .field textarea, .field select, .calc__price input {
    width: 100%; min-height: 52px; padding: 12px 16px;
    border: 2px solid #CFC9B4; border-radius: var(--radius-sm); background: var(--cream);
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
.field input::placeholder { color: #8A8FA8; }
.field input:focus, .field textarea:focus, .field select:focus, .calc__price input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 103, 229, .18); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: .92rem; font-weight: 600; }
.field--trap { display: none; }
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue); }
.field--check label { font-weight: 500; }
.field--check .field__error { grid-column: 1 / -1; }
.form__legal { font-size: .85rem; line-height: 1.4; color: var(--muted); }
.form__alert { padding: 12px 16px; border-radius: var(--radius-sm); background: #FBE9E7; color: var(--error); font-weight: 700; }
.form .btn { justify-self: start; }
.form-success { display: grid; gap: 12px; justify-items: start; padding-block: 12px; }
.form-success h3 { margin-top: 8px; }

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

.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.pdp__media { position: sticky; top: calc(var(--header-h) + 20px); }
.pdp__media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.pdp h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.pdp__price { margin: 18px 0 6px; font-size: 1.9rem; font-weight: 800; letter-spacing: -.01em; }
.pdp__vat { font-size: .92rem; color: var(--muted); }
.pdp__short { margin: 22px 0 28px; font-size: 1.2rem; line-height: 1.4; }
.pdp__buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.pdp__buy select { min-height: 52px; padding: 0 40px 0 18px; border: 2px solid var(--navy); border-radius: var(--radius); background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23000F2E' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 16px center no-repeat; font-weight: 700; -webkit-appearance: none; appearance: none; }
.pdp__buy .btn { flex: 1; min-width: 200px; }
.pdp__notes { display: grid; gap: 10px; margin-top: 26px; font-size: .98rem; }
.pdp__notes li { display: flex; gap: 10px; }
.pdp__notes li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.3 3 3 6-6.4' fill='none' stroke='%23FCFAF2' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.pdp__desc { margin-top: 40px; padding-top: 32px; border-top: 2px solid var(--navy); }
.pdp__desc h2 { margin-bottom: 16px; font-size: 1.6rem; }
.pdp__desc p + p { margin-top: 12px; }
.specs { margin-top: 36px; }
.specs div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 700; }

/* ---------- Cesta ---------- */

.cart { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.cart-lines { border-top: 2px solid var(--navy); }
.cart-line { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 8px 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-line__img { grid-row: span 2; border-radius: var(--radius-sm); overflow: hidden; }
.cart-line__img img { width: 104px; height: 104px; object-fit: cover; }
.cart-line__name { font-size: 1.2rem; font-weight: 700; text-decoration: none; }
.cart-line__name:hover { text-decoration: underline; }
.cart-line__unit { display: block; font-size: .95rem; color: var(--muted); }
.cart-line__total { font-size: 1.15rem; font-weight: 700; text-align: right; white-space: nowrap; }
.cart-line__controls { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--navy); border-radius: 16px; overflow: hidden; }
.stepper button { width: 42px; height: 40px; border: 0; background: transparent; font-size: 1.3rem; font-weight: 700; line-height: 1; transition: background-color .2s; }
.stepper button:hover:not(:disabled) { background: var(--sand); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-summary { position: sticky; top: calc(var(--header-h) + 20px); padding: clamp(22px, 2.6vw, 34px); border-radius: var(--radius); background: var(--sand); }
.cart-summary h2 { margin-bottom: 20px; font-size: 1.6rem; }
.cart-summary dl div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.cart-summary .cart-summary__total { margin-top: 10px; padding-top: 16px; border-top: 2px solid var(--navy); font-size: 1.4rem; font-weight: 800; }
.cart-summary__hint { margin-top: 14px; font-size: .92rem; color: var(--muted); }
.cart-summary .btn { margin-top: 22px; }
.empty { display: grid; justify-items: start; gap: 18px; padding-block: clamp(24px, 5vw, 64px); max-width: 520px; }

.cart-summary__back { display: block; margin-top: 16px; text-align: center; font-weight: 600; }

/* ---------- Tramitar pedido ---------- */

.progress { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 22px; font-size: .98rem; font-weight: 600; color: var(--muted); counter-reset: paso; }
.progress li { display: flex; align-items: center; gap: 8px; counter-increment: paso; }
.progress li::before { content: counter(paso); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid currentColor; font-size: .85rem; font-weight: 800; }
.progress li + li { padding-left: 10px; }
.progress li[aria-current="step"] { color: var(--navy); }
.progress li[aria-current="step"]::before { background: var(--navy); border-color: var(--navy); color: var(--sand); }
.progress a { text-decoration: none; }
.progress a:hover { text-decoration: underline; }

.checkout { padding: clamp(22px, 3vw, 40px); border-radius: var(--radius); background: var(--white); gap: 20px; }
.checkout__group { display: grid; gap: 18px; min-width: 0; margin: 0; padding: 0 0 26px; border: 0; border-bottom: 1px solid var(--line); }
.checkout__group legend { padding: 0; margin-bottom: 18px; font-size: 1.4rem; font-weight: 700; letter-spacing: -.01em; }
.form__row--zip { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.field select {
    -webkit-appearance: none; appearance: none; padding-right: 44px;
    background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23000F2E' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 16px center no-repeat;
}
.field input[readonly] { background: #F1EDDF; color: var(--muted); }
.checkout__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 6px; }
.arrow-link--back::after { content: none; }
.arrow-link--back::before { content: "←"; transition: transform .25s var(--ease); }
.arrow-link--back:hover::before { transform: translateX(-5px); }

/* ---------- Pago con tarjeta (/pago) ---------- */

.pay-brands { display: flex; justify-content: flex-end; gap: 8px; margin: -10px 0 2px; padding: 0; list-style: none; }
.pay-brands img {
    display: block; width: 40px; height: 25px; padding: 2px 4px;
    background: var(--white); border: 1px solid var(--line); border-radius: 6px;
    filter: grayscale(1); opacity: .45;
    transition: filter .2s, opacity .2s, border-color .2s;
}
.pay-brands li.is-active img { filter: none; opacity: 1; border-color: var(--blue); }

.pay-alert { display: grid; gap: 4px; padding: 14px 18px; border-radius: var(--radius-sm); background: #FBE9E7; color: var(--error); }
.pay-alert[hidden] { display: none; }
.pay-alert strong { font-size: 1.05rem; }

.pay-btn { width: 100%; }
.pay-btn__spinner {
    width: 20px; height: 20px; border-radius: 50%;
    border: 3px solid rgba(252, 250, 242, .3); border-top-color: var(--sand);
    animation: pay-spin .8s linear infinite;
}
@keyframes pay-spin { to { transform: rotate(1turn); } }
.btn[disabled] { opacity: .8; pointer-events: none; }

.pay-methods { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 4px; font-size: .95rem; font-weight: 600; color: var(--muted); }
.pay-methods img { height: 25px; width: auto; padding: 2px 4px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }

.cart-summary__ship { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--navy); font-size: .95rem; }
.cart-summary__ship h3 { font-size: 1.05rem; }
.cart-summary__ship p { line-height: 1.5; }
.cart-summary__ship a { font-weight: 700; }

.mini-lines { display: grid; gap: 14px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(0, 15, 46, .18); }
.mini-lines li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.mini-lines img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.mini-lines span { font-weight: 700; line-height: 1.25; }
.mini-lines small { display: block; font-size: .92rem; font-weight: 500; color: var(--muted); }
.mini-lines strong { white-space: nowrap; }

.order-done { display: grid; gap: 28px; align-content: start; }
.order-done section { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.order-done h2 { margin-bottom: 10px; font-size: 1.4rem; }
.order-done address, .order-done p { max-width: 56ch; line-height: 1.6; overflow-wrap: anywhere; }

/* ---------- Texto largo y legal ---------- */

.prose { max-width: 76ch; }
.prose h2 { margin: 2.2em 0 .6em; font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.prose h3 { margin: 1.6em 0 .5em; font-size: 1.2rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--blue-dark); font-weight: 600; }
.prose__updated { margin-bottom: 2em; color: var(--muted); font-size: .98rem; }
.table-scroll { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.table-scroll table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .96rem; line-height: 1.4; }
.table-scroll th, .table-scroll td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-scroll tr:last-child > * { border-bottom: 0; }
.table-scroll thead th { background: var(--sand); font-weight: 700; }
.table-scroll tbody th { font-weight: 700; width: 30%; }
.box { padding: 22px 26px; border-radius: var(--radius); background: var(--sand); margin-bottom: 1.4em; }
.box p:last-child { margin-bottom: 0; }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.value { padding-top: 22px; border-top: 2px solid var(--navy); }
.value h3 { margin-bottom: 12px; }
.value p { color: #1B2748; }
.wide-img img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius); }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { max-width: 18ch; }

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

.site-footer { position: relative; margin-top: 80px; background: var(--navy); color: var(--sand); padding: 40px 0 28px; }
.site-footer__wave { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); width: 100%; height: 80px; color: var(--navy); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr 1.4fr; gap: 40px 32px; }
.site-footer__brand p { max-width: 28ch; margin-top: 16px; color: #C9C3A6; }
.site-footer__title { margin-bottom: 16px; font-size: 1.05rem; font-weight: 700; letter-spacing: 0; color: var(--cream); }
.site-footer ul { display: grid; gap: 9px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer address { line-height: 1.7; overflow-wrap: anywhere; }
.site-footer__hours { margin-top: 10px; color: #C9C3A6; font-size: .95rem; }
.site-footer .link-btn { font-weight: 500; text-decoration: none; text-align: left; }
.site-footer .link-btn:hover { text-decoration: underline; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(246, 236, 200, .22); font-size: .92rem; color: #C9C3A6; }

/* ---------- Avisos y cookies ---------- */

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; display: flex; align-items: center; gap: 16px; width: max-content; max-width: calc(100% - 32px); padding: 14px 14px 14px 22px; border-radius: var(--radius); background: var(--navy); color: var(--sand); box-shadow: 0 18px 40px -16px rgba(0, 15, 46, .55); transform: translateX(-50%); animation: toast-in .45s var(--ease) both; }
.toast--error { background: var(--error); color: var(--white); }
.toast a { font-weight: 700; white-space: nowrap; }
.toast__close { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: inherit; font-size: 1.3rem; line-height: 1; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 20px); } }

.cookie { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: min(460px, calc(100% - 40px)); padding: 24px; border-radius: var(--radius); background: var(--white); box-shadow: 0 24px 60px -20px rgba(0, 15, 46, .45), 0 0 0 1px rgba(0, 15, 46, .06); }
.cookie__title { margin-bottom: 10px; font-size: 1.3rem; }
.cookie p { font-size: .98rem; line-height: 1.45; }
.cookie__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; }
.cookie__row { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; line-height: 1.4; }
.cookie__row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); }
.cookie__row strong { display: block; }

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

.notfound { display: grid; justify-items: start; gap: 22px; padding-block: clamp(56px, 10vw, 140px); }
.notfound__code { font-size: clamp(5rem, 18vw, 12rem); font-weight: 800; line-height: .85; letter-spacing: -.05em; color: var(--blue); }

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

@media (max-width: 1180px) {
    .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .site-footer__brand { grid-column: 1 / -1; }
    .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
    :root { --header-h: 68px; }
    .nav { display: none; }
    .burger { display: grid; }
    .cart-btn { width: 46px; height: 46px; }
    .logo__word { font-size: 2rem; }
    .logo__mark { width: 22px; height: 31px; }
    .collections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split, .contact-block, .pdp, .cart { grid-template-columns: minmax(0, 1fr); }
    .split--rev .split__media { order: 0; }
    .split__media img { aspect-ratio: 4 / 3; }
    .pdp__media, .cart-summary { position: static; }
    .values { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
    body { font-size: 1rem; }
    .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .duo { grid-template-columns: minmax(0, 1fr); }
    .calc__out { grid-template-columns: minmax(0, 1fr); }
    .form__row { grid-template-columns: minmax(0, 1fr); }
    .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer { margin-top: 56px; }
    .site-footer__wave { height: 44px; }
    .hero { min-height: min(100svh, 760px); }
    .hero__layer { object-position: 68% center; }
    .wide-img img { aspect-ratio: 4 / 3; }
    .cookie { right: 12px; bottom: 12px; width: calc(100% - 24px); padding: 20px; }
    .specs div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

@media (max-width: 520px) {
    .btn-row .btn { flex: 1 1 100%; }
    .product__foot { flex-direction: column; align-items: stretch; gap: 8px; }
    .product__name { font-size: 1.08rem; }
    .product__short { font-size: .92rem; }
    .collection__tag { font-size: .9rem; }
    .collection__price { font-size: .85rem; padding: 6px 10px; }
    .perks { grid-template-columns: minmax(0, 1fr); }
    .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
    .cart-line { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px 14px; }
    .cart-line__img img { width: 76px; height: 76px; }
    .cart-line__img { grid-row: span 1; }
    .cart-line__controls { grid-column: 1 / -1; }
    .cart-line__name { font-size: 1.05rem; }
    .calc__range { flex-direction: column; align-items: stretch; gap: 10px; }
    .calc__value { align-self: flex-start; }
    .pdp__buy .btn { min-width: 0; }
    .toast { left: 16px; right: 16px; width: auto; max-width: none; transform: none; animation-name: toast-in-m; }
    @keyframes toast-in-m { from { opacity: 0; transform: translateY(20px); } }
}

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