/* ==========================================================================
   calma & té — Maqueta v2 (portada)
   Inspiración de movimiento: Joy Rush. Colores y tipografía: los de la marca.
   ========================================================================== */

/* ── Variables ── */
.hv2 {
  /* Marca */
  --cream:      #f4f1ea;
  --cream-2:    #fbf9f4;
  --sand:       #e3e0d1;
  --forest:     #2d4b3e;
  --forest-2:   #4A5D4E;
  --sage:       #B2AC88;
  --terracotta: #D27D2D;
  --wine:       #8E354A;
  --ink:        #2C3530;

  /* Color de cada ritual (versión viva del pastel de las tarjetas actuales) */
  --c-restaura: #a9c4b3;
  --c-refresca: #b9a7dd;
  --c-renueva:  #9cc6dc;
  --c-sana:     #ecd06a;
  --c-siente:   #e6a9b4;
  --c-coleccion:#D27D2D;

  /* Versión oscura de cada color para texto pintado (legibilidad) */
  --t-restaura: #4f7a63;
  --t-refresca: #7a5fba;
  --t-renueva:  #347fa8;
  --t-sana:     #b8900f;
  --t-siente:   #b84a63;

  --radius-lg: 32px;
  --radius-md: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1240px;
}

/* ── Reset acotado a la portada ── */
.hv2 { font-family: 'Quicksand', sans-serif; background: var(--cream); color: var(--forest); line-height: 1.55; overflow-x: clip; }
:where(.hv2) img { display: block; max-width: 100%; }
:where(.hv2) ul, :where(.hv2) ol { list-style: none; }
:where(.hv2) a { color: inherit; text-decoration: none; }
:where(.hv2) button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
.hv2-container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
/* ── Botones ── */
.hv2-btn-group { display: inline-flex; align-items: center; gap: 6px; }
.hv2-btn, .hv2-btn-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; border: 1.5px solid var(--forest); border-radius: 999px;
  font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  background: transparent; color: var(--forest);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.hv2-btn { padding: 0 28px; }
.hv2-btn-arrow { width: 48px; }
.hv2-btn-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.hv2-btn-group:hover .hv2-btn-arrow svg { transform: translate(2px, -2px); }
.hv2-btn:hover, .hv2-btn-arrow:hover { background: var(--forest); color: var(--cream); }
.hv2-btn--solid { background: var(--forest); color: var(--cream); }
.hv2-btn--solid:hover { background: var(--terracotta); border-color: var(--terracotta); }
.hv2-btn--sm, .hv2-btn--sm + .hv2-btn-arrow { height: 42px; }
.hv2-btn--sm { padding: 0 20px; font-size: 12px; }
.hv2-btn--sm + .hv2-btn-arrow { width: 42px; }

/* ── Cinta (marquee) ── */
.hv2-marquee { overflow: hidden; white-space: nowrap; }
.hv2-marquee__track { display: inline-flex; animation: marquee 32s linear infinite; }
.hv2-marquee:hover .hv2-marquee__track { animation-play-state: paused; }
.hv2-marquee ul { display: inline-flex; align-items: center; flex-shrink: 0; }
.hv2-marquee li { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; }
.hv2-marquee li::after { content: ''; width: 14px; height: 14px; background: currentColor; opacity: .85;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
@keyframes marquee { to { transform: translateX(-50%); } }

.hv2-marquee--top  { background: var(--forest); color: var(--cream); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 9px 0; }
.hv2-marquee--band { background: var(--terracotta); color: var(--cream); font-size: clamp(16px, 1.6vw, 22px); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 14px 0; }

/* ── Titulares que aparecen (letra a letra) ── */
.hv2-split .hv2-word { display: inline-block; white-space: nowrap; }
.hv2-split .hv2-char { display: inline-block; opacity: 0; transform: translateY(.7em) rotate(4deg); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 22ms); }
.hv2-split.hv2-in .hv2-char { opacity: 1; transform: none; }

.hv2-js .hv2-reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.hv2-js .hv2-reveal.hv2-in { opacity: 1; transform: none; }

/* ── Hero ── */
.hv2-hero { position: relative; min-height: clamp(620px, 100vh - 124px, 880px); display: flex; justify-content: center; overflow: hidden; border-radius: 0 0 56px 56px; isolation: isolate; }
.hv2-hero__bg { position: absolute; inset: 0; z-index: -1; }
.hv2-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 85%; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
.hv2-hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(244,241,234,.97) 0%, rgba(244,241,234,.9) 40%, rgba(244,241,234,.55) 62%, rgba(244,241,234,0) 80%); }
@keyframes heroZoom { to { transform: scale(1); } }
.hv2-hero__content { text-align: center; padding-top: clamp(32px, 6vh, 70px); max-width: 1120px; }
.hv2-hero__eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 18px; }
.hv2-hero__title { font-size: clamp(36px, 5.6vw, 84px); font-weight: 700; line-height: .98; letter-spacing: -.025em; }
.hv2-hero__title .hv2-accent { color: var(--terracotta); }
.hv2-hero__sub { max-width: 560px; margin: 22px auto 30px; font-size: clamp(15px, 1.4vw, 18px); font-weight: 600; color: var(--forest); }
.hv2-hero__buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Rituales (carrusel) ── */
.hv2-rituales { padding: clamp(64px, 9vw, 130px) 0 clamp(48px, 7vw, 90px); }
.hv2-section-head { position: relative; text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.hv2-section-head h2 { font-size: clamp(30px, 4.4vw, 60px); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.hv2-section-head p { margin-top: 12px; font-weight: 500; color: var(--forest-2); }
.hv2-carousel-ctrl { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; gap: 8px; }
.hv2-carousel-ctrl button { width: 48px; height: 48px; border: 1.5px solid var(--forest); border-radius: 50%; display: grid; place-items: center; transition: background .3s, color .3s; }
.hv2-carousel-ctrl button:hover { background: var(--forest); color: var(--cream); }
.hv2-carousel-ctrl svg { width: 18px; height: 18px; }

.hv2-carousel { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 40px max(24px, calc((100vw - var(--container)) / 2)) 28px; scrollbar-width: none; scroll-padding-inline: max(24px, calc((100vw - var(--container)) / 2)); }
.hv2-carousel::-webkit-scrollbar { display: none; }

.hv2-product { --accent: var(--c-restaura); --tilt: -6deg; flex: 0 0 clamp(240px, 22vw, 290px); scroll-snap-align: start; text-align: center; }
.hv2-product:nth-child(even) { --tilt: 6deg; }
.hv2-product__media { position: relative; aspect-ratio: 4 / 5; display: block; }
/* Forma de color que aparece detrás */
.hv2-product__blob { position: absolute; inset: -8% -10%; z-index: 0; background: var(--accent); border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%; transform: scale(.4) rotate(-20deg); opacity: 0; transition: transform .7s var(--ease), opacity .4s ease; }
.hv2-product__media img { position: relative; z-index: 1; object-fit: cover; transition: transform .7s var(--ease), box-shadow .5s ease; box-shadow: none; }
.hv2-product:hover .hv2-product__blob, .hv2-product.hv2-active .hv2-product__blob, .hv2-product:focus-within .hv2-product__blob { transform: scale(1) rotate(0); opacity: 1; animation: morph 6s ease-in-out infinite alternate; }
.hv2-product:hover .hv2-product__media img, .hv2-product.hv2-active .hv2-product__media img, .hv2-product:focus-within .hv2-product__media img { transform: rotate(var(--tilt)) translateY(-10px) scale(1.05); box-shadow: none; }
@keyframes morph {
  0%   { border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%; }
  100% { border-radius: 42% 58% 46% 54% / 56% 44% 56% 44%; }
}
.hv2-product__name { margin-top: 26px; font-size: 22px; font-weight: 700; line-height: 1.15; }
.hv2-product__desc { margin: 6px auto 0; max-width: 24ch; font-size: 14px; font-weight: 500; color: var(--forest-2); min-height: 3em; }
.hv2-product__price { margin-top: 8px; font-weight: 700; font-size: 17px; color: var(--terracotta); }
.hv2-product .hv2-btn-group { margin-top: 16px; }

/* Cuando lleguen las fotos recortadas (PNG transparente): añade .hv2-is-cutout al carrusel */
.hv2-carousel.hv2-is-cutout .hv2-product__media img { object-fit: contain; border-radius: 0; box-shadow: none; filter: drop-shadow(0 18px 18px rgba(45, 75, 62, .22)); }
.hv2-carousel.hv2-is-cutout .hv2-product__blob { inset: 6% 0; border-radius: 50%; }

/* Pantallas anchas: las 6 referencias se ven de entrada, sin flechas ni desplazamiento */
@media (min-width: 1100px) {
  .hv2-carousel { overflow: visible; gap: 28px; padding-inline: max(24px, calc((100% - var(--container)) / 2)); scroll-snap-type: none; }
  .hv2-product { flex: 1 1 0; min-width: 0; }
  .hv2-product__name { font-size: 20px; }
  .hv2-carousel-ctrl { display: none; }
}

/* ── Frase que se pinta + nubes ── */
.hv2-mensaje { position: relative; padding: clamp(60px, 9vw, 130px) 0 clamp(70px, 10vw, 150px); background: var(--cream-2); overflow: hidden; }
.hv2-mensaje__kicker { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 26px; }
.hv2-paint { max-width: 1020px; margin: 0 auto; text-align: center; font-size: clamp(28px, 4.6vw, 62px); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
.hv2-paint .hv2-pw { color: rgba(45, 75, 62, .16); transition: color .5s ease; }
.hv2-paint .hv2-pw.hv2-on { color: var(--c, var(--forest)); }
.hv2-paint .hv2-a-restaura { --c: var(--t-restaura); } .hv2-paint .hv2-a-refresca { --c: var(--t-refresca); }
.hv2-paint .hv2-a-renueva  { --c: var(--t-renueva); }  .hv2-paint .hv2-a-sana    { --c: var(--t-sana); }
.hv2-paint .hv2-a-siente   { --c: var(--t-siente); }

.hv2-clouds { position: relative; margin-top: clamp(50px, 7vw, 100px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; min-height: 560px; }
.hv2-clouds__stage { position: relative; min-height: 560px; }
.hv2-cloud { position: absolute; filter: drop-shadow(14px 14px 0 var(--terracotta)); will-change: transform; }
.hv2-cloud img { width: 100%; height: 100%; object-fit: cover; clip-path: url(#cloud-shape); }
.hv2-cloud--lg { width: min(440px, 78%); aspect-ratio: 1; left: 0; bottom: 0; }
.hv2-cloud--sm { width: min(210px, 40%); aspect-ratio: 1; filter: drop-shadow(10px 10px 0 var(--sage)); }
.hv2-cloud--a { left: 4%; top: 0; }
.hv2-cloud--b { left: 56%; top: 6%; filter: drop-shadow(10px 10px 0 var(--c-refresca)); }
.hv2-clouds__text { font-size: clamp(20px, 2.2vw, 30px); font-weight: 700; line-height: 1.25; }
.hv2-clouds__text p { margin-bottom: 26px; }
.hv2-stars { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 13px; font-weight: 600; color: var(--forest-2); }
.hv2-stars svg { width: 16px; height: 16px; fill: var(--terracotta); }

/* ── Preparación ── */
.hv2-preparar { background: var(--sand); padding: clamp(60px, 9vw, 120px) 0; border-radius: 56px; }
.hv2-preparar__layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hv2-preparar__img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 14px 14px 0 var(--sage); }
.hv2-preparar__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hv2-preparar__img:hover img { transform: scale(1.05); }
.hv2-preparar h2 { font-size: clamp(30px, 4vw, 54px); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.hv2-preparar__sub { margin: 12px 0 28px; font-weight: 500; color: var(--forest-2); }
.hv2-stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.hv2-stat-card { border: 1.5px solid var(--forest); border-radius: var(--radius-md); padding: 18px 12px 14px; text-align: center; background: rgba(251, 249, 244, .55); transition: transform .4s var(--ease), background .3s; }
.hv2-stat-card:hover { transform: translateY(-6px) rotate(-1.5deg); background: var(--cream-2); }
.hv2-stat-card strong { display: block; font-size: clamp(24px, 3vw, 38px); font-weight: 700; line-height: 1; }
.hv2-stat-card span { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(45, 75, 62, .25); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hv2-steps { display: grid; gap: 18px; }
.hv2-step { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; }
.hv2-step__n { font-size: 40px; font-weight: 700; line-height: 1; color: var(--terracotta); }
.hv2-step h3 { font-size: 18px; font-weight: 700; }
.hv2-step p { font-size: 15px; font-weight: 500; color: var(--forest-2); }
.hv2-recipe { display: inline-block; margin-top: 26px; padding: 12px 22px; border-radius: 999px; background: var(--forest); color: var(--cream); font-size: 13px; font-weight: 700; letter-spacing: .08em; }

/* ── Reseñas ── */
.hv2-resenas { padding: clamp(60px, 9vw, 120px) 0; }
.hv2-resenas__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hv2-review { border: 1.5px solid var(--forest); border-radius: var(--radius-md); padding: 28px; background: var(--cream-2); transition: transform .4s var(--ease); }
.hv2-review:hover { transform: translateY(-8px); }
.hv2-review .hv2-stars { margin: 0 0 14px; }
.hv2-review p { font-weight: 600; font-size: 16px; }
.hv2-review footer { margin-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--forest-2); }

/* ── Envíos ── */
.hv2-envios { background: var(--forest); color: var(--cream); border-radius: 56px 56px 0 0; padding: 44px 0; }
.hv2-envios__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: center; }
.hv2-envios h3 { font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); }
.hv2-envios p { margin-top: 6px; font-size: 15px; font-weight: 500; opacity: .9; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .hv2-clouds, .hv2-preparar__layout { grid-template-columns: 1fr; }
  .hv2-clouds__stage { min-height: 460px; }
  .hv2-resenas__grid, .hv2-envios__inner { grid-template-columns: 1fr; }
  .hv2-carousel-ctrl { position: static; transform: none; justify-content: center; margin-top: 18px; }
  .hv2-hero, .hv2-preparar { border-radius: 0 0 36px 36px; }
  .hv2-preparar { border-radius: 36px; margin-inline: 8px; }
  .hv2-envios { border-radius: 36px 36px 0 0; }
}
@media (max-width: 560px) {
  .hv2-product { flex-basis: 70%; }
  .hv2-stat-cards { grid-template-columns: 1fr; }
}

/* ── Accesibilidad: sin movimiento ── */
@media (prefers-reduced-motion: reduce) {
  .hv2 { scroll-behavior: auto; }
  .hv2 *, .hv2 *::before, .hv2 *::after { animation: none !important; transition-duration: .01ms !important; }
  .hv2-split .hv2-char, .hv2-js .hv2-reveal { opacity: 1; transform: none; }
  .hv2-paint .hv2-pw { color: var(--c, var(--forest)); }
  .hv2-cloud { transform: none !important; }
}



/* ── Ajustes de integración con WordPress ── */
.hv2 .ritual-explore-btn { margin-top: 0; align-self: auto; font-family: inherit; opacity: 1; }
.hv2-product__media { width: 100%; padding: 0; cursor: pointer; }
.hv2-product__name { color: var(--forest); }
.hv2-product__price .woocommerce-Price-amount { font-weight: 700; }
.hv2-product__price del { opacity: .5; margin-right: 6px; }
.hv2-product__price ins { text-decoration: none; }
.hv2-clouds__narrative { margin: -10px 0 26px; font-size: 15px; font-weight: 500; line-height: 1.6; color: var(--forest-2); }
.hv2-preparar__note { margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--forest-2); }
.hv2-accent { color: var(--terracotta); }
.hv2-hero { margin: 0; }
.hv2-section-head h2, .hv2-preparar h2, .hv2-hero__title { font-family: 'Quicksand', sans-serif; }

/* ── Correcciones de especificidad frente a main.css (.ritual-explore-btn) ── */
.hv2-btn-arrow { padding: 0; }
.hv2-product__media { border: 0; background: none; margin: 0; font-size: inherit; line-height: normal; text-align: inherit; }
/* Tarjetas del mismo alto: los botones quedan alineados abajo aunque la descripción tenga 1, 2 o 3 líneas */
.hv2-product { display: flex; flex-direction: column; align-items: center; }
.hv2-product .hv2-btn-group { margin-top: auto; padding-top: 16px; }
.hv2-product__desc { min-height: 0; }
/* La imagen llena siempre el cuadro 4:5. Dentro de un <button> el alto en % no se resolvía y la foto
   quedaba centrada y más baja que en los <a> (tarjeta de la colección). */
.hv2-product__media img { position: absolute; inset: 0;  }