/* =========================================================================
   PULSO — Sitio promocional de invitaciones digitales
   Vanilla CSS. Sistema editorial: ivory + tinta cálida + un acento bronce.
   ========================================================================= */

:root {
  /* Paleta — base neutra cálida, un solo acento */
  --bg: #faf6f0;
  --bg-deep: #f3ece1;
  --surface: #fffdfa;
  --ink: #1b1813;
  --ink-soft: #6c6357;
  --ink-faint: #9a9182;
  --line: #e7ddcd;
  --line-strong: #d8ccb7;
  --accent: #9a7b4f;       /* bronce desaturado */
  --accent-deep: #7c6038;
  --accent-wash: #f0e7d8;
  --melon: #f4ddc8;        /* chips sobre la imagen */
  --melon-line: #e8cbad;
  --melon-soft: #f8ece0;   /* franja de tipos de evento */
  --wa: #1f7d57;           /* verde WhatsApp, desaturado para reconocimiento */
  --wa-deep: #18643f;

  /* Tipografía */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Outfit", system-ui, -apple-system, sans-serif;

  /* Escala fluida */
  --step--1: clamp(0.83rem, 0.79rem + 0.18vw, 0.93rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.13rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.6rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.3rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.4rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.4vw, 5rem);

  /* Espaciado / formas */
  --radius: 18px;
  --radius-lg: 30px;
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --shadow: 0 24px 60px -28px rgba(60, 44, 22, 0.32);
  --shadow-soft: 0 14px 40px -24px rgba(60, 44, 22, 0.28);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Grano sutil fijo (no scrollea, no repinta) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  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.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Imagen del hero como fondo fijo translúcido (se revela al hacer scroll) */
.scroll-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("hero-bg.webp");         /* assets/hero-bg.webp */
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0.20;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.04; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.eyebrow {
  font-size: var(--step--1); letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent-deep); font-weight: 600; display: inline-flex; align-items: center; gap: 0.7rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); display: inline-block; }
.muted { color: var(--ink-soft); }
.serif-em { font-family: var(--display); font-style: italic; font-weight: 400; }

/* ----------------------------------------------------------------- Buttons */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.02em;
  padding: 0.95rem 1.5rem; border-radius: 100px; border: 1px solid transparent;
  background: var(--b); color: #fff; cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s ease;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--wa { --b: var(--wa); }
.btn--wa:hover { background: var(--wa-deep); }
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn--lg { padding: 1.15rem 1.9rem; font-size: var(--step-0); }

.linkarrow {
  display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600;
  color: var(--ink); font-size: var(--step--1);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
  transition: gap 0.3s var(--ease), border-color 0.3s ease;
}
.linkarrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.linkarrow:hover { border-color: var(--accent); }
.linkarrow:hover svg { transform: translateX(4px); }

/* ----------------------------------------------------------------- Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: 1.1rem var(--gutter);
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav-right { display: flex; align-items: center; gap: 0.8rem; justify-self: end; }
.nav-cta { padding: 0.68rem 1.25rem; font-size: var(--step--1); }
.nav-cta--mobile { display: none; }
.nav.scrolled {
  padding-block: 0.7rem;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-size: 1.95rem; font-weight: 700; letter-spacing: -0.01em; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); position: relative; }
.brand .dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0.4; animation: ping 2.6s var(--ease) infinite; }
.brand small { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; align-self: flex-end; padding-bottom: 6px; }
@keyframes ping { 0% { transform: scale(0.9); opacity: 0.5; } 70%,100% { transform: scale(1.8); opacity: 0; } }

.nav-links { display: flex; align-items: center; justify-content: center; gap: 1.5rem; justify-self: center; }
.nav-links a:not(.btn) { font-size: var(--step-0); font-weight: 600; color: var(--ink-soft); transition: color 0.25s ease; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 0.35s var(--ease), opacity 0.2s ease; }

@media (max-width: 980px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-toggle { display: block; z-index: 60; }
  .nav-right .nav-cta { display: none; }
  .nav-cta--mobile { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 0; width: 100vw; min-height: 100dvh;
    justify-self: stretch; align-items: center;
    flex-direction: column; justify-content: center; gap: 1.6rem;
    background: var(--bg); z-index: 55;
    transform: translateX(100%); transition: transform 0.45s var(--ease);
  }
  .nav-links a:not(.btn) { font-size: var(--step-2); font-family: var(--display); color: var(--ink); }
  body.menu-open .nav-links { transform: translateX(0); }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ----------------------------------------------------------------- Sections base */
section { position: relative; z-index: 2; }
.section { padding-block: clamp(4.5rem, 10vw, 9rem); }
.section-head { max-width: 56ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: var(--step-3); margin-top: 1rem; }
.section-head p { margin-top: 1.1rem; font-size: var(--step-1); color: var(--ink-soft); line-height: 1.45; }

/* ----------------------------------------------------------------- Hero */
.hero { padding-top: clamp(7rem, 16vh, 11rem); padding-bottom: clamp(3rem, 8vw, 6rem); }
.hero h1 { font-size: var(--step-4); font-weight: 400; margin-top: 1.4rem; }
.hero h1 b { font-weight: 600; }
.hero h1 .ink-accent { color: var(--accent-deep); font-style: italic; font-weight: 400; }
.hero-cta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* Float sutil — usado por los chips del hero */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ----------------------------------------------------------------- Tipos de evento (3 mockups compactos en fila) */
.events-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.6rem); align-items: start; justify-items: center; }
.ev-card { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; width: 100%; }
.ev-name { font-family: var(--display); font-size: var(--step-1); color: var(--accent); }
.ev-card .phone-frame { width: 100%; max-width: 230px; }
.scr-photo { flex: 0 0 54%; overflow: hidden; background: #ece7df; }
.scr-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 1.1s var(--ease); }
.ev-card:hover .scr-photo img { transform: scale(1.05); }
.event-demo { margin-top: 0.2rem; }

/* ----------------------------------------------------------------- Cómo funciona */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.step { padding: clamp(1.5rem, 3vw, 2.3rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step:nth-child(1) { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.step:nth-child(1) .step-n { color: var(--accent); }
.step:nth-child(1) p { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.step-n { font-family: var(--display); font-size: var(--step-2); color: var(--accent-deep); display: block; }
.step h3 { font-size: var(--step-1); margin: 0.7rem 0 0.5rem; }
.step:nth-child(1) h3 { margin-top: 0; }
.step p { color: var(--ink-soft); font-size: var(--step-0); }

/* ----------------------------------------------------------------- Premium Plus bento */
.pplus { background: var(--ink); color: var(--bg); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 4rem); position: relative; overflow: hidden; }
.pplus::after { content: ""; position: absolute; width: 460px; height: 460px; right: -160px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(154,123,79,0.35), transparent 70%); }
.pplus .eyebrow { color: #d9b988; }
.pplus .eyebrow::before { background: #d9b988; }
.pplus h2 { font-size: var(--step-3); margin-top: 1rem; max-width: 18ch; }
.pplus > .wrap-rel { position: relative; z-index: 2; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.6rem; }
.tile { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 1.5rem; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
.tile.wide { grid-column: span 2; }
.tile .ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(217,185,136,0.14); display: grid; place-content: center; color: #e3c393; margin-bottom: 1rem; }
.tile .ic svg { width: 22px; height: 22px; }
.tile h4 { font-family: var(--sans); font-weight: 600; font-size: var(--step-0); margin-bottom: 0.4rem; }
.tile p { font-size: var(--step--1); color: color-mix(in srgb, var(--bg) 65%, transparent); line-height: 1.5; }
.tile .live { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; color: #8fd3ad; margin-top: 0.9rem; font-weight: 600; }
.tile .live i { width: 7px; height: 7px; border-radius: 50%; background: #4fb786; box-shadow: 0 0 0 0 rgba(79,183,134,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(79,183,134,0); } 100% { box-shadow: 0 0 0 0 rgba(79,183,134,0); } }

/* Diferencial: lede + showcase del álbum (dentro de .pplus) */
.pplus-lede { margin-top: 1rem; max-width: 62ch; font-size: var(--step-0); line-height: 1.6; color: color-mix(in srgb, var(--bg) 78%, transparent); }
.pplus-lede strong { color: #e3c393; font-weight: 600; }
.album-show { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center; margin: 2.8rem 0; }
.album-frame { position: relative; padding: 0.55rem; border-radius: var(--radius); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.album-grid img, .album-grid .ph { aspect-ratio: 1 / 1; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.album-grid .ph { background: linear-gradient(110deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.16) 50%, rgba(255,255,255,0.05) 75%); background-size: 220% 100%; animation: shimmer 1.7s linear infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }
.album-chip { position: absolute; left: 0.95rem; bottom: 0.95rem; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.85rem; border-radius: 999px; background: rgba(18,16,14,0.74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--bg); font-size: 0.74rem; font-weight: 600; border: 1px solid rgba(255,255,255,0.14); }
.album-chip i { width: 7px; height: 7px; border-radius: 50%; background: #4fb786; box-shadow: 0 0 0 0 rgba(79,183,134,0.6); animation: pulse 2s infinite; }
.album-copy .eyebrow, .album-copy .eyebrow::before { color: #d9b988; }
.album-copy .eyebrow::before { background: #d9b988; }
.album-copy h3 { font-size: var(--step-2); line-height: 1.12; margin: 0.7rem 0 0.85rem; max-width: 20ch; }
.album-copy p { font-size: var(--step--1); line-height: 1.6; color: color-mix(in srgb, var(--bg) 68%, transparent); margin-bottom: 1.2rem; }
.album-copy .linkarrow { color: #e3c393; border-color: rgba(227,195,147,0.4); }
.album-copy .linkarrow:hover { border-color: #e3c393; }
/* Showcase del panel de control (celular + copy) */
.panel-show { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center; margin-top: 2.4rem; }
.panel-phone .phone-frame { width: min(238px, 70vw); margin: 0 auto; }
/* Pantalla del panel recreada (datos de muestra, sin PII) */
.panel-scr { background: #f6f5f3; color: #1b1813; padding: 1rem 0.8rem 0.85rem; gap: 0.6rem; }
.psc-head { display: flex; flex-direction: column; }
.psc-ey { font-size: 0.5rem; letter-spacing: 0.18em; text-transform: uppercase; color: #9a9489; }
.psc-title { font-family: var(--display); font-size: 0.95rem; line-height: 1.05; margin: 0.12rem 0 0.5rem; color: #1b1813; }
.psc-tabs { display: flex; gap: 0.3rem; }
.psc-tabs span { font-size: 0.5rem; font-weight: 600; padding: 0.28rem 0.55rem; border-radius: 100px; border: 1px solid #e2ddd3; color: #6c6357; }
.psc-tabs span.on { background: #1b1813; color: #fff; border-color: #1b1813; }
.psc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-top: 0.7rem; }
.psc-card { background: #fff; border: 1px solid #ececea; border-radius: 9px; padding: 0.5rem 0.55rem; }
.psc-card b { display: block; font-family: var(--display); font-size: 1.2rem; line-height: 1; color: #1b1813; }
.psc-card b.ok { color: #2e8b57; }
.psc-card b.mut { color: #8a8378; }
.psc-card span { display: block; font-size: 0.46rem; letter-spacing: 0.03em; text-transform: uppercase; color: #9a9489; margin-top: 0.28rem; }
.psc-list { list-style: none; padding: 0; margin: 0.7rem 0 0; display: flex; flex-direction: column; gap: 0.35rem; }
.psc-list li { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; background: #fff; border: 1px solid #ececea; border-radius: 9px; padding: 0.4rem 0.5rem; }
.psc-list b { display: block; font-family: var(--sans); font-size: 0.58rem; font-weight: 600; color: #1b1813; }
.psc-list span { display: block; font-size: 0.46rem; color: #9a9489; margin-top: 0.05rem; }
.psc-list i { font-style: normal; font-size: 0.46rem; font-weight: 600; color: #2e8b57; background: #e8f3ec; border-radius: 100px; padding: 0.2rem 0.42rem; white-space: nowrap; }

/* ----------------------------------------------------------------- Planes */
.plans-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: start; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 2.5vw, 2.2rem); display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan--feat { border-color: var(--accent); box-shadow: 0 30px 60px -30px rgba(154,123,79,0.5); position: relative; }
.plan--feat::before {
  content: attr(data-badge); position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent-deep); color: #fff; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; padding: 0.4rem 0.9rem; border-radius: 100px; white-space: nowrap;
}
.plan-badge { font-size: var(--step--1); font-weight: 600; color: var(--accent-deep); text-transform: uppercase; letter-spacing: 0.14em; min-height: 1.2em; }
.plan h3 { font-size: var(--step-2); margin: 0.5rem 0 0.3rem; }
.plan .resumen { color: var(--ink-soft); font-size: var(--step--1); min-height: 2.8em; }
.plan .price-prefix { display: block; margin-top: 1.3rem; font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); letter-spacing: 0.02em; }
.plan .price-prefix + .price { margin-top: 0.15rem; }
.plan .price { display: flex; align-items: baseline; gap: 0.25rem; margin: 1.3rem 0 0.2rem; }
.plan .price .cur { font-size: var(--step-0); color: var(--ink-soft); font-weight: 600; }
.plan .price .amt { font-family: var(--display); font-size: var(--step-4); font-weight: 600; line-height: 0.9; letter-spacing: -0.02em; }
.plan .price .suf { font-family: var(--display); font-size: var(--step-2); color: var(--accent); }
.plan .price-note { font-size: var(--step--1); color: var(--ink-faint); }
.plan ul { display: grid; gap: 0.75rem; margin: 1.6rem 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.plan li { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; font-size: var(--step--1); color: var(--ink); }
.plan li svg { width: 18px; height: 18px; color: var(--accent-deep); margin-top: 2px; }
.plan .btn { width: 100%; justify-content: center; margin-top: auto; }
.plan--feat .btn { --b: var(--wa); }
.plan--feat .btn:hover { background: var(--wa-deep); }

/* ----------------------------------------------------------------- CTA final */
.cta {
  text-align: center; background: linear-gradient(180deg, var(--bg), var(--bg-deep));
  border-radius: var(--radius-lg); padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--line);
}
.cta h2 { font-size: var(--step-3); max-width: 20ch; margin: 1rem auto 1.2rem; }
.cta p { color: var(--ink-soft); font-size: var(--step-1); max-width: 50ch; margin: 0 auto 2.2rem; }
.cta .hero-cta { justify-content: center; }

/* ----------------------------------------------------------------- Footer */
.footer { background: var(--ink); color: var(--bg); padding-block: clamp(3rem, 6vw, 5rem) 2rem; z-index: 2; position: relative; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer .brand { color: var(--bg); }
.footer .brand small { color: var(--ink-faint); }
.footer-top p { color: color-mix(in srgb, var(--bg) 60%, transparent); font-size: var(--step--1); max-width: 38ch; margin-top: 1rem; }
.footer h5 { font-family: var(--sans); font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 1.1rem; }
.footer-col a { display: block; color: color-mix(in srgb, var(--bg) 78%, transparent); font-size: var(--step-0); padding: 0.35rem 0; transition: color 0.25s ease; }
.footer-col a:hover { color: var(--bg); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; font-size: var(--step--1); color: var(--ink-faint); }
.libro {
  display: inline-flex; align-items: center; gap: 0.6rem; border: 1px solid rgba(255,255,255,0.2);
  padding: 0.7rem 1rem; border-radius: 12px; margin-top: 1rem; font-size: var(--step--1); font-weight: 600;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.libro:hover { border-color: var(--bg); background: rgba(255,255,255,0.05); }
.libro svg { width: 26px; height: 20px; }

/* ----------------------------------------------------------------- Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ----------------------------------------------------------------- Responsive */
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.wide { grid-column: span 2; }
}
@media (max-width: 860px) {
  .album-show, .panel-show { grid-template-columns: 1fr; }
  .panel-phone { order: -1; }
}
@media (max-width: 760px) {
  /* Demos: carrusel deslizable (una fila, sin desbordar ni alargar) */
  .events-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 66%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.8rem; padding-bottom: 0.6rem; -webkit-overflow-scrolling: touch; }
  .ev-card { scroll-snap-align: center; }
  .ev-name { font-size: var(--step-0); }
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(1) { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan--feat { order: -1; }
  .footer-top { grid-template-columns: 1fr; gap: 1.8rem; }
  .bento { grid-template-columns: 1fr; }
  .tile.wide { grid-column: span 1; }
}

/* ----------------------------------------------------------------- Hero: banda de imagen + titular (portada = pantalla completa) */
.hero--center {
  position: relative; overflow: hidden; text-align: center;
  min-height: 100dvh; display: flex; flex-direction: column;
  padding-top: clamp(4.5rem, 8vh, 5.5rem);
  /* SIN fondo opaco: solo la banda de imagen es sólida; del titular hacia abajo
     se ve el fondo fijo con textura (igual que el resto de la página). */
}

/* Banda de imagen a sangre completa (sin transparencia, todo el ancho) */
.hero-band {
  position: relative; width: 100%; min-height: clamp(420px, 52vh, 580px);
  background-image: url("hero-bg.webp");         /* assets/hero-bg.webp */
  background-size: cover;                         /* imagen a todo el ancho */
  background-position: center; background-repeat: no-repeat;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--gutter);
}

/* Chips melón pegadas a los lados, sobre la imagen */
.hero-tags { position: absolute; top: 50%; transform: translateY(-50%); display: grid; gap: clamp(0.7rem, 1.5vw, 1.05rem); z-index: 3; }
.hero-tags--l { left: clamp(1rem, 4vw, 4.5rem); justify-items: start; }
.hero-tags--r { right: clamp(1rem, 4vw, 4.5rem); justify-items: end; }
.hero-tags li {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--melon); border: 1px solid var(--melon-line); border-radius: 100px;
  padding: 0.6rem 1.15rem; font-size: var(--step--1); font-weight: 600; color: var(--ink); white-space: nowrap;
  box-shadow: 0 12px 26px -14px rgba(60,44,22,0.5);
}
.hero-tags li:nth-child(1) { animation: float 6s var(--ease) infinite; }
.hero-tags li:nth-child(2) { animation: float 6s var(--ease) infinite 1.1s; }
.hero-tags li:nth-child(3) { animation: float 6s var(--ease) infinite 2.2s; }
.tline { width: 16px; height: 1px; background: var(--accent); flex: none; }

/* Titular sobre fondo plano — ocupa el espacio bajo la banda y se centra */
.hero-headline { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: clamp(1.5rem, 3vw, 2.5rem) var(--gutter); }
.hero-headline .btn { align-self: center; }
.hero-headline h1 { font-size: clamp(1.9rem, 1.4rem + 2.3vw, 3.2rem); text-transform: uppercase; letter-spacing: 0.005em; font-weight: 500; max-width: 16ch; }
.hero-headline p { max-width: 860px; margin: 0.7rem auto 0; color: var(--ink-soft); font-size: var(--step-0); }
.hero-headline .btn { margin-top: 1.8rem; }
.btn--gold { --b: var(--accent-deep); }
.btn--gold:hover { background: var(--accent); }

/* Franja de tipos de evento: caja sólida dividida en 3 (legible sobre el fondo fijo) */
.hero-events-strip { position: relative; z-index: 2; padding: clamp(2rem, 5vw, 3.5rem) var(--gutter); }
.hero-events {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 940px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); overflow: hidden;
}
.he { display: grid; gap: 0.4rem; justify-items: center; text-align: center; padding: clamp(1.7rem, 3vw, 2.6rem) clamp(1rem, 2vw, 1.6rem); border-left: 1px solid var(--line); }
.he:first-child { border-left: none; }
.he-ic { color: var(--accent-deep); }
.he-ic svg { width: 34px; height: 34px; }
.he h3 { font-family: var(--display); font-size: var(--step-1); }
.he p { color: var(--ink-soft); font-size: var(--step--1); max-width: 24ch; }

@media (max-width: 860px) {
  .hero-band { flex-direction: column; gap: 1.3rem; min-height: auto; padding-block: clamp(2rem, 7vw, 3rem); }
  .hero-tags { position: static; transform: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
  .tline { display: none; }
  .hero-events { grid-template-columns: 1fr; max-width: 380px; }
  .he { border-left: none; border-top: 1px solid var(--line); }
  .he:first-child { border-top: none; }
}

/* ----------------------------------------------------------------- Skip link */
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 0.7rem 1.1rem; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }

/* ----------------------------------------------------------------- Showcase (así se ve la invitación) */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); justify-items: center; }
.shot { width: min(260px, 82vw); }
.phone-frame {
  position: relative; width: 100%; aspect-ratio: 9 / 19; border-radius: 36px; padding: 10px;
  background: linear-gradient(160deg, #2a251d, #15120d);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.12);
  transition: transform 0.5s var(--ease);
}
.shot:hover .phone-frame { transform: translateY(-6px); }
.phone-frame::before { content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 46px; height: 5px; border-radius: 5px; background: rgba(255,255,255,0.18); z-index: 3; }
.phone-scr { width: 100%; height: 100%; border-radius: 28px; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.mini { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0.3rem; padding: 0.9rem 0.9rem 1.05rem; }
.mini-kicker { font-size: 0.54rem; letter-spacing: 0.26em; text-transform: uppercase; opacity: 0.85; }
.mini-name { font-family: var(--display); font-style: italic; font-size: 1.5rem; line-height: 1.04; }
.mini-date { font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; }
.mini-divider { width: 34px; height: 1px; margin: 0.25rem 0; opacity: 0.6; }
.mini-btns { display: flex; gap: 0.32rem; flex-wrap: wrap; justify-content: center; margin-top: 0.5rem; }
.mini-btns span { font-size: 0.54rem; font-weight: 600; border-radius: 100px; padding: 0.3rem 0.62rem; border: 1px solid; }
.mini-map { width: 86%; height: 58px; border-radius: 12px; overflow: hidden; margin: 0.15rem 0 0.05rem; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.08); }
.mini-map svg { width: 100%; height: 100%; display: block; }
.mini-qr { width: 62px; height: 62px; border-radius: 10px; overflow: hidden; margin: 0.1rem 0 0.05rem; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.mini-qr svg { width: 100%; height: 100%; display: block; }
.shot-cap { text-align: center; margin-top: 1rem; }
.shot-cap .tag { font-size: var(--step--1); color: var(--accent-deep); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; display: block; }
.shot-cap .linkarrow { margin-top: 0.45rem; }
/* Temas por tipo de evento */
.t-boda  { background: linear-gradient(170deg, #fbf3e1, #f3e2bf); color: #6a522f; }
.t-boda  .mini-name { color: #5e4426; }
.t-boda  .mini-divider { background: #c9a86a; }
.t-boda  .mini-btns span { border-color: #c9a86a; color: #7c6038; }
.t-quince { background: linear-gradient(170deg, #fbeae6, #f0d5cf); color: #8a565d; }
.t-quince .mini-name { color: #7d3f48; }
.t-quince .mini-divider { background: #b76e79; }
.t-quince .mini-btns span { border-color: #d8a7a0; color: #a85863; }
.t-baby  { background: linear-gradient(170deg, #eef1ea, #dde6dd); color: #4d6154; }
.t-baby  .mini-name { color: #41584a; }
.t-baby  .mini-divider { background: #7c9082; }
.t-baby  .mini-btns span { border-color: #9fb0a4; color: #51695a; }
/* Baby celeste — combina con el diseño "varoncito" de Nicolás (accent #CFE1EA) */
.t-nicolas { background: linear-gradient(170deg, #eef5f8, #cfe1ea); color: #3f5560; }
.t-nicolas .mini-name { color: #2f4651; }
.t-nicolas .mini-divider { background: #9fc0cf; }
.t-nicolas .mini-btns span { border-color: #aecddb; color: #43677a; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- FAQ */
.faq { max-width: 800px; margin-inline: auto; display: grid; gap: 0.8rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0 1.3rem; }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 0; font-weight: 600; font-size: var(--step-0); color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--accent-deep); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { color: var(--ink-soft); margin: 0; padding: 0 0 1.2rem; line-height: 1.6; max-width: 66ch; }
