/* ============================================================
   carassiu, hoja de estilos
   Paleta y tipografías extraídas del diseño original (Illustrator)
   ============================================================ */

/* ---------- Tipografías de marca ---------- */
@font-face {
  font-family: "Awesome Serif";
  src: url("../fonts/Awesome-Serif-VAR-VF.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Awesome Serif";
  src: url("../fonts/Awesome-Serif-Italic-VAR-VF.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-VF.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Italic-VF.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --green:   #00957e;
  --green-2: #0d9686;
  --orange:  #f59c14;
  --orange-bg: #fca838;
  --yellow:  #efbf22;
  --red:     #e54316;
  --cream:   #fffdfb;
  --brown:   #4d3420;

  --ink: var(--brown);

  --font-display: "Awesome Serif", Georgia, serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  --nav-h: 56px;
  --shadow-soft: 0 18px 40px -18px rgba(77, 52, 32, 0.45);
  --radius: 18px;
}

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 360;               /* Source Sans 3 pesa algo más que Myriad: un poco más fina */
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  /* Cursor personalizado: flor SVG de marca (BLANCA por defecto), pequeña */
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="22" viewBox="0 0 95.68 103.33"><path d="M15.6,51.58c-9.59,7.35-14.25,13.17-13.7,20.11.49,6.27,5.14,12.49,10.91,14.93,4.03,1.71,8.64,1.53,20.44-5.21,2.31,14.14,5.14,17.9,9.1,19.97,5.55,2.91,13.31,2.55,18.46-1.04,5.04-3.51,6.78-9.73,6.85-19.42,10.7,4.57,14.94,4.2,18.54,2.25,5.52-2.97,9.56-9.6,9.47-15.89-.1-6.95-5.28-12.31-15.5-18.73,12.61-10.48,14.38-15.14,13.82-19.49-.65-5.02-4.3-9.33-8.21-11.47-6.31-3.44-13.95-1.48-24.32,4.08-2.28-10.99-5.6-17.88-12.08-20.5-4.13-1.67-9.78-1.75-14.07.93-3.47,2.17-5.85,6.1-6.24,19.92-9.47-3.65-16.52-4.44-21.97-.76C3.42,23.76.18,28.39,0,33.45c-.15,4.39,2.05,8.86,15.6,18.12Z" fill="%23ffffff"/></svg>') 10 11, auto;
}
img { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
/* algunos componentes nuevos (checkout, carrito) ponen display:flex/grid en
   la misma clase que a veces se oculta con el atributo "hidden", sin esto,
   esa regla empataría en especificidad con el "display:none" por defecto
   del navegador y (según el orden) podría ganar la del componente */
[hidden] { display: none !important; }

/* ============================================================
   HERO
   ============================================================ */
/* main es el contenedor de referencia para el banner-overlay */
main { position: relative; }

.hero {
  position: relative;
  /* topada por arriba: en pantallas muy altas (p.ej. MacBook a pantalla
     completa) "100svh" sin límite dejaba un hueco enorme debajo del
     contenido, que tiene su propio alto máximo (ver .hero__stage) */
  min-height: clamp(600px, 100svh, 920px);
  padding: 22px clamp(16px, 4vw, 56px) 48px;
  overflow: hidden;
  background: var(--sea);   /* el desgarro de la arena revela el mar */
}

/* Fondo de la sección 1: imagen rectangular (tal cual la enviada) */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* imagen de fondo (fallback naranja por si falta el archivo) */
  background: var(--orange-bg) url("../img/fondo-seccion1.jpg") center center / cover no-repeat;
}

/* ---------- Navegación (píldora) ---------- */
.nav {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
  padding: 0 28px;
  background: var(--cream);
  border-radius: calc(var(--nav-h) / 2);
  box-shadow: var(--shadow-soft);
}
.nav__logo { flex: 0 0 auto; }
.nav__cart { flex: 0 0 auto; }
.nav__logo img { height: 22px; width: auto; }

.nav__menu {
  flex: 1 1 auto;        /* ocupa el hueco entre logo y carrito */
  display: flex;
  justify-content: center; /* centrado dentro de ese hueco */
  gap: clamp(16px, 2.6vw, 48px);
}
.nav__menu a {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(0.8rem, 1.12vw, 1.05rem);
  letter-spacing: 0.03em;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.nav__menu a:hover { color: var(--green); }

/* Botón de carrito (extremo derecho) */
.nav__cart {
  flex: 0 0 auto;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--cream);
  background: var(--green);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav__cart:hover { background: var(--green-2); transform: translateY(-1px); }
.nav__cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--red);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* Hamburguesa (oculta en escritorio) */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav__toggle span {
  width: 26px; height: 2.5px;
  background: var(--brown);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- Escenario / collage ---------- */
.hero__stage {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  min-height: clamp(520px, 72vh, 720px);
  transform: scale(0.9);   /* conjunto un poco más pequeño, posiciones relativas intactas */
  transform-origin: center;
}

.hero__center {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: min(560px, 70%);
  text-align: center;
  z-index: 10;
}
.hero__title {
  margin: 0 auto 16px;
  /* escala del SVG: el título ocupa ~29% del ancho del lienzo (402/1367) */
  width: clamp(240px, 30vw, 400px);
}
.hero__title img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(77, 52, 32, 0.18));
}
.hero__tagline {
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(0.68rem, 1.02vw, 0.92rem);
  line-height: 1.3;
  letter-spacing: 0.16em;
  margin: 0;
  color: var(--cream);
  text-shadow: 0 2px 10px rgba(77, 52, 32, 0.25);
}

/* ---------- Fotos del collage ---------- */
.photo {
  position: absolute;
  margin: 0;
  z-index: 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--cream);
  /* 'rotate' va aparte de 'transform', así el hover (scale) no lo pisa */
  transition: scale 0.35s ease, box-shadow 0.35s ease;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo:hover {
  scale: 1.04;                 /* hover sutil, sin pasar al frente */
  box-shadow: 0 22px 46px -18px rgba(77, 52, 32, 0.5);
}

.photo--1 { left: -2%;    top: 21%;  width: 19%; rotate: -4deg; }
.photo--2 { left: 9%;   top: 52%;  width: 15%; rotate:  3deg; }
/* Las dos de la derecha, un poco superpuestas */
.photo--3 { right: 1%;   top: 5%;   width: 17%; rotate:  3deg; z-index: 5; }  /* arriba, más a la derecha, detrás */
.photo--4 { right: 6%;   top: 45%;  width: 17%; rotate: -3deg; z-index: 6; aspect-ratio: 4 / 5; }  /* delante, menos alargada */

/* ---------- Indicador de scroll ---------- */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
}

/* ============================================================
   SECCIÓN 2 · BANNER ONDULADO + PRODUCTOS (fondo mar)
   ============================================================ */
:root {
  --sea:      #90cef1;
  --sea-deep: #164a97;
}

/* ---------- Banner ondulado scrolling (overlay en la unión sección 1 ↔ 2) ---------- */
.wave-banner {
  position: absolute;
  top: -1px;             /* punto medio: tapa la unión sin bajar de más */
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 50;           /* por encima de arena y mar */
  overflow: hidden;
  height: 150px;
  display: flex;
  align-items: center;
  background: transparent;
  pointer-events: none;
}
.wave-banner__track {
  display: flex;
  flex: none;
  will-change: transform;
}
.wave-banner__svg { display: block; flex: none; }
.wave-banner__text {
  fill: var(--sea-deep);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  /* el valor real (y el ajuste vertical para Safari) lo pone wave-banner.js
     al generar el SVG, con detección de Safari por user agent y calibrable
     en caliente con ?wavedy=N en la URL */
  dominant-baseline: middle;
}

/* ---------- Fondo mar ---------- */
.products {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: clamp(60px, 90vw, 600px);
  padding: clamp(50px, 7vw, 80px) 0 clamp(0px, 2vw, 10px);
  background: var(--sea);
}
/* Espuma (formas orgánicas blancas) al doble de tamaño y 23% de opacidad */
.products::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/fondo-espuma.svg") center center / 200% auto no-repeat;
  opacity: 0.23;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Carrusel rotatorio (bucle de 3 posiciones) ---------- */
.carousel {
  --arrow-x: clamp(312px, 27vw, 365px);  /* distancia de las flechas al centro */
  position: relative;
  z-index: 1;            /* sobre la espuma */
  width: 100%;
  display: flex;
  justify-content: center;
}
.carousel__stage {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 440px;
}

/* Flechas, absolutas, a una distancia fija del centro (nunca solapan las tarjetas) */
.carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--sea-deep);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.carousel__arrow--prev { left: 50%; transform: translate(calc(-50% - var(--arrow-x)), -50%); }
.carousel__arrow--next { left: 50%; transform: translate(calc(-50% + var(--arrow-x)), -50%); }
/* hover sutil: solo un leve tinte, sin escala ni cambio de sombra */
.carousel__arrow:hover { background-color: #eaf4fb; }
.carousel__arrow:active { background-color: #dcebf6; }

/* ---------- Tarjetas de producto ---------- */
.pcard {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  aspect-ratio: 1 / 1;        /* tarjeta cuadrada */
  background: var(--cream);
  border-radius: 22px;
  padding: 22px 22px 22px;
  text-align: center;
  box-shadow: 0 0 32px rgba(31, 35, 71, 0.28);  /* sombra azulada del diseño */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;    /* contenido centrado, con margen a los bordes */
  gap: 8px;
  /* transform base + posición por slot lo da .pcard[data-slot] */
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

/* Posiciones del bucle */
.pcard[data-slot="0"] { transform: translate(-50%, -50%) translateX(-185px) scale(0.82); z-index: 1; }  /* izquierda, detrás */
.pcard[data-slot="1"] { transform: translate(-50%, -50%) translateX(0)      scale(1.12); z-index: 3; }  /* centro, encima */
.pcard[data-slot="2"] { transform: translate(-50%, -50%) translateX(185px)  scale(0.82); z-index: 1; }  /* derecha, detrás */

.pcard__media {
  width: 100%;
  height: 142px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.pcard__media img {
  max-width: 104%;               /* imagen un poco más grande */
  max-height: 116%;
  object-fit: contain;
  object-position: bottom center;
}
.pcard__pill {
  font-family: var(--font-body);
  font-size: 0.82rem;            /* pills un poco más grandes */
  font-weight: 500;
  text-transform: uppercase;     /* [VER PRODUCTO] / [MUY PRONTO...] */
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px 20px;
  border-radius: 999px;
  white-space: nowrap;
}
.pcard__pill--soon { background: var(--orange); }
.pcard__pill--buy  { background: var(--red); transition: transform 0.2s ease, filter 0.2s ease; }
.pcard__pill--buy:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* Título (mismo estilo en todas: Awesome Serif, rojo, mayúsculas) */
.pcard__title--brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--red);
}
.pcard__price {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sea-deep);
}
/* Tarjeta principal: el título "BEFORSUN 50+" sube un poco → más aire con el precio */
.pcard--feature .pcard__title--brand { margin-top: -7px; }
.pcard--feature .pcard__price { margin-top: 2px; }

/* Tarjeta BEFORSUN: la imagen sobresale por arriba */
.pcard--feature .pcard__media {
  height: 172px;
  margin-top: -14px;            /* bajada más (era -22px, ahora -14px) */
}

/* Tarjetas "coming soon", producto en gris */
.pcard--soon .pcard__media img {
  filter: grayscale(1) brightness(1.03) opacity(0.92);
}

/* Pececito scroll-animado (overlay, no interactúa con nada) */
.swim-fish {
  position: fixed;
  top: 0;
  left: 0;
  /* la Y en móvil se fija con "top" (ver JS): con position:fixed ese "top"
     no serviría de nada, así que ahí se pasa a absolute más abajo */
  z-index: 60;
  width: clamp(115px, 11.5vw, 178px);
  height: auto;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}

/* ============================================================
   SECCIÓN 3 · NUESTRO ORIGEN
   ============================================================ */
.origin {
  position: relative;
  /* sección un poco más estrecha; imagen subida para no ver el límite superior de la foto */
  padding: clamp(24px, 3.5vw, 60px) clamp(16px, 4vw, 56px);
  background: #bfe3f3 url("../img/s3-fondo.jpg") center -22px / cover no-repeat;
}
.origin__canvas {
  container-type: inline-size;          /* base para las unidades cqw */
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  aspect-ratio: 1365.87 / 747.23;       /* mismo lienzo que el SVG */
}

/* Titular entrelazado (palabras en sus coords exactas del SVG) */
.origin__title { margin: 0; }
.ot {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 5.5cqw;                     /* 75.2 / 1365.87 */
  line-height: 1;
  white-space: nowrap;
  color: var(--cream);
  text-shadow: 0 2px 14px rgba(31, 35, 71, 0.28);
}
.ot em { font-style: italic; font-weight: 700; }   /* Italic Bold Tall */
.ot--belleza { left: 35.3%; top: 29.4%; }
.ot--que     { left: 56.5%; top: 40.2%; }
.ot--cuida   { left: 43.3%; top: 51.0%; }
.ot--mar     { left: 35.3%; top: 61.8%; }

/* Lema "nuestro origen" (contorno SVG curvo) */
.origin__label {
  position: absolute;
  left: 27%;
  top: 13.5%;
  width: 11%;
  height: auto;
  filter: drop-shadow(0 2px 10px rgba(31, 35, 71, 0.28));
}

/* Pills (foto → blanco con texto al hover) */
.opill {
  position: absolute;
  margin: 0;
  height: 8.87%;                         /* 66.25 / 747.23 */
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 10px 26px -12px rgba(31, 35, 71, 0.5);
  outline: none;
}
.opill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.18);          /* zoom dentro del mismo recipiente */
  transition: opacity 0.3s ease;
}
/* la 2ª foto: mostrar el centro (no la parte de arriba) */
.opill--2 img { object-position: center 68%; }
/* comprometida con el impacto (foto del stick en la roca): el zoom parte de la base y se ve el stick entero */
.opill--1 img { object-position: center 80%; transform-origin: center bottom; }
.opill figcaption {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 3% 9%;
  background: var(--cream);
  color: var(--sea-deep);
  font-family: var(--font-body);
  font-size: 0.92cqw;                    /* menor: las frases quedan en 2 líneas */
  font-weight: 440;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;             /* frases del hover en mayúsculas */
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.opill:hover img,
.opill:focus img { opacity: 0; }
.opill:hover figcaption,
.opill:focus figcaption { opacity: 1; }

/* posiciones y anchos exactos de los 4 pills */
.opill--1 { left: 51.58%; top: 29.95%; width: 13.58%; }  /* comprometida, alargada, borde der. alineado con buceadora */
.opill--2 { left: 35.24%; top: 40.78%; width: 20.46%; }  /* farmacéutica (ancha) */
.opill--3 { left: 35.22%; top: 52.01%; width: 7.01%;  }  /* amante del mar */
.opill--4 { left: 57.38%; top: 62.85%; width: 7.78%;  }  /* buceadora */

/* ============================================================
   SECCIÓN 4 · MISIÓN / VISIÓN
   ============================================================ */
.values {
  position: relative;
  z-index: 2;                       /* se superpone a la sección 3 */
  margin-top: -7vw;                 /* sube más para que la onda tape el corte recto */
  padding: clamp(64px, 8vw, 128px) clamp(16px, 4vw, 56px) clamp(20px, 3vw, 52px);
  background: transparent;          /* el panel ondulado es la imagen de fondo */
  overflow: hidden;                 /* la mano queda cortada por el límite del apartado */
  border-bottom-left-radius: clamp(30px, 4vw, 70px);   /* esquinas inferiores redondeadas */
  border-bottom-right-radius: clamp(30px, 4vw, 70px);
}
/* Panel azul con borde superior ONDULADO (detrás de todo) */
.values__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;      /* la onda queda en el borde superior */
  pointer-events: none;
  z-index: 0;
}
/* espuma (puntitos blancos) */
.values__foam {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.63;
  pointer-events: none;
  z-index: 1;
}
.values__canvas {
  container-type: inline-size;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1010px;
  margin: 0 auto;
  aspect-ratio: 1402.87 / 738.3;
}

/* Rejilla 2×2 (coords exactas del SVG) */
.values__grid {
  position: absolute;
  left: 31.66%;
  top: 18.67%;
  width: 34.07%;
  aspect-ratio: 1 / 1;
  transform: scale(1.1);            /* 10% más grande, centrado */
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  box-shadow: 0 18px 44px -22px rgba(31, 35, 71, 0.5);
}
.vcell {
  position: relative;
  display: grid;
  place-items: center;
  padding: 11%;
  text-align: center;
}
.vcell--coral  { background: var(--green-2); }
.vcell--mision { background: var(--cream); }
.vcell--vision { background: var(--cream); }
.vcell--flores { background: var(--sea-deep); }
.vcell--coral img  { width: 60%; }   /* coral más grande */
.vcell--flores img { width: 52%; }

.vcell__title {
  margin: 0 0 3.5% 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: 'wght' 700, 'hght' 1000;  /* Bold Extra Tall */
  font-size: 1.95cqw;               /* un poco más grande */
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--red);
}
.vcell__text {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.02cqw;               /* un puntito más grande */
  line-height: 1.12;                /* interlineado más ajustado */
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--red);
  transform: translateY(-0.5cqw);   /* sube un poquito, sin mover la celda */
}

/* Foto del producto (rotada, como en el SVG) */
.values__product {
  position: absolute;
  left: 69%;
  top: 23%;
  width: 35%;
  height: auto;
  transform: rotate(-15deg) scale(1.1);   /* 10% más grande */
  transform-origin: center;
  filter: drop-shadow(0 16px 30px rgba(31, 35, 71, 0.22));
}

/* ============================================================
   SECCIÓN 5 · CARASSIU Y VOSOTROS
   ============================================================ */
.community {
  position: relative;
  z-index: 1;
  margin-top: -3vw;
  aspect-ratio: 1369 / 620;
  background: url("../img/s5-fondo.webp") center 97% / 100% auto no-repeat #fff;
  overflow: hidden;
}
/* elementos nítidos sobre los pixelados del fondo (mismas posiciones) */
.community__title {
  position: absolute;
  z-index: 1;
  left: 26%;
  top: 28%;
  width: clamp(120px, 12vw, 160px);
  transform: translate(-50%, -50%);
}
.community__flower {
  position: absolute;
  z-index: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.community__flower--1 { left: 74.5%; top: 29%; width: clamp(74px, 8.6vw, 150px); }
.community__flower--2 { left: 24.7%; top: 58%; width: clamp(58px, 6.8vw, 120px); }

/* Fila de reels (anclada ARRIBA, bajadas y más grandes en desktop) */
.community__row {
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(50px, 5vw, 76px);       /* subida un poco: los botones de abajo se veían cortados */
  bottom: auto;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(14px, 3vw, 42px);
}
.reel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* el central queda arriba del todo; los laterales bajan un poco respecto a él */
.reel-item:not(.reel-item--center) { margin-top: clamp(58px, 8vw, 104px); }

/* Marco de móvil (reel), más grandes en desktop */
.reel {
  position: relative;
  z-index: 1;
  width: clamp(160px, 14vw, 195px);    /* más grandes aún (12vw → 14vw, 165 → 195px) */
  aspect-ratio: 9 / 19;
  background: #15171c;
  border-radius: clamp(18px, 2.2vw, 30px);
  padding: clamp(5px, 0.7vw, 9px);
  box-shadow: 0 20px 46px -20px rgba(31, 35, 71, 0.5);
}
.reel-item--center .reel { width: clamp(185px, 16.5vw, 230px); }  /* más grande (14vw → 16.5vw, 190 → 230px) */
.reel__screen {
  width: 100%;
  height: 100%;
  border-radius: clamp(11px, 1.5vw, 20px);
  overflow: hidden;                    /* el vídeo no se sale del marco */
  background: #1a1a1a;
}
.reel__screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Botones de contacto (más grandes en desktop) */
.reel__btn {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(44px, 4.2vw, 50px);     /* más grandes (3.4vw → 4.2vw, 42 → 50px) */
  height: clamp(44px, 4.2vw, 50px);
  margin-top: calc(clamp(44px, 4.2vw, 50px) / -2);  /* ajustado */
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(244, 154, 19, 0.85);
  transition: background-color 0.2s ease;  /* hover sin movimiento */
}
.reel__btn:hover { background: #e08a0c; }

/* ============================================================
   SECCIÓN 6 · RESEÑAS
   ============================================================ */
.reviews {
  position: relative;
  background: #ffffff;
  padding: clamp(28px, 4vw, 60px) clamp(16px, 4vw, 56px) clamp(48px, 7vw, 96px);  /* menos espacio superior */
}
.reviews__title {
  position: absolute;
  z-index: 6;
  top: clamp(2px, 0.4vw, 10px);
  left: 9%;
  width: clamp(120px, 12vw, 160px);
  transform: translateX(0);
}
/* Flechas de reseñas, solo móvil (ocultas en escritorio) */
.reviews__arrow {
  display: none;
  position: absolute;
  top: 58%;
  z-index: 3;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #2f4e8e;
  color: #fff;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}
.reviews__arrow--prev { left: 10px; }
.reviews__arrow--next { right: 10px; }
.reviews__track {
  display: flex;
  align-items: stretch;               /* todas las reseñas con la misma altura */
  justify-content: center;
  gap: clamp(14px, 2vw, 32px);
  max-width: 860px;
  margin: clamp(26px, 4vw, 56px) auto 0;   /* menos espacio superior */
}
.review-card {
  flex: 0 0 auto;
  width: clamp(230px, 24vw, 320px);   /* las tres, mismo ancho y mismo alto */
  background: #2f4e8e;
  color: #fff;
  border-radius: 22px;
  padding: clamp(16px, 1.7vw, 24px) clamp(18px, 2vw, 28px);
  text-align: left;                   /* titular y texto a la izquierda */
  box-shadow: 0 18px 40px -22px rgba(31, 35, 71, 0.45);
}
.review-card__name {
  margin: 0 0 5px;
  text-align: center;                 /* nombre centrado */
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: 'wght' 700, 'hght' 1000;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.review-card__stars {
  display: flex;
  justify-content: center;            /* flores centradas */
  gap: clamp(3px, 0.4vw, 6px);
  margin-bottom: clamp(10px, 1.4vw, 18px);
}
.review-card__stars img { width: clamp(9px, 0.95vw, 13px); height: auto; }
.review-card__headline {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-weight: 430;              /* sin bold */
  font-size: 0.8rem;
}
.review-card__body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 390;
  font-size: 0.72rem;
  line-height: 1.4;
  opacity: 0.92;
}

/* Cursor blanco (flor) siempre, se ve bien sobre fondos oscuros */

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: -8vw;
  overflow: hidden;
  background: transparent;
  aspect-ratio: 16 / 9;
}
.footer__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.footer__links {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr auto;
  padding: clamp(10px, 2vw, 35px) clamp(50px, 7vw, 110px) clamp(60px, 8vw, 120px);
  pointer-events: none;
  font-family: var(--font-body);
  font-size: 13px;
  color: #fff;
}
.footer__links a {
  pointer-events: auto;
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
}
.footer__left {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vw, 16px);
  grid-column: 1;
  grid-row: 2;
  align-items: flex-start;
  justify-content: flex-end;
}
.footer__center {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  justify-self: center;
  justify-content: flex-end;
}
.footer__right {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vw, 16px);
  align-items: flex-end;
  justify-content: flex-end;
}
.footer__right a {
  pointer-events: auto;
}
.footer__bottom-left {
  display: none;
}
.footer__bottom-left a {
  pointer-events: auto;
}
.footer__bottom-right {
  display: none;
}
.footer__bottom-right a {
  pointer-events: auto;
}
.footer__logo {
  width: clamp(35px, 4vw, 50px);
  height: auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  /* ---------- BANNER móvil: solo el texto bajado, fondo en su sitio ---------- */
  .wave-banner { top: -1px; }
  .wave-banner__text { transform: translateY(4px); font-size: 15px; }

  .nav { display: flex; justify-content: space-between; }
  .nav__toggle { display: flex; order: 3; }
  .nav__logo { margin-right: auto; order: 0; }   /* empuja carrito + hamburguesa a la derecha */
  .nav__cart { order: 2; width: 40px; height: 40px; }

  .nav__menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 26px;
    background: var(--cream);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }
  .nav.is-open .nav__menu {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  /* Hero móvil: SIN espacio sobrante (no 100svh), título centrado entre fotos */
  .hero { min-height: auto; padding-bottom: 8px; }   /* elimina el hueco gigante (era 100svh) */
  .hero__stage { position: relative; display: block; min-height: clamp(310px, 84vw, 400px); transform: none; }
  .hero__center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, 88%); margin: 0; }  /* en medio de las imágenes */
  .photo {
    position: absolute;
    width: 20vw !important;
    max-width: 92px;
    aspect-ratio: 4 / 5 !important;   /* altura reservada → no colapsa con imagen lazy, solape predecible */
    height: auto;
    rotate: 0deg !important;
    margin: 0;
    z-index: 1;                 /* detrás del texto (hero__center z-index 10) */
    opacity: 0.92;
    box-shadow: 0 10px 22px -12px rgba(77, 52, 32, 0.45);
  }
  .photo:hover { scale: none; box-shadow: 0 10px 22px -12px rgba(77, 52, 32, 0.45); }  /* sin hover en móvil */
  .photo--1 { left: 0%;  right: auto; top: 7%; }
  .photo--2 { left: 3%;  right: auto; top: 70%; }
  .photo--3 { right: 10%; left: auto; top: 5%; }    /* derecha-superior movida a la izquierda */
  .photo--4 { right: 1%;  left: auto; top: 24%; bottom: auto; z-index: 2; }  /* derecha-inferior subida → se solapa con photo--3 */
  .hero__scroll { display: none; }

  /* ---------- SECCIÓN 2 · Carrusel de productos (más pequeño, no se corta) ---------- */
  /* el fondo se alarga un poco y se solapa con la siguiente sección: evita la
     línea visible que dejaba el redondeo de subpíxel entre ambos fondos */
  .products { margin-bottom: -3px; padding-bottom: calc(clamp(0px, 2vw, 10px) + 3px); }
  /* la espuma decorativa no llegaba a cubrir hasta abajo en pantallas altas y estrechas */
  .products::before { background-size: 260% auto; }
  /* el carrusel entero baja un poco dentro de la sección: el fondo (color +
     espuma) no cambia, solo se extiende un poco más para acompañarlo */
  .carousel { --arrow-x: clamp(130px, 40vw, 165px); margin-top: 10px; }
  .carousel__stage { max-width: 100%; height: clamp(280px, 76vw, 354px); }
  .carousel__arrow { width: 36px; height: 36px; }
  /* la tarjeta principal (con precio + imagen más alta) necesita más alto que
     el cuadrado base para no comprimir su contenido; las "soon" no necesitan
     tanto, así que con aspect-ratio 1/1 quedaban más cortas: incómodo, porque
     entonces principal y secundarias no comparten ni alto ni forma. Se iguala
     todo al ratio que sí necesita la principal, y la secundaria centra su
     contenido (más corto) dentro de esa misma silueta, con aire de sobra */
  .pcard { width: clamp(140px, 43vw, 180px); aspect-ratio: 161 / 273; padding: 16px; }
  /* las dos de atrás más escondidas tras la principal (más pequeñas y juntas), pero sólidas */
  .pcard[data-slot="0"] { transform: translate(-50%, -50%) translateX(-20vw) scale(0.56); z-index: 1; }
  .pcard[data-slot="1"] { transform: translate(-50%, -50%) scale(0.85);       z-index: 3; }
  .pcard[data-slot="2"] { transform: translate(-50%, -50%) translateX(20vw)  scale(0.56); z-index: 1; }
  /* Bajar imagen de la tarjeta principal dentro de su espacio */
  .pcard--feature .pcard__media { margin-top: -12px; }
  /* precio y botón pegados al título (sin tocar título ni imagen): así el
     margen que queda bajo el botón iguala al de las tarjetas secundarias */
  .pcard--feature .pcard__price { margin-top: -3px; }
  /* el botón de añadir al carrito de la tarjeta principal, más pequeño para
     que quepa dentro del ancho reducido de la tarjeta en móvil */
  .pcard--feature .pcard__pill--buy { font-size: 0.63rem; padding: 6px 10px; }
  /* en la home hay más ancho libre que en la ficha de producto (ahí el
     carrusel entero va además escalado 0.85 por el wrapper .pdp-carousel):
     ahí sí puede crecer más, para acercarse al tamaño proporcional de las
     píldoras "muy pronto" de sus tarjetas vecinas */
  body:not(.page-producto) .pcard--feature .pcard__pill--buy { font-size: 0.76rem; padding: 8px 14px; }

  /* ---------- SECCIÓN 3 · Origen + pez pequeño + animación auto-hover en scroll ---------- */
  /* tamaño normal: NO se agranda el fondo (eso descentraba el bloque de la
     sección). En vez de eso, es la sección siguiente la que sube más por
     encima, para que su panel ondulado tape el sobrante de la foto */
  .origin { margin-top: 0; }
  /* la "línea azul clara" era el hueco transparente del SVG ondulado de la
     sección siguiente (su recorte no es un borde recto, deja resquicios
     donde se ve lo que hay detrás): con la foto ya terminada ahí, lo que
     asomaba era este color de respaldo (#bfe3f3, un azul distinto). Se iguala
     al crema del body: así el resquicio se confunde con el hueco ya existente
     entre secciones y no se nota ningún cambio de color */
  .origin { background-color: var(--cream); }
  /* sube y agranda título + texto + imágenes (pills) como un bloque */
  /* el bloque baja 3vw; el rótulo "nuestro origen" lo compensa para quedarse donde estaba */
  .origin__canvas { transform: translateY(-19.5vw) scale(2.09); transform-origin: top center; }
  /* "nuestro origen" es el único rótulo que NO debe crecer con el resto del
     bloque: se le aplica la escala inversa para que quede al tamaño de antes,
     sin mover su punto de anclaje (arriba-izquierda, igual que left/top) */
  .origin__label { transform: translateX(5px) translateY(calc(clamp(6px, 2.5vw, 14px) + 14px - 1.435vw)) scale(0.673); transform-origin: top left; }
  /* la foto se extiende bastante más por debajo, para que quede de sobra por
     detrás de la sección siguiente (no solo lo justo para cubrir el bloque) */
  .origin { padding-bottom: clamp(120px, 32vw, 175px); }
  /* Pez más grande en móvil (vía width: el transform lo controla el JS) */
  /* en móvil, pegado a un punto FIJO DE LA PÁGINA (no de la pantalla): con
     position:absolute el propio scroll ya lo sube/baja con el documento; el
     JS solo fija "top" una vez y anima la X con transform */
  .swim-fish { width: clamp(76px, 20vw, 108px); position: absolute; }
  /* Sin hover en móvil: los pills usan animación automática según scroll (JS) */
  .opill:hover img,
  .opill:focus img,
  .opill.is-hovered img { opacity: 0; }
  .opill:hover figcaption,
  .opill:focus figcaption,
  .opill.is-hovered figcaption { opacity: 1; }

  /* ---------- SECCIÓN 4 · Misión/Visión (móvil): cuadrícula subida y agrandada ---------- */
  /* solapa bastante más a la sección anterior: la foto de "origen" (ya
     alargada con su padding-bottom) queda claramente por detrás de esta
     sección, con margen de sobra */
  .values { margin-top: -14vw; }
  /* sección un poco más alta (solo más espacio abajo: no toca el solapamiento
     de arriba con "origen", fijado por margin-top de arriba) */
  .values { padding-bottom: clamp(110px, 30vw, 150px); }
  /* la rejilla y la foto-mano dejan de compartir el lienzo de proporción fija
     (deja de ser su ancestro posicionado) para poder colocarlas cada una con
     su propia lógica dentro de la sección ya más alta */
  .values__canvas { position: static; }
  /* rejilla centrada verticalmente en la sección (antes fija arriba) */
  .values__grid { top: 50%; transform: translateY(-50%) scale(1.88); }
  /* textos de misión y visión más grandes (en cqw del lienzo, escalados con la rejilla) */
  .vcell { padding: 8.5%; }
  .vcell__title { font-size: 2cqw; }
  /* el texto sube un poco dentro de su celda sin mover el título (transform no altera el flujo) */
  .vcell__text { font-size: 1.17cqw; transform: translateY(-1.9cqw); }
  /* la foto-mano no se mueve: se ancla al margen inferior con el mismo hueco
     que tenía antes, para que crezca pegada al nuevo borde inferior */
  .values__product { top: auto; bottom: 0.3vw; }

  /* ---------- SECCIÓN 5 · Pegada bajo s4 + móviles grandes y subidos + flores visibles ---------- */
  .community {
    aspect-ratio: auto;
    min-height: 95vw;              /* espacio hacia reseñas */
    margin-top: -10vw;             /* sube: queda debajo del fondo redondeado de la sección 4 */
    background: url("../img/s5-fondo.webp") center 0% / 100% auto no-repeat #fff;
  }
  /* reels un poco más pequeños */
  .reel { width: clamp(75px, 20vw, 110px); }
  .reel-item--center .reel { width: clamp(88px, 23vw, 128px); }
  .reel-item:not(.reel-item--center) { margin-top: clamp(14px, 4vw, 28px); }
  .community__row {
    top: clamp(60px, 16vw, 98px);   /* un poco más subidos, sin tocar el fondo */
    transform: none;
  }
  /* título a la izquierda, bajado un poco; flores también bajadas (menos que título) */
  .community__title { left: 14%; top: 22%; width: clamp(70px, 18vw, 100px); }
  .community__flower--1 { left: 76%; top: clamp(70px, 20vw, 125px); width: clamp(46px, 13vw, 72px); }
  .community__flower--2 { left: 15%; top: clamp(105px, 32vw, 160px); width: clamp(40px, 11vw, 62px); }

  /* ---------- SECCIÓN 6 · Reseñas: pegada, SOLO una visible, flechas centradas con reseña ---------- */
  /* sección entera (título + reseñas) subida un poco; el fondo de .community no se toca */
  .reviews { padding-top: 14px; margin-top: -9vw; position: relative; z-index: 2; }
  .reviews__title { left: clamp(30px, 3vw, 30px); top: clamp(-8px, -1.5vw, 0px); width: clamp(70px, 20vw, 130px); transform: translateX(0); }
  .reviews__track { margin-top: clamp(20px, 5vw, 40px); }
  .reviews__arrow { display: grid; top: 40%; width: 32px; height: 32px; }
  .reviews__arrow--prev { left: 7vw; }    /* hacia el centro, sin tapar la reseña */
  .reviews__arrow--next { right: 7vw; }
  .reviews__track {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20vw;                     /* separación grande → la siguiente reseña queda fuera de pantalla */
    padding: 0 18vw;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .reviews__track::-webkit-scrollbar { display: none; }
  .review-card {
    width: 64vw;                   /* una sola reseña visible y centrada */
    scroll-snap-align: center;
    padding: 18px 20px;
  }
  .review-card__name { font-size: 0.85rem; }
  .review-card__headline { font-size: 0.78rem; }
  .review-card__body { font-size: 0.7rem; }

  /* ---------- FOOTER (móvil): texto más pequeño, se veía muy sobrecargado ---------- */
  /* en móvil el padding compartido (pensado para pantallas anchas) dejaba el
     texto demasiado apretado al centro: aquí vuelve a abrirse hacia los bordes */
  .footer__links { font-size: 10px; padding-inline: clamp(14px, 4vw, 28px); }
  .footer__center { font-size: 8.5px; }
  /* el párrafo es una sola frase larga que en móvil envuelve en dos líneas;
     sin esto la primera línea (más corta) queda a la izquierda del bloque
     centrado en vez de compartir el mismo centro que la segunda */
  .footer__center p { text-align: center; }
  /* fuerza el salto de línea entre "©2026." y "Todos los derechos
     reservados.": en el teléfono del usuario no estaba envolviendo solo */
  .footer__rights { display: block; }
  /* footer menos alto SOLO en la home: se recorta por arriba (menos aspect-
     ratio + fondo anclado abajo), no moviendo la caja entera hacia arriba */
  /* la sección de reseñas sube (menos alto ocupado): el footer crece para
     compensar ese hueco y que se vea más de su propio fondo */
  body:not(.page-producto) .footer { aspect-ratio: 16 / 9; }
  body:not(.page-producto) .footer__bg { object-position: center bottom; }
  /* legales (columna derecha) todavía más pequeños y alineados a la derecha */
  .footer__right { font-size: 8.5px; }
  .footer__right a { text-align: right; }
  /* con justify-content:flex-end (heredado) cada columna se ancla abajo, y al
     tener distinto número de líneas sus primeros enlaces quedaban a distinta
     altura; ancladas arriba, el primer enlace de cada columna queda a la
     misma altura */
  .footer__left, .footer__right { justify-content: flex-start; }

  /* el pez (position:absolute, sin ancestro posicionado) escapaba al bloque
     contenedor inicial y no quedaba recortado por overflow-x:hidden del
     body: al ser body el que lo recorta, necesita ser su propio contexto de
     posicionamiento para que ese overflow-x SÍ lo recorte de verdad (si no,
     en el móvil real se podía arrastrar la página entera hacia la derecha,
     dejando un margen/hueco enorme fuera del diseño) */
  html, body { overflow-x: hidden; }
  body { position: relative; }
}

/* ============================================================
   PÁGINAS DE CONTENIDO (legal, carrito, checkout)
   ============================================================ */
.legal-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 32px) clamp(16px, 4vw, 56px) 0;
}
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 8vw, 96px);
}
.legal-page__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--sea-deep);
  margin: 0 0 clamp(14px, 2vw, 20px);
}
.legal-page__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.2;
  color: var(--red);
  margin: clamp(24px, 3.5vw, 32px) 0 4px;
}
.legal-page__text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 16px;
}

/* Botón píldora reutilizado en carrito/checkout/legal, el mismo lenguaje
   visual que el "btn-add" del producto, pero definido aquí en el global
   porque estas páginas no cargan producto.css.
   display:inline-block + line-height (en vez de inline-flex + align-items)
   a propósito: varias reglas más específicas de este archivo fuerzan
   inline-block de todas formas (p.ej. .cart-page__continue), lo que
   descentraba el texto porque el centrado por flex nunca llegaba a
   aplicarse. line-height igual a la altura del contenido (40px - 2×10px
   de padding) centra el texto sin depender de si el elemento acaba
   siendo flex o no. */
.btn-add {
  display: inline-block;
  padding: 10px 24px;
  line-height: 20px;
  text-align: center;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.btn-add:hover { background: #c93a12; }
.btn-add:active { transform: scale(0.98); }

/* ---------- Carrito ---------- */
.cart-page { max-width: 760px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 8vw, 96px); }
.cart-page__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--sea-deep);
  margin: 0 0 clamp(24px, 4vw, 40px);
}
.cart-page__empty { text-align: center; padding: 40px 0; }
.cart-page__empty p { font-family: var(--font-body); color: var(--ink); margin-bottom: 20px; }
.cart-page__continue { display: inline-block; }

.cart-items { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}
.cart-item__image { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.cart-item__name { font-family: var(--font-display); font-weight: 700; margin: 0 0 4px; font-size: 0.95rem; color: var(--sea-deep); }
.cart-item__price { font-family: var(--font-body); font-size: 0.8rem; color: var(--ink); opacity: 0.7; margin: 0; }
.cart-item__qty { display: flex; align-items: center; gap: 8px; }
.qty__btn {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.6px solid var(--red);
  background: #fff;
  color: var(--red);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
  transition: opacity 0.2s ease;
}
.qty__btn:hover { opacity: 0.6; }
.cart-item__qty-value { min-width: 1.4em; text-align: center; font-family: var(--font-body); font-weight: 600; }
.cart-item__line-total { font-family: var(--font-display); font-weight: 700; color: var(--sea-deep); margin: 0; white-space: nowrap; }
.cart-item__remove {
  border: none; background: none; cursor: pointer;
  font-size: 1.3rem; line-height: 1; color: var(--ink); opacity: 0.5;
}
.cart-item__remove:hover { opacity: 1; color: var(--red); }

/* display:block (no flex) a propósito: un botón-enlace que fuese "item
   flex" con display bloqueado (blockification) hacía que en Safari solo
   la línea de texto quedara clicable/hoverable, no toda la píldora, con
   bloque + text-align el botón es un inline-block normal, sin ese lío. */
.cart-summary { display: block; padding-top: 16px; border-top: 1px solid rgba(0,0,0,0.08); text-align: right; }
.cart-summary__row { display: flex; justify-content: space-between; width: 100%; font-family: var(--font-display); font-size: 1.2rem; color: var(--sea-deep); margin-bottom: 8px; }
.cart-summary__shipping-note {
  font-family: var(--font-body); font-size: 0.78rem; color: var(--ink); opacity: 0.65;
  margin: 0 0 4px;
}
.cart-summary__free-shipping {
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; color: var(--green);
  margin: 0 0 8px;
}
/* Botón "Ir al pago" (reescrito desde cero, sin heredar de .btn-add). */
.cart-pay {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  letter-spacing: 0.02em;
  cursor: pointer;
  touch-action: manipulation;
}
.cart-pay:hover { background: #e08a0c; }
.cart-pay:active { transform: scale(0.98); }

/* El pie de página se sube con margin-top negativo (-8vw) para que su onda
   solape el final del contenido, y al ir después en el DOM se pintaba encima
   y se comía los clics de la parte baja de los botones del final de la página
   (era la causa de que "Ir al pago" solo respondiera en su parte alta). El
   contenido va por encima del pie. */
.legal-shell { position: relative; z-index: 2; }

/* Texto de los botones del carrito y el checkout en mayúsculas y subrayado,
   igual que los enlaces del menú (p.ej. [VER PRODUCTOS]), solo aquí, el
   resto de .btn-add del sitio (producto, legales) se queda como está. */
.cart-page__continue,
.checkout-submit,
.coupon-apply,
.pickup-point__open,
.withdrawal-form__submit {
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  letter-spacing: 0.02em;
}

/* ---------- Checkout ---------- */
.checkout-page { max-width: 1100px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 8vw, 96px); }
.checkout-page__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--sea-deep);
  margin: 0 0 clamp(24px, 4vw, 40px);
}
.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.checkout-col { display: flex; flex-direction: column; gap: 16px; }
.checkout-section__title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  color: var(--sea-deep); margin: 12px 0 4px;
}
.checkout-section__subtitle {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--sea-deep); margin: 8px 0 0;
}

.address-fields { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.address-fields label {
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--font-body); font-size: 0.85rem; color: var(--ink);
}
.address-fields input, .address-fields select {
  font-family: var(--font-body); font-size: 0.9rem;
  padding: 10px 12px; border: 1px solid rgba(0,0,0,0.15); border-radius: 8px;
  background: #fff; color: var(--ink);
}
.address-fields input:focus, .address-fields select:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.field-invalid input, .field-invalid select { border-color: var(--red); background: #fff5f2; }

.ship-different { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 0.9rem; color: var(--ink); cursor: pointer; }

.coupon-row { display: flex; gap: 10px; }
.coupon-row input {
  flex: 1; min-width: 0; font-family: var(--font-body); font-size: 0.9rem;
  padding: 10px 12px; border: 1px solid rgba(0,0,0,0.15); border-radius: 8px;
  touch-action: manipulation;
}
.coupon-apply { font-size: 0.8rem; padding: 10px 18px; white-space: nowrap; }
.coupon-message { font-family: var(--font-body); font-size: 0.85rem; color: var(--green); margin: 0; }
.coupon-message--error { color: var(--red); }

.checkout-summary {
  background: #fff; border-radius: 16px; padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-soft);
}
.summary-row { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-body); font-size: 0.95rem; color: var(--ink); padding: 6px 0; }
.summary-row--total { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--sea-deep); border-top: 1px solid rgba(0,0,0,0.1); margin-top: 10px; padding-top: 14px; }
.summary-iva { font-family: var(--font-body); font-size: 0.75rem; color: var(--ink); opacity: 0.65; text-align: right; margin: 0 0 20px; }

.shipping-free-note {
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  color: var(--green); margin: 4px 0 0;
}
.shipping-group { margin: 12px 0 0; }
.shipping-group__title {
  font-family: var(--font-body); font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--sea-deep); opacity: 0.7; margin: 0 0 6px;
}
.shipping-methods { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.shipping-method label {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid rgba(0,0,0,0.1); border-radius: 10px;
  cursor: pointer; font-family: var(--font-body); font-size: 0.82rem; color: var(--ink);
}
.shipping-method label:has(input:checked) { border-color: var(--green); background: rgba(58,168,133,0.06); }
.shipping-method__carrier { font-weight: 700; min-width: 105px; }
.shipping-method__label { opacity: 0.85; }

.pickup-point__panel {
  background: rgba(58,168,133,0.06); border: 1px solid rgba(58,168,133,0.25);
  border-radius: 12px; padding: 14px 16px;
}
.pickup-point__open { width: 100%; }
.pickup-point__selected {
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  color: var(--sea-deep); margin: 10px 0 0;
}
.pickup-point__panel label {
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--font-body); font-size: 0.85rem; color: var(--ink);
}
.pickup-point__panel input {
  font-family: var(--font-body); font-size: 0.9rem;
  padding: 10px 12px; border: 1px solid rgba(0,0,0,0.15); border-radius: 8px;
}
.pickup-point__hint { font-family: var(--font-body); font-size: 0.78rem; color: var(--ink); opacity: 0.65; margin: 8px 0 0; }

/* Ventana emergente del selector de Mondial Relay: en vez de expandir el
   panel del resumen (deformaba el layout), se muestra como popup centrado
   sobre toda la pantalla. */
.mr-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(20, 30, 40, 0.55);
}
.mr-modal__box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow: auto;
  box-shadow: 0 20px 60px -15px rgba(0,0,0,0.4);
}
.mr-modal__close {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px;
  border: none; border-radius: 50%;
  background: rgba(0,0,0,0.06); color: var(--ink);
  font-size: 1.2rem; line-height: 1; cursor: pointer;
  z-index: 1;
}
.mr-modal__close:hover { background: rgba(0,0,0,0.12); }
.mr-modal__widget { margin-top: 8px; }

.product-preview__box { max-width: 960px; width: calc(100% - 32px); padding: 8px; }
.product-preview__frame { width: 100%; height: min(80vh, 780px); border: 0; border-radius: 12px; display: block; }

.cart-item__preview-trigger { border: none; background: none; padding: 0; cursor: pointer; display: block; }
.cart-item__name[data-action="preview"] { cursor: pointer; }
.cart-item__name[data-action="preview"]:hover { text-decoration: underline; }

.checkout-submit { width: 100%; text-align: center; }
.checkout-error { color: var(--red); font-family: var(--font-body); font-size: 0.85rem; margin-top: 10px; }

@media (max-width: 860px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }

  /* Un input con font-size menor de 16px hace que Safari/iOS haga zoom de
     golpe al enfocarlo, se siente como si el campo "no dejara escribir"
     porque la página salta justo al tocarlo. */
  .address-fields input, .address-fields select, .coupon-row input, .pickup-point__panel input {
    font-size: 16px;
  }
}

/* ---------- Resultado del pedido (gracias / error) ---------- */
.order-result { max-width: 620px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) 0; text-align: center; }
.order-result__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3.5vw, 2.2rem); color: var(--sea-deep); margin: 0 0 16px; }
.order-result__title--error { color: var(--red); }
.order-result__text { font-family: var(--font-body); color: var(--ink); line-height: 1.6; margin: 0 0 28px; }
.order-result__link { display: inline-block; }
.order-result__text--error { margin-bottom: 44px; }
.order-result__retry { font-family: var(--font-body); color: var(--ink); line-height: 1.6; margin: 0 0 22px; }
.fish-cta--error { margin-top: 14px; }

/* ---------- Aviso de cookies ---------- */
.cookie-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}
.cookie-consent__box {
  pointer-events: auto;
  max-width: 760px;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.3);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.cookie-consent__text {
  font-family: var(--font-body); font-size: 0.85rem; line-height: 1.5;
  color: var(--ink); margin: 0; flex: 1 1 320px;
}
.cookie-consent__text a { color: var(--sea-deep); text-decoration: underline; }
.cookie-consent__actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* Los tres botones con exactamente el mismo aspecto (la guía de la AEPD pide
   que rechazar/configurar no quede menos visible que aceptar). */
#cookieMain { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; width: 100%; }
#cookiePanel { width: 100%; }
.cookie-consent__box { max-height: 85vh; overflow-y: auto; }
.cookie-opt { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; font-family: var(--font-body); font-size: 0.82rem; line-height: 1.45; color: var(--ink); cursor: pointer; }
.cookie-opt input { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; }
.cookie-open-btn { margin-top: 12px; }

/* ---------- Desistimiento + casilla de términos ---------- */
.withdrawal-form { max-width: 520px; }
.withdrawal-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.withdrawal-form__submit { align-self: flex-start; }
.withdrawal-done { max-width: 620px; }

.accept-terms {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: var(--font-body); font-size: 0.82rem; line-height: 1.45; color: var(--ink);
  margin: 12px 0 4px; cursor: pointer;
}
.accept-terms { flex-direction: row-reverse; text-align: right; }
.accept-terms input { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; }
.accept-terms a { color: var(--sea-deep); text-decoration: underline; }
.privacy-first-layer {
  font-family: var(--font-body); font-size: 0.72rem; line-height: 1.45;
  color: var(--ink); opacity: 0.7; margin: 8px 0 0;
}
.shipping-lead-time {
  font-family: var(--font-body); font-size: 0.78rem; color: var(--ink); opacity: 0.7; margin: 6px 0 0;
}

@media print {
  .nav, .footer, #cookieConsent, #withdrawalPrint, .legal-shell > nav { display: none !important; }
}

/* Resumen del checkout: "Productos" con su importe a la derecha en la misma
   fila (sin fila aparte de subtotal) y el plazo de envío justo debajo. */
.summary-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.summary-heading .checkout-section__title { margin: 12px 0 0; }
.summary-heading strong { font-family: var(--font-body); font-size: 0.95rem; color: var(--ink); }
.summary-heading + .shipping-lead-time { margin: -12px 0 4px; line-height: 1.2; }
.privacy-first-layer a { color: var(--sea-deep); text-decoration: underline; }

/* Espaciado más compacto en el resumen del checkout: .checkout-col separa
   todos sus hijos con 16px, y estas líneas pequeñas pertenecen a lo que
   tienen justo encima. */
.summary-row--total + .summary-iva { margin: -13px 0 4px; line-height: 1.1; }
.checkout-error + .privacy-first-layer, .checkout-submit + .privacy-first-layer { margin-top: -6px; padding: 0 14px; }
.shipping-title { margin-bottom: -10px; font-size: 1.2rem; }
.shipping-group { margin: 0; }

/* Con un pop-up abierto, la página de atrás no se desliza. */
html.modal-open, html.modal-open body { overflow: hidden; }
.product-preview { overscroll-behavior: contain; }

/* Gracias: al pasar el cursor por "Volver a la tienda" asoma la cabeza del
   pececito por detrás del botón. */
.fish-cta { position: relative; display: inline-block; margin-top: 8px; }
.fish-cta .btn-add { position: relative; z-index: 2; }
.fish-peek {
  position: absolute; right: -4px; bottom: calc(100% - 16px);
  width: 130px; height: 54px;
  overflow: hidden; z-index: 1; pointer-events: none;
}
.fish-peek__inner {
  position: absolute; inset: 0;
  transform: translate(-30px, 80px);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.fish-peek__inner img {
  position: absolute; left: 0; top: 0; width: 120px; max-width: none; height: auto;
  transform-origin: 0 0; transform: translate(95px, -17px) rotate(-45deg) scaleX(-1);
}
.fish-cta:hover .fish-peek__inner,
.fish-cta:focus-within .fish-peek__inner { transform: translate(0, 0); }
@media (prefers-reduced-motion: reduce) { .fish-peek__inner { transition: none; } }
/* el pececito del hover no se muestra en móvil ni en pantallas táctiles */
@media (max-width: 768px), (hover: none) { .fish-peek { display: none; } }

/* Botón principal de la portada: lleva a los productos. */
.hero__cta {
  display: inline-block;
  margin-top: 56px;
  padding: 10px 26px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 20px;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 14px -8px rgba(77, 52, 32, 0.5);
  transition: background-color 0.2s ease, transform 0.15s ease;
  touch-action: manipulation;
}
.hero__cta:hover { background: #c93a12; }
.hero__cta:active { transform: scale(0.98); }
/* en móvil, un poquito más pequeño */
@media (max-width: 860px) {
  .hero__cta { padding: 8px 22px; font-size: 0.76rem; line-height: 18px; }
}

/* ---------- Botón para volver arriba ---------- */
.to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(77, 52, 32, 0.55);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background-color 0.2s ease;
  touch-action: manipulation;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-2); }
.to-top:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 860px) { .to-top { width: 42px; height: 42px; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* Lista de puntos de recogida (Correos, Mondial Relay) en el pago */
.pickup-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.pickup-list li { margin: 0; }
.pickup-point__panel .pickup-list label {
  flex-direction: row; align-items: flex-start; gap: 10px;
  padding: 9px 12px; background: #fff; border: 1px solid rgba(0,0,0,0.12); border-radius: 10px; cursor: pointer;
  font-size: 0.84rem; line-height: 1.35;
}
.pickup-point__panel .pickup-list label:has(input:checked) { border-color: var(--green); background: rgba(58,168,133,0.08); }
.pickup-point__panel .pickup-list input { padding: 0; border: 0; width: auto; margin-top: 3px; accent-color: var(--green); }
.pickup-point__panel .pickup-search { margin-top: 10px; }
.pickup-fallback { margin-top: 10px; }

/* Botón de añadir al carrito en la tarjeta del stick (esquina superior derecha) */
.pcard__add {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1.5px solid #164a97;
  border-radius: 50%;
  background: transparent;
  color: #164a97;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.pcard__add:hover,
.pcard__add:focus-visible { background: #164a97; color: #fff; outline: none; }
.pcard__add .ico-check { display: none; }
.pcard__add.is-added { background: #164a97; color: #fff; }
.pcard__add.is-added .ico-cart { display: none; }
.pcard__add.is-added .ico-check { display: block; }
@media (max-width: 860px) { .pcard__add { width: 27px; height: 27px; top: 8px; right: 8px; } }

/* el precio de la tarjeta del stick sube un poco, sin mover el título ni el botón (transform no altera el flujo) */
.pcard--feature .pcard__price { transform: translateY(-4px); }
