/* =============================================
   AUREA DESCANSO — Capa estética premium
   Grano · Luz · Tipografía editorial · Sellos
   (carga sobre styles.css / shop.css / blog.css)
   ============================================= */

/* ──────────────────────────────────────────────
   1. GRANO DE MARCA en secciones navy
   Ruido SVG sutil, como el papel de un libro caro
   ────────────────────────────────────────────── */
.promesa, .crossband__inner, .cta, .giftband__inner,
.cutaway, .vs__card--gold, .article-hero, .reveal-text,
.checkout__steps {
  position: relative;
}
.promesa::after, .crossband__inner::after, .cta::after,
.giftband__inner::after, .cutaway::after, .article-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
/* El contenido de esas secciones queda por encima del grano */
.promesa > *, .crossband__inner > *, .cta > *,
.giftband__inner > *, .article-hero > * { position: relative; z-index: 1; }

/* ──────────────────────────────────────────────
   2. HALO DE LUZ que sigue al cursor en el hero
   ────────────────────────────────────────────── */
.hero__glow {
  position: absolute;
  top: 0; left: 0;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(50% 50% at 50% 50%,
    rgba(212, 175, 55, 0.16) 0%,
    rgba(212, 175, 55, 0.06) 35%,
    rgba(212, 175, 55, 0) 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
  mix-blend-mode: multiply;
}
.hero:hover .hero__glow { opacity: 1; }
@media (hover: none) { .hero__glow { display: none; } }

/* ──────────────────────────────────────────────
   3. TIPOGRAFÍA EDITORIAL
   ────────────────────────────────────────────── */

/* Comillas tipográficas gigantes en el testimonio central */
.stagger__card.is-center { position: relative; }
.stagger__card.is-center::before {
  content: '\201C';
  position: absolute;
  top: -6px;
  left: 22px;
  font-family: var(--serif);
  font-size: 6.5rem;
  line-height: 1;
  color: rgba(212, 175, 55, 0.45);
  pointer-events: none;
}

/* Estadísticas: dígitos enormes, tabulares, con guarismo dorado */
.numero__value {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.numero__value::after {
  content: '';
  display: block;
  width: 26px;
  height: 2px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, #C49A2C, transparent);
}

/* Inicial capitular en el primer párrafo de los artículos */
.article-content__inner > p:first-of-type::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3.6rem;
  line-height: 0.82;
  font-weight: 600;
  color: var(--navy);
  padding: 6px 12px 0 0;
}

/* ──────────────────────────────────────────────
   7. SELLOS DE CONFIANZA (reemplazo de la marquesina)
   ────────────────────────────────────────────── */
/* Banda puente: del final de la banda de compromiso (#101d3d) al navy del CTA (#1B2D5B) */
.seals {
  position: relative;
  padding: 64px 24px 76px;
  background: linear-gradient(180deg, #101d3d 0%, #16264a 52%, #1B2D5B 100%);
  text-align: center;
}
.seals__eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #C49A2C;
  margin-bottom: 38px;
}
.seals__grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 8px;
}
.seal__icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: radial-gradient(circle at 50% 35%, rgba(212,175,55,0.10), rgba(212,175,55,0) 70%);
  color: #D4AF37;
}
.seal__icon svg { width: 26px; height: 26px; }
/* Por defecto el icono se ve entero (también sin JS).
   Solo cuando JS marca .seal--draw se esconde para dibujarse. */
.seal--draw .seal__icon svg path,
.seal--draw .seal__icon svg circle,
.seal--draw .seal__icon svg rect,
.seal--draw .seal__icon svg polyline {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
}
.seal--draw.is-drawn .seal__icon svg path,
.seal--draw.is-drawn .seal__icon svg circle,
.seal--draw.is-drawn .seal__icon svg rect,
.seal--draw.is-drawn .seal__icon svg polyline {
  animation: sealDraw 1.2s var(--ease-out) forwards;
}
@keyframes sealDraw { to { stroke-dashoffset: 0; } }
.seal__title {
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
}
.seal__sub {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.5;
}
@media (max-width: 720px) {
  .seals { padding: 52px 24px 60px; }
  .seals__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; }
}

/* ──────────────────────────────────────────────
   3-bis. TRANSICIONES DE PÁGINA (View Transitions API)
   Degrada con elegancia: navegadores sin soporte lo ignoran
   ────────────────────────────────────────────── */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
  animation-timing-function: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* La imagen del producto "vuela" entre la tarjeta y la ficha */
.pdp__main img { view-transition-name: hero-product; }

/* ──────────────────────────────────────────────
   5. CURSOR MAGNÉTICO — suaviza el movimiento del botón
   ────────────────────────────────────────────── */
.btn--solid, .pdp__buy-btn, .crossband__btn, .giftband__btn {
  will-change: transform;
}

/* ──────────────────────────────────────────────
   SECCIÓN "HECHO EN NUESTRA FÁBRICA" con vídeo real
   ────────────────────────────────────────────── */
.fabrica {
  background: var(--white);
  padding: clamp(70px, 9vw, 120px) 24px;
}
.fabrica__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.fabrica__frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  aspect-ratio: 464 / 832;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 34px 80px -26px rgba(13, 27, 62, 0.5);
  background: #0A1128;
}
.fabrica__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fabrica__badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(10, 17, 40, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 7px 13px;
  border-radius: 100px;
}
.fabrica__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: heroLive 2s infinite;
}
@keyframes heroLive {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.fabrica__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #C49A2C;
  margin-bottom: 14px;
}
.fabrica__title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 18px;
}
.fabrica__title em { font-style: italic; color: #C49A2C; }
.fabrica__lead {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 24px;
}
.fabrica__points {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
}
.fabrica__points li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.94rem;
  color: var(--text);
  line-height: 1.5;
  padding: 7px 0;
}
.fabrica__points svg { color: #C49A2C; flex-shrink: 0; margin-top: 2px; }

@media (max-width: 820px) {
  .fabrica__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    justify-items: center;
    text-align: center;
  }
  .fabrica__frame { max-width: 300px; }
  .fabrica__points { display: inline-block; text-align: left; }
}


/* ==============================================
   ICONOS QUE SE DIBUJAN en la ficha (envío/prueba/garantía)
   ============================================== */
.trust-pill--draw svg path,
.trust-pill--draw svg circle,
.trust-pill--draw svg rect {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
}
.trust-pill--draw.is-drawn svg path,
.trust-pill--draw.is-drawn svg circle,
.trust-pill--draw.is-drawn svg rect {
  animation: sealDraw 1.1s var(--ease-out) forwards;
}

/* ==============================================
   MICROINTERACCIÓN al elegir medida — "pop"
   ============================================== */
@keyframes pillPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.09); }
  100% { transform: scale(1); }
}
.size-pill.is-pop { animation: pillPop 0.34s var(--ease-out); }
