/* Hello Poppy — catálogo · variante "poppy-pop"
   Sale del logo: la amapola coral con sus dos puntos. Fondo leche rosada, bloques rubor y coral,
   y cada producto visto a través de una ventana redondeada del color pastel de su categoría. */

@font-face { font-family: "Fraunces"; src: url("../fuentes/fraunces-normal-latin.woff2") format("woff2"); font-style: normal; font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; src: url("../fuentes/fraunces-italic-latin.woff2") format("woff2"); font-style: italic; font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fuentes/hanken-normal-latin.woff2") format("woff2"); font-style: normal; font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sofia Sans Condensed"; src: url("../fuentes/sofia-condensed-normal-latin.woff2") format("woff2"); font-style: normal; font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  /* marca */
  --leche: #fff8f5;         /* fondo de página */
  --rubor: #ffe4df;         /* bloques rosados */
  --coral: #ff6268;         /* el coral del logo: rellenos y puntos, nunca texto */
  --coral-tinta: #b3303e;   /* coral para texto (AA sobre leche, rubor y pasteles) */
  --ciruela: #3a2129;       /* tinta */
  --ciruela-suave: #775760; /* texto secundario */
  /* un pastel por categoría, sacado de sus productos */
  --lila: #eee5f5;          /* pulseras */
  --melocoton: #ffe8d6;     /* aroma y hogar */
  --pistacho: #e7efd8;      /* matcha */
  --cielo: #e0ebf1;         /* yoga y meditación */
  --mantequilla: #fbefd0;   /* masaje y autocuidado */

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-texto: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-etiqueta: "Sofia Sans Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;

  --ancho: 1200px;
  --margen: clamp(16px, 4vw, 40px);
  --orla: clamp(8px, 1.4vw, 20px);   /* separación de los bloques a sangre con el borde de la ventana */
  --aire: clamp(64px, 8vw, 112px);
  --radio: clamp(18px, 2vw, 26px);
  --radio-grande: clamp(26px, 3.4vw, 48px);

  --tono: var(--rubor);
  --tono-hondo: #f7b9b1;
}

.tono-todo { --tono: var(--rubor); --tono-hondo: #f7b9b1; }
.tono-pulseras { --tono: var(--lila); --tono-hondo: #cdb6e6; }
.tono-aroma-y-hogar { --tono: var(--melocoton); --tono-hondo: #f6c39b; }
.tono-matcha { --tono: var(--pistacho); --tono-hondo: #b9d09a; }
.tono-yoga-y-meditacion { --tono: var(--cielo); --tono-hondo: #a9c7d9; }
.tono-masaje-y-autocuidado { --tono: var(--mantequilla); --tono-hondo: #ecd08a; }
.tono-bano-y-cuidado-corporal { --tono: #dff1ec; --tono-hondo: #8bbfb2; }
.tono-cuidado-capilar { --tono: #f4e2ef; --tono-hondo: #d39bbb; }
.tono-descanso-y-bienestar { --tono: #e8e5f6; --tono-hondo: #afa4d5; }

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

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

body {
  margin: 0;
  background: var(--leche);
  color: var(--ciruela);
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }

:focus-visible {
  outline: 2.5px solid var(--coral-tinta);
  outline-offset: 3px;
}
/* sobre coral, el anillo coral oscuro apenas se distingue: tinta */
.bloque--coral :focus-visible, .cabeza-listado--coral :focus-visible { outline-color: var(--ciruela); }

.saltar {
  position: absolute;
  left: var(--margen);
  top: -100px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ciruela);
  color: var(--leche);
}
.saltar:focus { top: 12px; }

/* ---------- Piezas pequeñas ---------- */

/* Los dos puntos del logo */
.puntos {
  display: inline-block;
  flex: none;
  width: 17px;
  height: 7px;
  background: radial-gradient(circle at 3.5px 3.5px, var(--ciruela) 3px, transparent 3.5px) 0 0 / 10px 7px repeat-x;
}

.punto {
  display: inline-block;
  flex: none;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--tono-hondo);
}
.punto--coral { background: var(--coral); }

.antetitulo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--coral-tinta);
}
.antetitulo--tinta { color: var(--ciruela); }

.titulo-seccion {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 1.35rem + 1.8vw, 2.9rem);
  font-weight: 500;
  font-variation-settings: "opsz" 60;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.titulo-seccion .punto { width: 0.36em; height: 0.36em; margin-right: 0.3em; vertical-align: 0.14em; }
.titulo-seccion--peque { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); }
.titulo-seccion--grande { font-size: clamp(2.3rem, 1.5rem + 2.8vw, 3.9rem); line-height: 1; letter-spacing: -0.022em; }

/* La flecha va aparte (inline-block) para que el subrayado coral quede solo bajo las palabras */
.enlace span[aria-hidden], .puerta__ver span[aria-hidden] {
  display: inline-block;
  margin-left: 0.3em;
  transition: transform 0.2s ease;
}
.enlace:hover span[aria-hidden], .puerta a:hover .puerta__ver span[aria-hidden] { transform: translateX(3px); }
.menu a:focus-visible { border-radius: 8px; }

.enlace {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--coral-tinta);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  white-space: nowrap;
}
.enlace:hover { color: var(--ciruela); text-decoration-color: var(--ciruela); }
.enlace--tinta { color: var(--ciruela); text-decoration-color: var(--ciruela); }
.enlace--tinta:hover { text-decoration-thickness: 3px; }

.boton {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--ciruela);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.boton:hover { background: var(--ciruela); color: var(--leche); }
.boton--tinta { background: var(--ciruela); color: var(--leche); }
.boton--tinta:hover { background: var(--leche); color: var(--ciruela); }

.fichas-cat {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fichas-cat a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px 8px 12px;
  border-radius: 999px;
  background: var(--leche);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.fichas-cat a::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tono-hondo);
}
.fichas-cat a:hover { background: var(--tono); }

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

.cabecera {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--leche);
  background: color-mix(in srgb, var(--leche) 92%, transparent);
  box-shadow: 0 1px 0 rgba(58, 33, 41, 0.08);
  backdrop-filter: blur(14px);
}
.cabecera__fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: calc(var(--ancho) + 2 * var(--margen));
  margin-inline: auto;
  padding-inline: var(--margen);
}
.cabecera__logo { display: block; flex: none; padding-block: 5px; }
.cabecera__logo img { width: 124px; mix-blend-mode: multiply; }
.menu__boton { display: none; }

.menu ul {
  display: flex;
  gap: clamp(8px, 1.3vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu a {
  position: relative;
  display: block;
  padding: 16px 1px 12px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.menu a:hover { color: var(--coral-tinta); }
.menu a.activa { color: var(--coral-tinta); font-weight: 600; }
/* La categoría activa se distingue por color y peso, sin elementos decorativos extra. */

/* En móvil y portátil, la navegación se reduce a un panel de colecciones.
   La regla .js conserva un menú totalmente funcional cuando el script no carga. */
@media (max-width: 1199px) {
  .cabecera__fila { position: relative; min-height: 62px; justify-content: space-between; gap: 12px; }
  .cabecera__logo { padding-block: 7px; }
  .cabecera__logo img { width: 102px; }
  .menu__boton {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px 9px 15px;
    border: 1px solid rgba(58, 33, 41, 0.14);
    border-radius: 999px;
    background: var(--leche);
    color: var(--ciruela);
    font: 600 0.88rem/1 var(--f-texto);
    cursor: pointer;
  }
  .menu__icono, .menu__icono::before, .menu__icono::after {
    display: block;
    width: 15px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    content: "";
    transition: transform 0.2s ease;
  }
  .menu__icono { position: relative; }
  .menu__icono::before { position: absolute; top: -5px; }
  .menu__icono::after { position: absolute; top: 5px; }
  .menu__boton[aria-expanded="true"] .menu__icono { background: transparent; }
  .menu__boton[aria-expanded="true"] .menu__icono::before { transform: translateY(5px) rotate(45deg); }
  .menu__boton[aria-expanded="true"] .menu__icono::after { transform: translateY(-5px) rotate(-45deg); }
  .js .menu { display: none; }
  .js .menu.menu--abierto {
    position: absolute;
    top: calc(100% + 8px);
    right: var(--margen);
    left: var(--margen);
    z-index: 1;
    display: block;
    width: auto;
    margin: 0;
    padding: 8px;
    border: 1px solid rgba(58, 33, 41, 0.10);
    border-radius: 22px;
    background: var(--leche);
    box-shadow: 0 16px 36px rgba(58, 33, 41, 0.14);
  }
  .menu ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 0;
  }
  .menu a {
    min-height: 42px;
    padding: 11px 12px;
    border-radius: 12px;
    background: var(--tono);
    font-size: 0.9rem;
    text-align: left;
    white-space: normal;
  }
  .menu a.activa { background: var(--coral); color: var(--ciruela); }
  .menu a.activa::before { display: none; }
}
@media (max-width: 479px) {
  .js .menu.menu--abierto { right: 12px; left: 12px; }
  .menu ul { grid-template-columns: 1fr; }
}

/* ---------- Bloques ---------- */

.bloque {
  max-width: calc(var(--ancho) + 2 * var(--margen));
  margin: var(--aire) auto 0;
  padding-inline: var(--margen);
}
.bloque__cabecera {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 32px;
  margin-bottom: clamp(22px, 3vw, 36px);
}
.bloque__linea {
  margin: 8px 0 0;
  font-family: var(--f-display);
  font-size: clamp(1.08rem, 1rem + 0.3vw, 1.25rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--coral-tinta);
}

/* ---------- Portada ---------- */

.portada {
  margin: var(--orla) var(--orla) 0;
  border-radius: var(--radio-grande);
  background: var(--rubor);
}
.portada__dentro {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  max-width: calc(var(--ancho) + 2 * var(--margen));
  margin-inline: auto;
  padding: clamp(36px, 6vw, 80px) var(--margen) clamp(36px, 5vw, 72px);
}
@media (min-width: 700px) {
  .portada__dentro { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); }
}
.portada__titulo {
  font-family: var(--f-display);
  font-size: clamp(2.75rem, 1.6rem + 4.3vw, 5.4rem);
  font-weight: 500;
  font-variation-settings: "opsz" 80;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.portada__entrada {
  max-width: 30ch;
  margin: clamp(16px, 2vw, 24px) 0 0;
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.28rem);
  line-height: 1.5;
}
.portada__acciones { margin: clamp(24px, 3vw, 36px) 0 0; }

/* Ramillete: cinco ventanas redondas, una por categoría */
.ramo {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1;
  justify-self: center;
}
.ramo__flor {
  position: absolute;
  left: var(--l);
  top: var(--t);
  width: var(--w);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  background: var(--tono);
  box-shadow: 0 0 0 clamp(5px, 0.6vw, 8px) var(--leche);
  transition: transform 0.4s ease;
}
.ramo__flor img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transform: translate(var(--x, 0), var(--y, 0)) scale(var(--s, 1));
}
.ramo__flor--a { --l: 3%; --t: 35%; --w: 55%; z-index: 2; }
.ramo__flor--a img { --s: 0.94; }
.ramo__flor--b { --l: 19%; --t: 1%; --w: 38%; }
.ramo__flor--c { --l: 63%; --t: 9%; --w: 34%; }
.ramo__flor--d { --l: 61%; --t: 45%; --w: 33%; }
.ramo__flor--e { --l: 49%; --t: 77%; --w: 22%; z-index: 3; }
@media (hover: hover) {
  .ramo__flor:hover { transform: scale(1.04); z-index: 4; }
}
/* Al cargar, las ventanas "brotan" una detrás de otra (solo si no se pide reducir el movimiento) */
@media (prefers-reduced-motion: no-preference) {
  .ramo__flor { animation: brotar 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.15) backwards; }
  .ramo__flor--b { animation-delay: 0.06s; }
  .ramo__flor--c { animation-delay: 0.12s; }
  .ramo__flor--d { animation-delay: 0.18s; }
  .ramo__flor--e { animation-delay: 0.24s; }
}
@keyframes brotar {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- Puertas: una tarjeta por categoría ---------- */

.puertas {
  display: grid;
  gap: clamp(12px, 1.6vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) {
  .puertas { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .puerta { grid-column: span 3; }
  .puerta:nth-child(n + 3) { grid-column: span 2; }
}
.puerta a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(22px, 3vw, 36px);
  height: 100%;
  padding: clamp(22px, 2.6vw, 34px);
  border-radius: var(--radio-grande);
  background: var(--tono);
  text-decoration: none;
  transition: transform 0.3s ease;
}
.puerta__nombre {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.4rem);
  font-weight: 500;
  font-variation-settings: "opsz" 48;
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.puerta__linea {
  display: block;
  margin: 6px 0 0;
  font-family: var(--f-display);
  font-size: 1.06rem;
  font-style: italic;
  line-height: 1.3;
  color: var(--coral-tinta);
}
.puerta__ver {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
/* Las fotos van en ventanas redondas de color leche: dos o tres "puntos" por puerta */
.puerta__fotos {
  display: flex;
  align-items: flex-end;
  padding-left: 6px;
}
.puerta__foto {
  flex: 0 0 auto;
  width: calc((100% + 14px * (var(--n) - 1)) / var(--n));
  max-width: 200px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  background: var(--leche);
  box-shadow: 0 0 0 6px var(--tono);
}
.puerta__fotos--2 { --n: 2; }
.puerta__fotos--3 { --n: 3; }
.puerta__foto + .puerta__foto { margin-left: -14px; }
.puerta__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transform: translate(var(--x, 0), var(--y, 0)) scale(var(--s, 1));
}
@media (hover: hover) {
  .puerta a:hover { transform: translateY(-4px); }
  .puerta a:hover .puerta__ver { text-decoration-color: var(--ciruela); }
}

/* ---------- Banda coral ---------- */

.bloque--coral {
  max-width: none;
  margin-inline: var(--orla);
  padding: 0;
  border-radius: var(--radio-grande);
  background: var(--coral);
}
.destacado {
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  max-width: calc(var(--ancho) + 2 * var(--margen));
  margin-inline: auto;
  padding: clamp(40px, 6vw, 88px) var(--margen);
}
@media (min-width: 900px) {
  .destacado { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.destacado__fotos {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1 / 0.92;
  justify-self: center;
}
.destacado__foto {
  position: absolute;
  display: block;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  background: var(--tono);
}
.destacado__foto--grande { left: 0; top: 0; width: 84%; }
.destacado__foto--peque { right: 0; bottom: 0; width: 40%; box-shadow: 0 0 0 clamp(6px, 0.8vw, 10px) var(--coral); }
.destacado__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transform: translate(var(--x, 0), var(--y, 0)) scale(var(--s, 1));
}
.destacado__foto--grande img { --s: 0.9; }
.destacado__entrada {
  max-width: 34ch;
  margin: 18px 0 0;
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem);
  line-height: 1.5;
}
.destacado__linea {
  margin: 10px 0 0;
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-style: italic;
}
.destacado__acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin: 30px 0 0;
}

/* ---------- Rejilla de productos ---------- */

.rejilla {
  --cols: 2;
  --hueco: 12px;
  --prop: 1;
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 26px var(--hueco);
  margin: 0;
  padding: 0;
  list-style: none;
}
.rejilla--apaisada { --prop: 0.75; }
@media (min-width: 600px) {
  .rejilla { --cols: 3; --hueco: 18px; row-gap: 34px; }
  .rejilla--n2, .rejilla--n4, .rejilla--n7 { --cols: 2; }
}
@media (min-width: 900px) {
  .rejilla { --cols: 4; --hueco: 24px; row-gap: 40px; }
  .rejilla--n9, .rejilla--n3 { --cols: 3; }
  .rejilla--n2, .rejilla--n4, .rejilla--n7 { --cols: 4; }
}

.tarjeta a {
  display: block;
  text-decoration: none;
}
.tarjeta a:focus-visible { outline-offset: 6px; border-radius: var(--radio); }

.ventana {
  --col: calc((100cqi - (var(--cols) - 1) * var(--hueco)) / var(--cols));
  position: relative;
  display: block;
  height: calc(var(--col) * var(--prop));
  border-radius: var(--radio);
  overflow: hidden;
  isolation: isolate;
  background: var(--tono);
}
.ventana img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transform: translate(var(--x, 0), var(--y, 0)) scale(var(--s, 1));
  transition: opacity 0.35s ease, transform 0.5s ease;
}
.ventana__otra { opacity: 0; }
/* Respaldo para navegadores sin unidades de contenedor: ventanas proporcionales */
@supports not (width: 1cqi) {
  .ventana, .tarjeta--destacada .ventana { height: auto; aspect-ratio: 1 / var(--prop); }
}
.rejilla:not(.rejilla--apaisada) .tono-pulseras .ventana img { --s: 1.2; }

@media (hover: hover) {
  .tarjeta a:hover .ventana--doble .ventana__foto { opacity: 0; }
  .tarjeta a:hover .ventana__otra { opacity: 1; }
  .tarjeta a:hover .ventana:not(.ventana--doble) img { transform: translate(var(--x, 0), var(--y, 0)) scale(calc(var(--s, 1) * 1.05)); }
  .tarjeta a:hover .tarjeta__nombre { color: var(--coral-tinta); }
}

.tarjeta__nombre {
  display: block;
  margin-top: 12px;
  font-family: var(--f-etiqueta);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-wrap: balance;
  transition: color 0.2s ease;
}
.tarjeta__linea {
  display: block;
  margin-top: 4px;
  font-family: var(--f-display);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.3;
  color: var(--coral-tinta);
}

@media (max-width: 599px) {
  .tarjeta__nombre { margin-top: 10px; font-size: 1rem; letter-spacing: 0.03em; }
  .tarjeta__linea { font-size: 0.94rem; }
}

/* Tarjeta destacada: primera de una rejilla impar */
@media (max-width: 599px) {
  .tarjeta--destacada { grid-column: 1 / -1; }
  .tarjeta--destacada .ventana { height: calc(100cqi * var(--prop)); }
  .tarjeta--destacada .tarjeta__nombre { font-size: 1.2rem; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .rejilla--n7 .tarjeta--destacada { grid-column: 1 / -1; }
  .rejilla--n7 .tarjeta--destacada .ventana { height: min(calc(100cqi * 0.62), 520px); }
  .rejilla--n7 .tarjeta--destacada .ventana img { object-fit: contain; }
}
/* En escritorio, la destacada de 7 y las dos de una pareja ocupan dos columnas: foto y caja lado a lado */
@media (min-width: 900px) {
  .rejilla--n7 .tarjeta--destacada, .rejilla--n2 .tarjeta { grid-column: span 2; }
  :is(.rejilla--n7 .tarjeta--destacada, .rejilla--n2 .tarjeta) .ventana--doble { display: grid; grid-template-columns: 1fr 1fr; }
  :is(.rejilla--n7 .tarjeta--destacada, .rejilla--n2 .tarjeta) .ventana--doble img { position: relative; opacity: 1; }
}
@media (min-width: 900px) and (hover: hover) {
  :is(.rejilla--n7 .tarjeta--destacada, .rejilla--n2 .tarjeta) a:hover .ventana--doble img { opacity: 1; }
}

/* ---------- Cabecera de listados ---------- */

.cabeza-listado {
  margin: var(--orla) var(--orla) 0;
  border-radius: var(--radio-grande);
  background: var(--tono);
}
.cabeza-listado--todo { --tono: var(--rubor); }
.cabeza-listado__dentro {
  display: grid;
  gap: 24px;
  align-items: center;
  max-width: calc(var(--ancho) + 2 * var(--margen));
  margin-inline: auto;
  padding: clamp(28px, 5vw, 64px) var(--margen);
}
@media (min-width: 760px) {
  .cabeza-listado__dentro { grid-template-columns: minmax(0, 1fr) auto; }
}
.migas {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ciruela-suave);
}
.migas a {
  color: var(--ciruela);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.25em;
}
.migas a:hover { color: var(--coral-tinta); }
.titulo-pagina {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.6rem);
  font-weight: 500;
  font-variation-settings: "opsz" 80;
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.cabeza-listado__linea {
  max-width: 38ch;
  margin: 12px 0 0;
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--coral-tinta);
}
.cabeza-listado__cuenta {
  margin: 16px 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ciruela-suave);
}
.burbujas {
  display: flex;
  align-items: center;
  padding-left: 10px;
}
@media (max-width: 759px) {
  .cabeza-listado:not(.perdida) .burbujas { display: none; }
  .perdida .burbujas { justify-content: center; padding-block: 12px 4px; }
}
.cabeza-listado--coral { --tono: var(--coral); }
.cabeza-listado--coral .cabeza-listado__linea { color: var(--ciruela); }
.cabeza-listado--coral .burbuja { background: var(--tono); box-shadow: 0 0 0 clamp(5px, 0.6vw, 8px) var(--leche); }
.cabeza-listado--coral .fichas-cat { margin-top: 22px; }
.perdida__acciones { margin: 26px 0 0; }
.burbuja {
  position: relative;
  width: clamp(92px, 15vw, 210px);
  aspect-ratio: 1;
  margin-left: -10px;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  background: var(--leche);
  box-shadow: 0 0 0 clamp(5px, 0.6vw, 8px) var(--tono);
}
.burbuja:nth-child(2) { transform: translateY(-14%); }
.burbujas--5 .burbuja { width: clamp(64px, 10vw, 150px); }
.cabeza-listado--todo .burbuja { background: var(--tono); box-shadow: 0 0 0 clamp(5px, 0.6vw, 8px) var(--rubor); }
.burbuja img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transform: translate(var(--x, 0), var(--y, 0)) scale(var(--s, 1));
}
.burbuja.tono-pulseras img { --s: 0.92; }

.bloque--solo { margin-top: clamp(32px, 5vw, 56px); }
.bloque--grupo + .bloque--grupo { margin-top: clamp(64px, 7vw, 100px); }

.otras .fichas-cat { margin-top: 18px; }
.otras .fichas-cat a { background: var(--tono); }
.otras .fichas-cat a:hover { background: var(--tono-hondo); }

/* ---------- Ficha ---------- */

.ficha {
  display: grid;
  grid-template-areas: "cabeza" "galeria" "cuerpo";
  gap: 22px;
  max-width: calc(var(--ancho) + 2 * var(--margen));
  margin: clamp(20px, 3vw, 44px) auto 0;
  padding-inline: var(--margen);
}
.ficha__cabeza { grid-area: cabeza; }
.galeria { grid-area: galeria; }
.ficha__cuerpo { grid-area: cuerpo; }
@media (min-width: 900px) {
  .ficha {
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "galeria cabeza" "galeria cuerpo";
    column-gap: clamp(40px, 6vw, 96px);
    row-gap: 0;
  }
  .ficha__cabeza { padding-top: clamp(8px, 2vw, 32px); }
  .galeria { position: sticky; top: 104px; align-self: start; }
}

.ficha__nombre {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.7rem);
  font-weight: 500;
  font-variation-settings: "opsz" 72;
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.ficha__linea {
  display: block;
  margin-top: 10px;
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.6rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
  color: var(--coral-tinta);
}

.galeria { width: 100%; max-width: 560px; }
@media (max-width: 899px) { .galeria { margin-inline: auto; } }
.galeria__tira {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  border-radius: var(--radio-grande);
}
.galeria__tira::-webkit-scrollbar { display: none; }
.galeria__foto {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  isolation: isolate;
  scroll-snap-align: start;
  background: var(--tono);
}
.galeria--apaisada .galeria__foto { aspect-ratio: 4 / 3; }
.galeria__foto img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transform: translate(var(--x, 0), var(--y, 0)) scale(var(--s, 1));
}
.galeria--apaisada .galeria__foto img { object-fit: cover; }

.galeria__miniaturas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 0;
  padding: 4px;
  list-style: none;
}
.galeria__miniaturas a {
  display: block;
  width: 78px;
  height: 78px;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  background: var(--tono);
  transition: box-shadow 0.2s ease;
}
.galeria__miniaturas a:hover { box-shadow: 0 0 0 2px var(--leche), 0 0 0 4px var(--tono-hondo); }
.galeria__miniaturas a[aria-current="true"] { box-shadow: 0 0 0 2px var(--leche), 0 0 0 4.5px var(--coral); }
.galeria__miniaturas img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.ficha__texto { margin-top: clamp(4px, 2vw, 28px); }
.ficha__texto p { max-width: 58ch; margin: 0 0 1em; }

.detalles {
  max-width: 560px;
  margin-top: 26px;
  padding: 22px clamp(20px, 2.4vw, 30px) 12px;
  border-radius: var(--radio);
  background: var(--rubor);
}
.detalles__titulo {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
}
.detalles ul { margin: 8px 0 0; padding: 0; list-style: none; }
.detalles li {
  position: relative;
  padding: 11px 0 11px 22px;
  line-height: 1.45;
}
.detalles li + li { border-top: 1px solid rgba(58, 33, 41, 0.12); }
.detalles li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(11px + 0.725em);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  transform: translateY(-50%);
}

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

.pie {
  margin: var(--aire) var(--orla) 0;
  padding: clamp(44px, 6vw, 72px) var(--margen) 24px;
  border-radius: var(--radio-grande) var(--radio-grande) 0 0;
  background: var(--rubor);
  text-align: center;
}
.pie__dentro { max-width: var(--ancho); margin-inline: auto; }
/* La etiqueta de la caja: cartón claro con un marco fino coral por dentro (el único guiño literal al packaging) */
.pie__logo {
  display: inline-block;
  padding: 14px 24px 12px;
  border-radius: 6px;
  background: var(--leche);
  outline: 1.5px solid var(--coral);
  outline-offset: -7px;
}
.pie__logo img { width: 132px; mix-blend-mode: multiply; }
.pie__lema {
  margin: 20px 0 0;
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.9rem);
  font-style: italic;
  line-height: 1.25;
}
.pie__contacto { margin: 12px 0 0; }
.pie__contacto a {
  color: var(--coral-tinta);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.pie__contacto a:hover { color: var(--ciruela); }
.pie__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 26px;
  margin: clamp(24px, 3vw, 34px) 0 0;
  padding: 0;
  list-style: none;
}
.pie__nav a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  font-weight: 500;
  text-decoration: none;
}
.pie__nav a:hover { color: var(--coral-tinta); text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 0.3em; }
.pie__nav .punto { width: 10px; height: 10px; }
.pie__legal {
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(58, 33, 41, 0.12);
  font-size: 0.9rem;
  color: var(--ciruela-suave);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .ramo__flor:hover, .puerta a:hover { transform: none; }
}
