/* ==========================================================================
   Pastoreo — sistema visual
   Una sans (Hanken Grotesk) · lino y tinta · un acento: el burdeos del logo
   Movimiento: 700–1000ms, cubic-bezier(.16,1,.3,1), respeta prefers-reduced-motion
   ========================================================================== */

:root {
  --bg: #f4f1ec;
  --bg-2: #ebe5dc;
  --card: #fbf9f5;
  --ink: #1b1415;
  --muted: #6b5f5c;
  --line: rgba(27, 20, 21, .1);
  --line-2: rgba(27, 20, 21, .2);
  --wine: #6e1630;
  --wine-2: #5a1027;
  --accent: #7d1d3a;
  --cream: #f4ece1;
  --cream-2: rgba(244, 236, 225, .74);

  --f: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --r-lg: 28px;
  --r: 20px;
  --header-h: 78px;
  --shadow: 0 30px 70px -30px rgba(27, 20, 21, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--wine); color: var(--cream); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; transition: top .3s var(--ease); }
.skip:focus { top: 12px; }

/* ---------- Tipografía ---------- */
.display { font-size: clamp(3rem, 1.2rem + 6.4vw, 7.6rem); line-height: .88; letter-spacing: -.055em; font-weight: 600; }
.h2 { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.6rem); line-height: .94; letter-spacing: -.045em; font-weight: 600; text-wrap: balance; }
.h3 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 600; }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: var(--muted); max-width: 520px; }
.kicker { font-size: .9rem; font-weight: 500; color: var(--accent); margin-bottom: 16px; }
.muted { color: var(--muted); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; font-size: 1rem; white-space: nowrap; transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease); }
.btn:hover { background: #3a2c2e; }
.btn:active { transform: scale(.97); }
.btn svg { transition: transform .5s var(--ease); }
.btn:hover svg.arr { transform: translateX(4px); }
.btn--wine { background: var(--accent); }
.btn--wine:hover { background: var(--wine-2); }
.btn--cream { background: var(--cream); color: var(--wine-2); }
.btn--cream:hover { background: #fff; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn--ghost-light { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(244, 236, 225, .45); }
.btn--ghost-light:hover { background: var(--cream); color: var(--wine-2); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .92rem; }
.btn--block { width: 100%; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }
.link svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.link:hover svg { transform: translateX(4px); }

/* ---------- Cabecera ---------- */
.header { position: sticky; top: 0; z-index: 40; background: rgba(244, 241, 236, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: box-shadow .4s var(--ease); }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header__in { max-width: var(--max); margin: auto; padding: 0 var(--gutter); height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { margin-right: auto; display: block; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 10px 14px; border-radius: 999px; font-weight: 500; font-size: .96rem; color: var(--muted); transition: color .3s, background .3s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.header__act { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; position: relative; }
.menu-btn i { position: absolute; left: 13px; right: 13px; height: 1.8px; background: var(--ink); border-radius: 2px; transition: transform .45s var(--ease); }
.menu-btn i:nth-child(1) { top: 19px; } .menu-btn i:nth-child(2) { top: 26px; }
.menu-btn[aria-expanded="true"] i:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.mnav { display: none; }

/* ---------- Secciones ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 160px) var(--gutter) 0; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 56px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 60px); }
.head > div { max-width: 820px; }
.head .lead { max-width: 400px; }

/* ---------- Hero: franja burdeos a todo el ancho, video al centro ---------- */
.hero { position: relative; background: var(--wine); color: var(--cream); overflow: hidden; isolation: isolate; padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 6vw, 80px); }
.hero__in { max-width: var(--max); margin: auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .82fr) minmax(0, .9fr); gap: clamp(20px, 3vw, 44px); align-items: end; }
.hero__title { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-bottom: 8px; }
.hero__title .kicker { color: #f0b9c6; }
.hero .display .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero .display .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease) var(--d, 0s); }
.is-ready .hero .display .line > span { transform: none; }
.hero .display em { font-style: normal; color: #f0b9c6; }
.hero__media { position: relative; aspect-ratio: 9 / 15; border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; background: var(--wine-2); clip-path: inset(100% 0 0 0 round 999px 999px 28px 28px); transition: clip-path 1.4s var(--ease) .2s; }
.is-ready .hero__media { clip-path: inset(0 0 0 0 round 999px 999px 28px 28px); }
.hero__media video, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__seal { position: absolute; left: -46px; bottom: 18%; width: 122px; height: 122px; z-index: 2; color: var(--cream); }
.hero__seal svg { width: 100%; height: 100%; animation: spin 24s linear infinite; }
.hero__seal text { font: 600 9.6px var(--f); letter-spacing: .34em; fill: currentColor; text-transform: uppercase; }
.hero__seal::after { content: ""; position: absolute; inset: 34%; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(125, 29, 58, .35); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__side { display: flex; flex-direction: column; gap: 26px; padding-bottom: 8px; }
.hero__side .lead { color: var(--cream-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__list { display: grid; border-top: 1px solid rgba(244, 236, 225, .22); }
.hero__list li { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(244, 236, 225, .22); font-weight: 500; }
.hero__list li span { color: var(--cream-2); font-weight: 400; font-size: .92rem; }
.hero__fade { opacity: 0; translate: 0 24px; transition: opacity 1s var(--ease) var(--d, .5s), translate 1s var(--ease) var(--d, .5s); }
.is-ready .hero__fade { opacity: 1; translate: 0 0; }

/* ---------- Cinta de ingredientes ---------- */
.band { background: var(--wine-2); color: var(--cream); overflow: hidden; padding: 18px 0; }
.band__track { display: flex; gap: 40px; width: max-content; animation: band 46s linear infinite; font-size: clamp(1.1rem, .9rem + .8vw, 1.6rem); font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.band__track i { font-style: normal; color: #f0b9c6; }
.band:hover .band__track { animation-play-state: paused; }
@keyframes band { to { transform: translateX(-50%); } }

/* ---------- Qué trae la tabla (puntos sobre la foto) ---------- */
.board { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.board__photo { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: visible; }
.board__photo > img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow); }
.board__photo::before { content: ""; position: absolute; inset: -4%; border-radius: 50%; border: 1.5px dashed var(--line-2); animation: spin 90s linear infinite; }
.spot { position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: var(--cream); color: var(--wine); font-weight: 600; font-size: .9rem; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: transform .45s var(--ease), background .3s, color .3s; }
.spot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid rgba(244, 236, 225, .9); opacity: 0; transform: scale(.7); transition: opacity .4s, transform .5s var(--ease); }
.spot:hover, .spot.is-on { transform: scale(1.18); background: var(--accent); color: var(--cream); }
.spot.is-on::after { opacity: 1; transform: scale(1); }
.board__list { counter-reset: b; }
.board__list li { border-top: 1px solid var(--line-2); }
.board__list li:last-child { border-bottom: 1px solid var(--line-2); }
.board__list button { width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; padding: 15px 4px; text-align: left; color: var(--muted); transition: color .3s, padding .5s var(--ease); }
.board__list button b { grid-column: 2; font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.board__list button span { grid-column: 2; font-size: .92rem; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .4s; }
.board__list button::before { counter-increment: b; content: counter(b, decimal-leading-zero); grid-row: 1 / span 2; font-size: .85rem; font-weight: 600; color: var(--accent); padding-top: 3px; }
.board__list button.is-on { padding-left: 12px; }
.board__list button.is-on span { max-height: 60px; opacity: 1; }

/* ---------- Formatos: lista con foto que sigue al cursor ---------- */
.formats { position: relative; }
.frow { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .5fr) minmax(0, 1.2fr) auto; gap: 24px; align-items: center; padding: 26px 4px; border-top: 1px solid var(--line-2); transition: padding .6s var(--ease), color .3s; }
.frow:last-child { border-bottom: 1px solid var(--line-2); }
.frow h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem); letter-spacing: -.04em; line-height: 1; transition: color .3s; }
.frow__para { font-size: .9rem; color: var(--accent); font-weight: 500; }
.frow p { color: var(--muted); font-size: .96rem; }
.frow__thumb { display: none; }
.frow:hover { padding-left: 16px; }
.frow:hover h3 { color: var(--accent); }
.float-img { position: fixed; left: 0; top: 0; width: 280px; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; pointer-events: none; z-index: 30; opacity: 0; transform: translate(-50%, -50%) scale(.85) rotate(-4deg); transition: opacity .35s var(--ease), transform .5s var(--ease); box-shadow: var(--shadow); }
.float-img.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
.float-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- El detalle (sello de lacre) ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.detail__photo { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 560px; }
.detail__photo img { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.detail__copy { background: var(--card); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 60px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.facts { display: grid; gap: 0; }
.facts li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts svg { width: 26px; height: 26px; color: var(--accent); }
.facts b { display: block; font-weight: 600; font-size: 1.05rem; }
.facts span { color: var(--muted); font-size: .94rem; }

/* ---------- Momentos: galería horizontal ---------- */
.moments { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 30vw, 420px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 16px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; cursor: grab; }
.moments::-webkit-scrollbar { display: none; }
.moments.is-drag { cursor: grabbing; scroll-snap-type: none; }
.moment { scroll-snap-align: start; position: relative; aspect-ratio: 4 / 5.2; border-radius: var(--r-lg); overflow: hidden; color: #fff; user-select: none; }
.moment img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); pointer-events: none; }
.moment:hover img { transform: scale(1.05); }
.moment::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(20, 8, 12, .7)); }
.moment figcaption { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; }
.moment b { display: block; font-size: 1.5rem; letter-spacing: -.03em; font-weight: 600; }
.moment span { font-size: .92rem; opacity: .85; }
.moments-ctrl { display: flex; gap: 8px; }
.round { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background .3s, color .3s; }
.round:hover { background: var(--ink); color: #fff; box-shadow: none; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); counter-reset: s; }
.steps li { position: relative; padding-top: 24px; border-top: 1.5px solid var(--line-2); }
.steps li::before { counter-increment: s; content: "0" counter(s); display: block; font-size: .9rem; font-weight: 600; color: var(--accent); margin-bottom: 18px; }
.steps li::after { content: ""; position: absolute; left: 0; top: -1.5px; height: 1.5px; width: 100%; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }
.steps h3 { font-size: 1.55rem; letter-spacing: -.03em; margin-bottom: 8px; }
.steps p { color: var(--muted); }

/* ---------- Cierre ---------- */
.finale { margin-top: clamp(80px, 11vw, 160px); background: var(--wine); color: var(--cream); position: relative; overflow: hidden; isolation: isolate; }
.finale__in { max-width: var(--max); margin: auto; padding: clamp(64px, 9vw, 128px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.finale .display { font-size: clamp(3rem, 1.4rem + 6vw, 8rem); }
.finale .display em { font-style: normal; color: #f0b9c6; }
.finale p { color: var(--cream-2); }
.finale__acts { display: grid; gap: 10px; }
.finale__photos { position: absolute; right: -60px; top: -40px; width: 380px; display: grid; gap: 12px; opacity: .14; z-index: -1; rotate: 8deg; }
.copied { font-size: .86rem; color: #f0b9c6; min-height: 1.4em; }

/* ---------- Pie ---------- */
.footer { background: var(--wine-2); color: var(--cream); }
.footer__in { max-width: var(--max); margin: auto; padding: 56px var(--gutter) 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer img { width: 170px; height: auto; }
.footer h3 { font-size: .85rem; color: var(--cream-2); font-weight: 500; margin-bottom: 12px; }
.footer a { display: block; padding: 3px 0; transition: color .3s; }
.footer a:hover { color: #f0b9c6; }
.footer p { color: var(--cream-2); margin-top: 14px; max-width: 300px; }
.footer__legal { max-width: var(--max); margin: auto; padding: 18px var(--gutter) 28px; border-top: 1px solid rgba(244, 236, 225, .14); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: var(--cream-2); }

/* ---------- Botón flotante móvil ---------- */
.dm-float { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; display: none; align-items: center; justify-content: center; gap: 10px; height: 56px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 500; box-shadow: var(--shadow); transform: translateY(160%); transition: transform .6s var(--ease); }
.dm-float.is-on { transform: none; }

/* ---------- Entrada al hacer scroll ---------- */
.rv { opacity: 0; translate: 0 40px; transition: opacity 1s var(--ease) var(--d, 0s), translate 1s var(--ease) var(--d, 0s); }
.rv.is-in { opacity: 1; translate: 0 0; }
.rv-img { clip-path: inset(12% 6% 12% 6% round 28px); transition: clip-path 1.3s var(--ease) var(--d, 0s); }
.rv-img.is-in { clip-path: inset(0 0 0 0 round 28px); }
.no-js .rv { opacity: 1; translate: none; }
.no-js .rv-img { clip-path: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .mnav { display: grid; position: fixed; inset: var(--header-h) 0 0; z-index: 39; background: var(--bg); padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom)); grid-template-rows: 1fr auto; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s var(--ease), visibility 0s .7s; }
  .mnav.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease); }
  .mnav nav { display: flex; flex-direction: column; }
  .mnav nav a { font-size: clamp(2rem, 8vw, 3rem); font-weight: 600; letter-spacing: -.04em; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .mnav nav a[aria-current="page"] { color: var(--accent); }
  .hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
  .hero__title { grid-column: 1 / -1; }
  .hero__media { aspect-ratio: 9 / 13; }
  .board { grid-template-columns: 1fr; }
  .board__photo { max-width: 620px; margin: 0 auto; width: 100%; }
  .frow { grid-template-columns: 1fr auto; gap: 10px 20px; }
  .frow p, .frow__para { grid-column: 1; }
  .frow .btn { grid-row: 1 / span 3; grid-column: 2; }
  .detail { grid-template-columns: 1fr; }
  .detail__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .finale__in { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .brand img { width: 124px; }
  .header__act .btn { display: none; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 4 / 5; border-radius: 160px 160px 24px 24px; clip-path: none; }
  .hero__seal { left: auto; right: 12px; bottom: -30px; width: 100px; height: 100px; }
  .frow { grid-template-columns: 76px 1fr; padding: 18px 0; }
  .frow:hover { padding-left: 0; }
  .frow__thumb { display: block; grid-row: 1 / span 3; width: 76px; height: 92px; border-radius: 14px; overflow: hidden; }
  .frow__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .frow h3, .frow p, .frow__para { grid-column: 2; }
  .frow .btn { grid-column: 2; grid-row: auto; justify-self: start; }
  .steps { grid-template-columns: 1fr; }
  .moments { grid-auto-columns: 78vw; }
  .footer__in { grid-template-columns: 1fr; }
  .dm-float { display: flex; }
  .float-img { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; translate: none; } .rv-img { clip-path: none; }
  .hero .display .line > span { transform: none; } .hero__media { clip-path: none; } .hero__fade { opacity: 1; translate: none; }
}

/* ajustes v1.1 */
html { overflow-x: clip; }
.hero .display { font-size: clamp(3rem, .9rem + 5.6vw, 6.8rem); }
.hero__seal { background: var(--wine); border-radius: 50%; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.hero__seal svg { padding: 4px; }
@media (max-width: 760px) { .board__photo::before { inset: 1%; } }
.hero__wrap { position: relative; }
@media (max-width: 760px) { .hero__seal { right: 12px; left: auto; bottom: -26px; } }
.hero__seal text { font-size: 8.6px; letter-spacing: .2em; }

/* ==========================================================================
   Plan Business — páginas internas, configurador y calculadora de eventos
   ========================================================================== */
.phead { background: var(--wine); color: var(--cream); overflow: hidden; }
.phead__in { max-width: var(--max); margin: auto; padding: clamp(36px, 5vw, 72px) var(--gutter) clamp(36px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.phead .display { font-size: clamp(2.8rem, 1rem + 5.4vw, 6.6rem); }
.phead .display em { font-style: normal; color: #f0b9c6; }
.phead .kicker { color: #f0b9c6; }
.phead .lead { color: var(--cream-2); margin-top: 22px; }
.phead__photo { position: relative; aspect-ratio: 4 / 4.4; border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; }
.phead__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.crumbs { display: flex; gap: 8px; font-size: .86rem; color: var(--cream-2); margin-bottom: 28px; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(244, 236, 225, .4); }

/* Configurador */
.config { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px; }
.config__aside { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; display: grid; gap: 12px; }
.config__photo { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); }
.config__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease); }
.config__preview { background: var(--ink); color: var(--cream); border-radius: var(--r); padding: 20px 22px; font-size: .9rem; white-space: pre-wrap; line-height: 1.55; min-height: 140px; }
.config__preview::before { content: "Tu mensaje"; display: block; font-size: .78rem; color: #f0b9c6; margin-bottom: 8px; font-weight: 500; }
.form { background: var(--card); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; }
.field > span, .form legend { font-size: .9rem; font-weight: 500; padding: 0; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; padding: 14px 16px; border: 0; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 1rem; resize: vertical; transition: box-shadow .3s; }
.field textarea { min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.checks, .seg { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.checks legend, .seg legend { width: 100%; margin-bottom: 10px; }
.checks label, .seg label { position: relative; }
.checks input, .seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.checks span, .seg span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 500; font-size: .92rem; transition: background .3s, color .3s; cursor: pointer; }
.checks input:checked + span, .seg input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.checks input:focus-visible + span, .seg input:focus-visible + span { outline: 2.5px solid var(--accent); outline-offset: 2px; }

/* Calculadora de eventos */
.calc { background: var(--wine); color: var(--cream); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.calc .h2 em { font-style: normal; color: #f0b9c6; }
.calc__n { display: flex; align-items: baseline; justify-content: space-between; }
.calc__n output { font-size: clamp(3.6rem, 2.4rem + 4vw, 6.4rem); font-weight: 600; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc input[type=range] { width: 100%; accent-color: #f0b9c6; height: 30px; margin: 10px 0 18px; }
.calc .seg span { box-shadow: inset 0 0 0 1.5px rgba(244, 236, 225, .35); color: var(--cream); }
.calc .seg input:checked + span { background: var(--cream); color: var(--wine-2); }
.calc__out { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(244, 236, 225, .2); display: grid; gap: 6px; }
.calc__out b { font-size: 1.8rem; letter-spacing: -.03em; }
.calc__out span { color: var(--cream-2); }

/* Tarjetas de regalo / temporadas */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tilecard { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; color: #fff; }
.tilecard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tilecard:hover img { transform: scale(1.05); }
.tilecard::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(20, 8, 12, .75)); }
.tilecard div { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; display: grid; gap: 6px; }
.tilecard b { font-size: 1.6rem; letter-spacing: -.03em; }
.tilecard span { font-size: .94rem; opacity: .88; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; font-weight: 500; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 30px; height: 30px; flex: none; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.6px; background: currentColor; translate: -50% -50%; transition: rotate .5s var(--ease); }
.faq summary i::after { rotate: 90deg; }
.faq details[open] summary i::after { rotate: 0deg; }
.faq details p { color: var(--muted); padding: 0 48px 22px 0; }

/* Historia */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 88px); align-items: center; }
.story__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.story__photos figure { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 4; }
.story__photos figure:nth-child(2) { translate: 0 48px; }
.story__photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story p + p { margin-top: 14px; }

@media (max-width: 1120px) {
  .phead__in, .config, .calc, .faq, .story { grid-template-columns: 1fr; }
  .phead__photo { aspect-ratio: 16 / 10; border-radius: var(--r-lg); }
  .config__aside { position: static; grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .form { grid-template-columns: 1fr; }
  .config__aside { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .story__photos figure:nth-child(2) { translate: none; }
}
