/* =============================================================================
   CHIKÍ — Sitio de marca · v2 "aire y libertad"
   Un solo lienzo cálido que fluye (sin bloques ni tarjetas duras, sin píldoras).
   Imágenes que flotan, mucho espacio, tipografía serif grande.
   ============================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Nunito+Sans:wght@400;600;700&display=swap');

:root {
  --verde:       #163f2c;
  --verde-hoja:  #2f8a56;
  --crema:       #f5ecd6;
  --marfil:      #fdf8ec;
  --terracota:   #d97a34;
  --dorado:      #e2a53a;
  --rojo:        #c8452e;

  --texto:       #2a3a30;
  --texto-suave: #6a7a6f;

  --fuente-tit: "Fraunces", Palatino, Georgia, serif;
  --fuente-txt: "Nunito Sans", system-ui, -apple-system, sans-serif;
  --max: 1220px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fuente-txt); color: var(--texto); line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  /* Un solo lienzo continuo: cielo suave arriba que se funde al marfil */
  background:
    radial-gradient(140% 60% at 78% -8%, rgba(47,138,86,.16) 0%, transparent 46%),
    linear-gradient(180deg, #eaf2e6 0%, var(--marfil) 620px) no-repeat,
    var(--marfil);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--fuente-tit); font-weight: 500; line-height: 1.04; letter-spacing: -.015em; text-wrap: balance; }

.contenedor { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.seccion { padding: clamp(70px, 11vw, 150px) 0; position: relative; }

/* Etiqueta suave (sin barritas duras) */
.kicker {
  font-family: var(--fuente-txt); font-weight: 700; text-transform: uppercase;
  letter-spacing: .22em; font-size: 12px; color: var(--terracota); margin-bottom: 18px;
}

/* Enlaces-acción con subrayado animado (nada de píldoras) */
.enlace {
  font-weight: 700; color: var(--verde); position: relative; display: inline-flex;
  align-items: center; gap: 8px; padding-bottom: 3px;
}
.enlace::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: currentColor; transform: scaleX(1); transform-origin: left; transition: transform .3s ease; }
.enlace:hover::after { transform: scaleX(0); transform-origin: right; }
.enlace .flecha { transition: transform .25s ease; }
.enlace:hover .flecha { transform: translateX(4px); }
/* Botón suave (radio chico, no píldora) */
.boton {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15.5px;
  background: var(--verde); color: var(--crema); padding: 15px 28px; border-radius: 12px;
  transition: transform .2s ease, background .2s ease; border: 0; cursor: pointer;
}
.boton:hover { transform: translateY(-2px); background: #1d5238; }
.boton--claro { background: var(--crema); color: var(--verde); }
.boton--claro:hover { background: #fff; }

/* ============ BARRA ENVÍOS ============ */
.barra-envio { background: var(--verde); color: var(--crema); text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .03em; padding: 9px 16px; }
.barra-envio b { color: #fff; }

/* ============ NAV (plano, sin contenedor) ============ */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.nav.scrolled { background: rgba(253,248,236,.9); backdrop-filter: blur(12px); box-shadow: 0 8px 30px -22px rgba(22,63,44,.5); padding: 12px 32px; }
.nav__logo img { height: 46px; width: auto; transition: height .35s ease; }
.nav.scrolled .nav__logo img { height: 38px; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a { font-weight: 600; font-size: 15.5px; color: var(--verde); position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0; background: var(--terracota); transition: width .28s ease; }
.nav__links a:hover::after { width: 100%; }
.nav__links .nav__pedir { color: var(--terracota); }
.nav__menu { display: none; background: none; border: 0; color: var(--verde); cursor: pointer; padding: 6px; }
.nav__menu svg { width: 28px; height: 28px; }

/* ============ HERO ============ */
.hero { padding: clamp(20px, 5vw, 56px) 0 clamp(40px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(46px, 8vw, 104px); color: var(--verde); font-weight: 400; }
.hero h1 em { font-style: italic; color: var(--terracota); }
.hero__sub { font-size: clamp(18px, 1.7vw, 21px); color: var(--texto-suave); max-width: 34ch; margin: 26px 0 34px; }
.hero__acciones { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero__firma { margin-top: 40px; font-size: 14px; letter-spacing: .04em; color: var(--texto-suave); }
.hero__art { position: relative; min-height: 420px; }
.hero__juana { width: min(100%, 500px); margin: 0 auto; filter: drop-shadow(0 40px 40px rgba(22,63,44,.18)); position: relative; z-index: 2; animation: flotar 6s ease-in-out infinite; }
.hero__casa { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); width: 132%; max-width: none; z-index: 0; opacity: .96; pointer-events: none; filter: drop-shadow(0 18px 20px rgba(22,63,44,.1)); }
.hero__halo { position: absolute; inset: 4% 0 auto; width: 78%; aspect-ratio: 1; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle, rgba(226,165,58,.28), transparent 62%); z-index: 1; animation: latir 7s ease-in-out infinite; }
@keyframes flotar { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
@keyframes latir { 0%,100% { transform: scale(1); opacity: .8 } 50% { transform: scale(1.06); opacity: 1 } }

/* ===== Vapor caliente animado ===== */
.vapor { position: absolute; z-index: 3; width: 90px; height: 90px; pointer-events: none; }
.vapor span {
  position: absolute; bottom: 0; left: 50%; width: 14px; height: 46px;
  background: linear-gradient(to top, rgba(255,255,255,0), rgba(255,255,255,.85));
  border-radius: 50%; filter: blur(7px); opacity: 0;
  animation: subir 3.4s ease-in-out infinite;
}
.vapor span:nth-child(1) { margin-left: -22px; animation-delay: 0s; }
.vapor span:nth-child(2) { margin-left: -4px; animation-delay: .7s; height: 56px; }
.vapor span:nth-child(3) { margin-left: 14px; animation-delay: 1.5s; }
@keyframes subir {
  0%   { transform: translateY(0) translateX(0) scaleX(1); opacity: 0; }
  25%  { opacity: .75; }
  60%  { transform: translateY(-46px) translateX(6px) scaleX(1.4); opacity: .35; }
  100% { transform: translateY(-84px) translateX(-4px) scaleX(1.9); opacity: 0; }
}
.hero__vapor { left: 50%; top: 42%; transform: translateX(-50%); }
@media (prefers-reduced-motion: reduce) {
  .hero__juana, .hero__halo, .vapor span { animation: none; }
  .vapor span { opacity: .4; }
}

/* Reproductor de vapor: puntitos que suben (deco sutil) */

/* ============ PRODUCTOS (fila flotante, sin tarjetas) ============ */
.encabezado { text-align: center; max-width: 620px; margin: 0 auto clamp(48px, 6vw, 86px); }
.encabezado h2 { font-size: clamp(34px, 5.4vw, 66px); color: var(--verde); font-weight: 400; }
.encabezado p { color: var(--texto-suave); font-size: 19px; margin-top: 18px; }
.fila-prod { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); align-items: end; }
.prod { text-align: center; }
.prod__caja {
  position: relative; padding-bottom: 34px;
  display: flex; align-items: flex-end; justify-content: center;
}
.prod__caja::after { /* sombra de piso flotante (elipse difusa) */
  content: ""; position: absolute; left: 16%; right: 16%; bottom: 14px; height: 26px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(22,63,44,.28), transparent 72%);
  filter: blur(4px); border-radius: 50%; transition: transform .4s ease, opacity .4s ease;
}
/* mix-blend elimina el fondo blanco del mockup contra el lienzo crema */
.prod__caja img { width: 100%; max-width: 380px; mix-blend-mode: multiply; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.prod:hover .prod__caja img { transform: translateY(-14px) rotate(-1.5deg); }
.prod:hover .prod__caja::after { transform: scale(.9); opacity: .7; }
.prod__tag { color: var(--terracota); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; }
.prod h3 { font-size: 27px; color: var(--verde); margin: 10px 0 6px; font-weight: 500; }
.prod p { color: var(--texto-suave); font-size: 15.5px; max-width: 32ch; margin: 0 auto 14px; }
.tallas { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.talla { font-size: 12.5px; font-weight: 700; color: var(--verde); background: rgba(22,63,44,.07); padding: 5px 12px; border-radius: 8px; }

/* ============ HISTORIA (casona flotando en escena abierta) ============ */
.historia__intro { max-width: 780px; margin: 0 auto; text-align: center; }
.historia__intro h2 { font-size: clamp(34px, 5.4vw, 66px); color: var(--verde); font-weight: 400; margin-bottom: 26px; }
.historia__intro p { color: var(--texto-suave); font-size: 19.5px; margin: 0 auto 18px; max-width: 60ch; }
.historia__firma { margin-top: 30px; font-family: var(--fuente-tit); font-style: italic; color: var(--texto-suave); font-size: 19px; }
.historia__firma span { color: var(--terracota); }
.destaca { color: var(--verde); font-style: italic; font-family: var(--fuente-tit); font-weight: 500; }
.casona { margin-top: clamp(30px, 5vw, 64px); text-align: center; }
.casona img { width: min(100%, 880px); margin: 0 auto; filter: drop-shadow(0 26px 26px rgba(22,63,44,.14)); }
.casona figcaption { margin-top: 6px; color: var(--texto-suave); font-size: 15px; }
.casona figcaption span { color: var(--terracota); font-family: var(--fuente-tit); font-style: italic; }

/* ============ PROMESA (línea aireada, sin cajas) ============ */
.promesa .encabezado { margin-bottom: clamp(40px, 5vw, 70px); }
.fila-promesa { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 44px); }
.promesa-item { text-align: center; }
.promesa-item__ico { width: 92px; height: 92px; object-fit: cover; margin: 0 auto 18px; border-radius: 20px; box-shadow: 0 12px 26px -14px rgba(22,63,44,.45); transition: transform .3s ease; }
.promesa-item:hover .promesa-item__ico { transform: translateY(-5px) rotate(-2deg); }
.promesa-item h3 { font-size: 21px; color: var(--verde); font-weight: 500; margin-bottom: 8px; }
.promesa-item p { color: var(--texto-suave); font-size: 15px; }

/* ============ COMPRAR ============ */
.comprar__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.comprar h2 { font-size: clamp(32px, 5vw, 60px); color: var(--verde); font-weight: 400; margin-bottom: 22px; }
.comprar p { color: var(--texto-suave); font-size: 18px; margin-bottom: 26px; max-width: 44ch; }
.comprar__pasos { list-style: none; display: flex; flex-direction: column; gap: 20px; margin-bottom: 34px; }
.comprar__pasos li { display: flex; gap: 16px; align-items: baseline; font-size: 17px; }
.comprar__pasos .n { font-family: var(--fuente-tit); font-size: 24px; color: var(--terracota); font-weight: 600; flex: 0 0 auto; }
.comprar__pasos b { color: var(--verde); }
.comprar__acciones { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.comprar__art img { width: min(100%, 360px); margin: 0 auto; filter: drop-shadow(0 30px 30px rgba(22,63,44,.16)); }

/* ============ FOOTER ============ */
.footer { background: var(--verde); color: rgba(245,236,214,.82); padding: clamp(56px, 7vw, 90px) 0 34px; margin-top: clamp(40px, 6vw, 90px); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; }
.footer__logo img { height: 66px; margin-bottom: 18px; }
.footer p { font-size: 15px; max-width: 34ch; }
.footer h4 { font-family: var(--fuente-txt); text-transform: uppercase; letter-spacing: .16em; font-size: 11.5px; color: var(--dorado); margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer a:hover { color: #fff; }
.footer__base { border-top: 1px solid rgba(245,236,214,.16); margin-top: 50px; padding-top: 24px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; }

/* ============ PRODUCTO: clickable ============ */
.prod { cursor: pointer; }
.prod h3 { transition: color .2s ease; }
.prod:hover h3 { color: var(--terracota); }

/* ============ MODAL / STORE ============ */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.abierto { display: block; }
.modal__fondo { position: absolute; inset: 0; background: rgba(22,40,30,.55); backdrop-filter: blur(4px); animation: aparecer .3s ease; }
.modal__panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(920px, calc(100vw - 36px)); max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--marfil); border-radius: 26px; box-shadow: 0 40px 100px -30px rgba(22,63,44,.6);
  animation: subirModal .35s cubic-bezier(.2,.7,.2,1);
}
@keyframes aparecer { from { opacity: 0 } to { opacity: 1 } }
@keyframes subirModal { from { opacity: 0; transform: translate(-50%, -46%) } to { opacity: 1; transform: translate(-50%, -50%) } }
.modal__cerrar {
  position: absolute; top: 16px; right: 16px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(22,63,44,.08); border: 0; cursor: pointer; color: var(--verde); font-size: 22px; line-height: 1;
  display: grid; place-items: center; transition: background .2s;
}
.modal__cerrar:hover { background: rgba(22,63,44,.16); }

.ficha { display: grid; grid-template-columns: .95fr 1.05fr; }
.ficha__img { position: relative; background: var(--crema); border-radius: 26px 0 0 26px; display: flex; align-items: center; justify-content: center; padding: 40px; }
.ficha__img img { width: min(100%, 300px); mix-blend-mode: multiply; animation: flotar 6s ease-in-out infinite; }
.tallas-sel { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.talla-op { font-size: 14px; font-weight: 700; color: var(--verde); background: #fff; border: 1.5px solid rgba(22,63,44,.2); padding: 9px 16px; border-radius: 10px; cursor: pointer; transition: all .18s; }
.talla-op.activa { background: var(--verde); color: var(--crema); border-color: var(--verde); }
.ficha__info { padding: clamp(28px, 4vw, 44px); }
.ficha__tag { color: var(--terracota); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; }
.ficha__info h3 { font-family: var(--fuente-tit); font-size: clamp(28px, 4vw, 40px); color: var(--verde); font-weight: 500; margin: 8px 0 6px; }
.ficha__peso { color: var(--texto-suave); font-weight: 700; font-size: 14px; }
.ficha__brief { color: var(--texto); font-size: 16px; margin: 18px 0; line-height: 1.7; }
.ficha__receta { background: rgba(47,138,86,.08); border-radius: 16px; padding: 18px 20px; margin-bottom: 20px; }
.ficha__receta h4 { font-family: var(--fuente-txt); text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px; color: var(--verde-hoja); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.ficha__receta p { color: var(--texto-suave); font-size: 15px; }
.ficha__precio { font-family: var(--fuente-tit); font-size: 30px; color: var(--verde); font-weight: 600; margin-bottom: 18px; }
.ficha__compra { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid rgba(22,63,44,.2); border-radius: 12px; overflow: hidden; }
.stepper button { width: 42px; height: 46px; background: none; border: 0; font-size: 22px; color: var(--verde); cursor: pointer; transition: background .15s; }
.stepper button:hover { background: rgba(22,63,44,.08); }
.stepper input { width: 46px; height: 46px; border: 0; text-align: center; font-family: var(--fuente-txt); font-weight: 700; font-size: 17px; color: var(--verde); background: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 680px) {
  .ficha { grid-template-columns: 1fr; }
  .ficha__img { border-radius: 26px 26px 0 0; padding: 30px; }
  .ficha__img img { width: min(62%, 220px); }
}

/* ============ FORM PEDIDO ============ */
.campo2 { display: block; margin-bottom: 16px; }
.campo2 label { display: block; font-weight: 700; font-size: 13px; color: var(--verde); margin-bottom: 6px; }
.campo2 input { width: 100%; padding: 13px 15px; border: 1.5px solid rgba(22,63,44,.2); border-radius: 12px; font-family: inherit; font-size: 15.5px; color: var(--texto); background: #fff; }
.campo2 input:focus { outline: none; border-color: var(--verde-hoja); box-shadow: 0 0 0 3px rgba(47,138,86,.14); }
.subir { display: block; border: 1.6px dashed rgba(22,63,44,.32); border-radius: 12px; padding: 22px; text-align: center; cursor: pointer; color: var(--texto-suave); background: #fff; font-weight: 600; transition: border-color .2s, color .2s; }
.subir:hover { border-color: var(--verde-hoja); color: var(--verde); }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav { padding: 16px 22px; }
  .nav__links { position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px; background: var(--marfil); padding: 40px; box-shadow: -20px 0 60px -30px rgba(22,63,44,.5); transform: translateX(100%); transition: transform .3s ease; }
  .nav__links.abierto { transform: none; }
  .nav__links a { font-size: 20px; }
  .nav__menu { display: block; z-index: 61; }
  .hero__grid, .comprar__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .hero__art img { width: min(70%, 340px); }
  .hero h1 { font-size: clamp(44px, 13vw, 72px); }
  .fila-prod { grid-template-columns: 1fr; gap: 48px; max-width: 360px; margin: 0 auto; }
  .fila-promesa { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .comprar__art { display: none; }
}
@media (max-width: 520px) {
  .contenedor { padding: 0 22px; }
  .fila-promesa { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}
