/* ============================================================
   MASSAL overrides on top of Hazmaná v2 (app.css)
   - Brand lockup: all-caps Bodoni display
   - Custom diamond ring cursor with gravity diamond
   - Bigger intro cards + flock entrance + slow rotation
   - New Testimonios panel with rotating Unsplash bg
   ============================================================ */

/* ---------- TOP BANNER ---------- */
:root{
  --tb-h: 42px;
  --ui-gold: #c9a962;
  --ui-gold-soft: #e3cf96;
  --ui-gold-strong: #9b7730;
  --ui-dark: #23151b;
}
.top-banner{
  position:fixed;
  top:0; left:0; right:0;
  height:var(--tb-h);
  z-index:200;
  background:#0d0b09;
  color:#efe4cc;
  border-bottom:1px solid rgba(232, 210, 156, .14);
  font-family:var(--sans);
  transition:transform 360ms cubic-bezier(.23,1,.32,1), opacity 360ms;
  will-change:transform;
}
.top-banner.is-closed{ transform:translateY(-100%); opacity:0; pointer-events:none; }
.top-banner-inner{
  height:100%;
  display:flex;
  align-items:center;
  gap:18px;
  padding:0 clamp(16px, 3vw, 32px);
  max-width:var(--maxw);
  margin:0 auto;
}
.tb-mark{
  font-family:var(--serif);
  font-size:14px;
  color:var(--ui-gold-soft);
}
.tb-text{
  font-size:13px;
  letter-spacing:.02em;
  color:#eee2cd;
  flex:1;
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.tb-text strong{ color:#fff3d5; font-weight:600; }
.tb-cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--sans);
  font-size:12px;
  font-weight:600;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--ui-gold-soft);
  padding:6px 14px;
  border:1px solid rgba(232, 210, 156, .35);
  border-radius:999px;
  transition:background-color 160ms cubic-bezier(.23,1,.32,1), color 160ms, border-color 160ms, transform 160ms cubic-bezier(.23,1,.32,1);
  white-space:nowrap;
}
.tb-arr{ transition:transform 220ms cubic-bezier(.23,1,.32,1); }
@media (hover: hover) and (pointer: fine){
  .tb-cta:hover{ background:var(--ui-gold-soft); color:#0d0b09; border-color:var(--ui-gold-soft); transform:translateY(-1px); }
  .tb-cta:hover .tb-arr{ transform:translateX(3px); }
}
.tb-cta:active{ transform:scale(.97); transition-duration:100ms; }
.tb-close{
  appearance:none; background:transparent; border:0; padding:6px; margin-left:-4px;
  font-size:22px; line-height:1;
  color:rgba(232, 210, 156, .55);
  cursor:none;
  transition:color 160ms cubic-bezier(.23,1,.32,1), transform 160ms cubic-bezier(.23,1,.32,1);
}
@media (hover: hover) and (pointer: fine){
  .tb-close:hover{ color:#E8D29C; }
}
.tb-close:active{ transform:scale(.92); }

/* Push fixed elements down so the banner doesn't overlap the brand or rail. */
.brand{ top:calc(var(--tb-h) + clamp(16px, 2.6vw, 30px)) !important; }
.rail{ top:calc(50% + var(--tb-h) / 2) !important; }
.stage{ top:var(--tb-h); }
.intro-cap,
.petals{ display:none !important; }

@media (max-width: 720px){
  :root{ --tb-h: 56px; }
  .top-banner-inner{ gap:10px; padding:0 14px; }
  .tb-text{ font-size:12px; white-space:normal; line-height:1.3; }
  .tb-cta{ padding:5px 11px; font-size:11px; letter-spacing:.14em; }
}

/* ---------- DE-VIBE OVERRIDES ----------
   Kill the foil-gradient shine, drop Pinyon Script in eyebrows.
   Keep Bodoni for serifs; the foil-gold is what reads as templated. */
.foil{
  background:none !important;
  -webkit-background-clip:initial !important;
  background-clip:initial !important;
  -webkit-text-fill-color:currentColor !important;
  color:inherit !important;
}

/* Sober surface treatment. The earlier foil shimmer was memorable, but it
   pushed the page toward template luxury. Keep one quiet champagne accent. */
.btn-gold{
  background:var(--ui-gold) !important;
  color:#1c1318 !important;
  box-shadow:0 12px 28px -18px rgba(74, 48, 18, .55) !important;
}
.btn-gold:hover{
  box-shadow:0 16px 34px -22px rgba(74, 48, 18, .65) !important;
}
.btn-gold span{ color:#1c1318 !important; }
.btn-line{
  background:rgba(255, 251, 243, .34);
  transition:border-color 160ms cubic-bezier(.23,1,.32,1), background-color 160ms cubic-bezier(.23,1,.32,1), transform 160ms cubic-bezier(.23,1,.32,1) !important;
}
.btn{ transition:transform 160ms cubic-bezier(.23,1,.32,1), box-shadow 220ms cubic-bezier(.23,1,.32,1) !important; }
.btn:active{ transform:scale(.975) !important; }
.stepper button,
.chip,
.tb-close{ transition-duration:160ms !important; }
/* Replace Pinyon-Script eyebrows with sober uppercase tracking */
.intro-copy .st,
.seats-copy .st,
.why-copy .st,
.price-copy .st{
  font-family:var(--sans) !important;
  font-size:11.5px !important;
  font-weight:600 !important;
  letter-spacing:.34em !important;
  text-transform:uppercase !important;
  color:var(--gold-d) !important;
  line-height:1.2 !important;
}
.dark-ui .intro-copy .st,
.dark-ui .seats-copy .st,
.dark-ui .why-copy .st,
.dark-ui .price-copy .st{
  color:var(--gold-l) !important;
}
.rsvp-top .bs{
  font-family:var(--serif) !important;
  font-style:italic !important;
  font-weight:500 !important;
  font-size:clamp(26px, 2.4vw, 32px) !important;
  letter-spacing:-.01em !important;
  color:var(--ink) !important;
  line-height:1.05 !important;
  margin:6px 0 4px !important;
}

/* ---------- C3D CARDS: faster open on hover ----------
   Cards are hover-triggered (no auto-open). Drop the cascade delay and
   shorten the flap/card transitions so the response feels immediate. */
.c3d .env-flap{
  transition:transform .32s cubic-bezier(.23,1,.32,1) !important;
  transition-delay:0s !important;
}
.c3d .env-seal{
  transition:opacity .18s ease, transform .18s ease !important;
  transition-delay:0s !important;
}
.c3d:hover .env-card,
.c3d.open .env-card{
  transition-delay:.10s !important;
}
.c3d .env-card{
  transition:transform .28s cubic-bezier(.23,1,.32,1), opacity .22s ease !important;
}

/* ---------- BRAND LOCKUP (mixed case, Bodoni) ---------- */
.brand{
  font-family:var(--serif);
  font-weight:500;
  font-size:clamp(22px, 2.5vw, 30px);
  letter-spacing:-.012em;
  text-transform:none;
  line-height:1;
  display:inline-flex;
  align-items:baseline;
  gap:0;
}
.brand .brand-mark{
  font-style:normal;
  color:var(--ink);
}
.dark-ui .brand .brand-mark{ color:var(--cream); }
.brand .dot{
  font-family:var(--serif);
  letter-spacing:0;
  color:var(--gold-d);
  margin-left:-.02em;
  font-weight:600;
}

/* Screen titles sit beside each progress dot but stay HIDDEN until the dot
   is hovered — then that one slides in. Even the active dot's title only
   shows on hover; the active state is carried by the pip, not the label. */
.rail{ right:clamp(16px, 2vw, 30px) !important; gap:14px !important; }
.rail button{
  width:auto !important; height:auto !important;
  justify-content:flex-end !important; gap:11px !important;
}
.rail .lbl{
  position:static !important;
  width:auto !important; height:auto !important;
  overflow:visible !important;
  clip:auto !important; clip-path:none !important;
  font-family:var(--sans) !important;
  font-size:10.5px !important; font-weight:600 !important;
  letter-spacing:.16em !important; text-transform:uppercase !important;
  white-space:nowrap !important;
  color:var(--ink) !important;
  opacity:0 !important;                 /* oculto por defecto */
  transform:translateX(8px) !important; /* entra deslizando al hover */
  pointer-events:none;
  transition:opacity .3s var(--ease), transform .3s var(--ease), color .3s var(--ease) !important;
}
.rail button:hover .lbl{ opacity:1 !important; transform:translateX(0) !important; }
.rail .pip{ width:9px !important; height:9px !important; }
.dark-ui .rail .lbl{ color:var(--cream) !important; }

/* ---------- RING CURSOR ---------- */
/* Plain gold ring, no diamond. Disable Hazmaná's dot+ring cursor (kept in
   app.css). Show only when we add .massal-cursor-active to body. */
body:not(.massal-cursor-active) .massal-cur{ display:none; }
.massal-cursor-active .cur-dot,
.massal-cursor-active .cur-ring{ display:none !important; }

.massal-cur{
  position:fixed; top:0; left:0;
  pointer-events:none;
  z-index:9999;
  will-change:transform;
  transform:translate(-9999px,-9999px);
  opacity:0;
  transition:opacity 140ms cubic-bezier(.23,1,.32,1);
}
.massal-cur svg{
  display:block; overflow:visible;
  transform-origin:center;
  transition:none; /* transform driven per-frame in JS (squash/stretch/rotate) */
}
.massal-cur .ring-line{
  vector-effect:non-scaling-stroke;
  transition:stroke-width .2s ease;
}
/* hover/down scale is folded into the JS transform via baseScale. */
.massal-cur.hov .ring-line{ stroke-width:1.2; }

@media (hover:none),(pointer:coarse){
  body{ cursor:auto; }
  button,a{ cursor:pointer; }
  .massal-cur{ display:none; }
}
@media (prefers-reduced-motion:reduce){
  body{ cursor:auto; }
  .massal-cur{ display:none; }
}

/* ============================================================
   TESTIMONIOS panel
   Rotating Unsplash photos + dark overlay + edge gradient
   No other animations in this panel.
   ============================================================ */
.p-test{
  background:#0a0805;
  color:var(--cream);
  position:relative;
  isolation:isolate;
}

.test-bg{
  position:absolute; inset:0;
  z-index:0;
  overflow:hidden;
}
.test-photo{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
  opacity:0;
  transition:opacity 1400ms cubic-bezier(.45,.05,.55,.95);
  will-change:opacity;
}
.test-photo.is-on{ opacity:1; }
/* Local wedding photos (Pexels, free commercial license) — self-hosted so
   they never depend on a remote CDN / hotlink that can fail. */
.test-photo[data-i="0"]{ background-image:url("/img/t0.jpg"); }
.test-photo[data-i="1"]{ background-image:url("/img/t1.jpg"); }
.test-photo[data-i="2"]{ background-image:url("/img/t2.jpg"); }
.test-photo[data-i="3"]{ background-image:url("/img/t3.jpg"); }

.test-overlay{
  position:absolute; inset:0;
  /* Lighter than before so the photo actually reads behind the copy. */
  background:rgba(10, 8, 5, 0.55);
}
.test-edges{
  position:absolute; inset:0;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(10,8,5,.88) 0%, rgba(10,8,5,0) 30%, rgba(10,8,5,0) 70%, rgba(10,8,5,.92) 100%),
    radial-gradient(120% 90% at 50% 50%, transparent 46%, rgba(10,8,5,.5) 100%);
}

.test-in{
  position:relative; z-index:2;
  padding:clamp(48px, 7vw, 96px) 0;
  text-align:center;
}

.test-eyebrow{
  display:inline-block;
  color:var(--gold-l);
  letter-spacing:.4em;
  margin-bottom:18px;
}
.test-head{
  font-family:var(--serif);
  font-weight:500;
  font-size:clamp(36px, 5.8vw, 72px);
  line-height:1.02;
  letter-spacing:-.015em;
  color:var(--cream);
  margin-bottom:clamp(40px, 6vw, 64px);
}
.test-head .foil{
  background:var(--foil);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
}

.test-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:clamp(26px, 3vw, 44px);
  max-width:1180px;
  margin:0 auto;
  text-align:left;
}
.test-quote{
  margin:0;
  padding:0;
}
.test-quote blockquote{
  font-family:var(--serif);
  font-weight:400;
  font-style:italic;
  font-size:clamp(16px, 1.28vw, 19px);
  line-height:1.48;
  color:#f3e9d4;
  margin:0 0 22px;
  quotes:"\201C" "\201D";
  text-wrap:pretty;
}
.test-quote blockquote::before{
  content:open-quote;
  font-size:1.4em;
  line-height:0;
  vertical-align:-.22em;
  color:var(--gold-l);
  padding-right:.06em;
}
.test-quote blockquote::after{
  content:close-quote;
  font-size:1.4em;
  line-height:0;
  vertical-align:-.45em;
  color:var(--gold-l);
  padding-left:.04em;
}
.test-quote figcaption{
  display:flex; flex-direction:column; gap:4px;
  border-top:1px solid rgba(232, 210, 156, .22);
  padding-top:18px;
  margin-top:6px;
}
.test-name{
  font-family:var(--serif);
  font-weight:500;
  font-size:16px;
  letter-spacing:.02em;
  color:var(--gold-l);
}
.test-meta{
  font-family:var(--sans);
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(232, 210, 156, .6);
}

.test-cta{
  margin-top:clamp(40px, 6vw, 64px);
  display:flex;
  justify-content:center;
}

/* Testimonios reveal: simple fade-in, no kinetic motion in this panel. */
.test-eyebrow,
.test-head,
.test-quote,
.test-cta{
  opacity:0;
  transform:translateY(14px);
  transition:opacity 700ms cubic-bezier(.16,1,.3,1) 100ms, transform 700ms cubic-bezier(.16,1,.3,1) 100ms;
}
.panel.live .test-eyebrow{ opacity:1; transform:none; transition-delay:120ms; }
.panel.live .test-head{ opacity:1; transform:none; transition-delay:200ms; }
.panel.live .test-quote{ opacity:1; transform:none; }
.panel.live .test-quote:nth-of-type(1){ transition-delay:300ms; }
.panel.live .test-quote:nth-of-type(2){ transition-delay:380ms; }
.panel.live .test-quote:nth-of-type(3){ transition-delay:460ms; }
.panel.live .test-cta{ opacity:1; transform:none; transition-delay:560ms; }

@media (max-width: 900px){
  .test-grid{ grid-template-columns:1fr; gap:28px; }
}

/* ============================================================
   PRICE — confident single pricing card
   Replaces the crash-cards sequence.
   ============================================================ */
.massal-price-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.05fr) minmax(0, .95fr);
  gap:clamp(40px, 6vw, 96px);
  align-items:center;
}
.massal-price{
  position:relative;
  padding:clamp(36px, 4vw, 56px) clamp(34px, 4vw, 52px);
  background:#1b1116;
  border:1px solid rgba(232, 210, 156, .18);
  border-radius:8px;
  color:var(--cream);
  display:flex;
  flex-direction:column;
  gap:18px;
}
.massal-price::before{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(232,210,156,.5), transparent);
}
.mp-eyebrow{
  font-family:var(--sans);
  font-size:11.5px;
  font-weight:600;
  letter-spacing:.34em;
  text-transform:uppercase;
  color:var(--gold-l);
}
.mp-amount{
  display:flex;
  align-items:baseline;
  gap:12px;
  font-family:var(--serif);
  color:var(--cream);
}
.mp-from{
  font-size:14px;
  font-weight:400;
  letter-spacing:.04em;
  color:rgba(246, 238, 225, .6);
  text-transform:uppercase;
}
.mp-big{
  font-size:clamp(50px, 5vw, 68px);
  font-weight:500;
  letter-spacing:-.025em;
  line-height:1;
  font-variant-numeric:tabular-nums;
  color:var(--cream);
}
.mp-to{
  font-size:14px;
  font-weight:400;
  letter-spacing:.18em;
  color:rgba(246, 238, 225, .55);
}
.mp-note{
  font-family:var(--sans);
  font-size:13.5px;
  color:rgba(246, 238, 225, .68);
  letter-spacing:.01em;
  margin:0;
}
.mp-rule{
  border:0;
  height:1px;
  background:rgba(232, 210, 156, .14);
  margin:4px 0 4px;
}
.mp-feats{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.mp-feats li{
  display:flex;
  align-items:baseline;
  gap:16px;
  font-family:var(--sans);
  font-size:14.5px;
  color:rgba(246, 238, 225, .85);
  letter-spacing:.01em;
}
.mp-k{
  font-family:var(--serif);
  font-weight:400;
  font-variant-numeric:tabular-nums;
  font-size:12px;
  letter-spacing:.06em;
  color:var(--gold-l);
  min-width:24px;
}
.mp-cta{
  align-self:flex-start;
  margin-top:8px;
}
@media (max-width: 900px){
  .massal-price-grid{ grid-template-columns:1fr; gap:32px; }
}

/* Intro text protection and responsive panel safety. */
.intro-copy::before{
  width:min(760px, 92vw) !important;
  height:min(470px, 66vh) !important;
  background:radial-gradient(closest-side, rgba(246,238,225,.96) 0%, rgba(246,238,225,.88) 54%, rgba(246,238,225,.38) 78%, transparent 100%) !important;
}
#field{ opacity:.82; }
/* Logística copy as a frosted-glass card. Translucent so the seating
   animation reads softly behind the glass; the .kin children keep their
   staggered reveal (the letter/card animation concept stays). */
.p-seats .panel-in.seats-copy{
  background:linear-gradient(135deg, rgba(255,251,243,.08), rgba(246,238,225,.04)) !important;
  -webkit-backdrop-filter:blur(6px) saturate(130%);
  backdrop-filter:blur(6px) saturate(130%);
  border:1px solid rgba(255,255,255,.18) !important;
  border-radius:20px !important;
  box-shadow:0 32px 70px -34px rgba(42,27,32,.2), inset 0 1px 0 rgba(255,255,255,.22) !important;
  padding:clamp(30px,3.2vw,46px) clamp(30px,3vw,46px) !important;
  overflow:hidden;
  opacity:0;
  transform:translateY(26px) scale(.985);
  transition:opacity .9s var(--out) .12s, transform 1s var(--out) .12s;
}
.p-seats.live .panel-in.seats-copy{ opacity:1; transform:none; }
/* crystal sheen across the top-left edge */
.p-seats .panel-in.seats-copy::before{
  content:"";
  position:absolute; inset:0; border-radius:inherit;
  pointer-events:none;
  background:linear-gradient(135deg, rgba(255,255,255,.32) 0%, rgba(255,255,255,0) 42%);
  opacity:.55;
  z-index:0;
}
.seats-copy > *{ position:relative; z-index:1; }
.seats-copy h2{ letter-spacing:-.012em; }
.seats-copy .lede{ color:var(--ink-2) !important; }
.why-stat .n .x,
.cc-big{
  background:none !important;
  -webkit-background-clip:initial !important;
  background-clip:initial !important;
  -webkit-text-fill-color:currentColor !important;
  color:var(--ui-gold-soft) !important;
  filter:none !important;
}
.stepper button:hover{
  background:var(--ui-gold) !important;
  color:#1c1318 !important;
}
.done .check{ background:var(--ui-gold) !important; }

@media (max-width: 900px){
  .panel{
    min-height:calc(100svh - var(--tb-h));
    height:auto !important;
    overflow-y:auto !important;
    align-items:flex-start !important;
    padding-top:clamp(74px, 18vw, 112px) !important;
    padding-bottom:72px !important;
  }
  .track{ transform:translateY(calc(var(--cur,0) * -100%)) !important; }
  .intro-copy{
    top:46% !important;
    padding-inline:22px !important;
  }
  .intro-copy h1{ font-size:clamp(46px, 15vw, 72px) !important; }
  .intro-actions{ flex-direction:column; width:min(100%, 330px); }
  .intro-actions .btn{ width:100%; justify-content:center; }
  .demo-grid,
  .why-grid,
  .price-grid,
  .massal-price-grid{ grid-template-columns:1fr !important; }
  .demo-cols{ grid-template-columns:1fr !important; }
  .test-in{ padding-top:24px; padding-bottom:64px; }
  .test-grid{ grid-template-columns:1fr; }
  .price-cta-row{ flex-direction:column; align-items:stretch; }
  .price-cta-row .btn{ justify-content:center; }
  .massal-price{ padding:30px 24px; }
  .mp-amount{ flex-wrap:wrap; gap:8px 10px; }
}

/* ============================================================
   MOBILE NATIVE SCROLL MODE (< 900px)
   Iker's panel-switching needs precise wheel/touch; phones lose pages.
   Override to vertical stacked panels with native scroll.
   ============================================================ */
@media (max-width: 900px){
  html, body{
    overflow-x:hidden !important;
    overflow-y:auto !important;
    height:auto !important;
    -webkit-overflow-scrolling:touch;
  }
  .stage{
    position:static !important;
    inset:auto !important;
    overflow:visible !important;
    top:0 !important;
    margin-top:var(--tb-h);
    height:auto !important;
  }
  .track{
    position:static !important;
    transform:none !important;
    transition:none !important;
    height:auto !important;
  }
  .panel{
    height:auto !important;
    min-height:100svh !important;
    overflow:visible !important;
  }
  .rail{ display:none !important; }
  /* Cards on intro: clip to panel bounds since the arc extends below */
  .p-intro{ overflow:hidden !important; }
  /* Brand sits in the first viewport only; scrolls away with content so it
     doesn't paint on top of section copy as the page scrolls. */
  .brand{
    position:absolute !important;
    top:calc(var(--tb-h) + 12px) !important;
    left:18px !important;
    font-size:22px !important;
    z-index:50 !important;
  }
}

/* ============================================================
   WHY STATS — editorial trio. The ×/% accents must read clearly
   on the wine background (previously .42em low-contrast = invisible).
   ============================================================ */
.why-stats{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  gap:clamp(22px, 3vw, 44px) !important;
  align-items:start !important;
  border-top:1px solid rgba(255, 251, 243, .16) !important;
  padding-top:clamp(26px, 3vw, 38px) !important;
  margin-top:clamp(26px, 3vw, 38px) !important;
  flex-wrap:nowrap !important;
}
.why-stats .why-stat{
  display:flex !important;
  flex-direction:column !important;
  gap:10px !important;
  align-items:flex-start !important;
  text-align:left !important;
}
.why-stats .why-stat .n{
  font-family:var(--serif) !important;
  font-weight:400 !important;
  font-size:clamp(50px, 5.4vw, 82px) !important;
  line-height:.92 !important;
  letter-spacing:-.025em !important;
  font-variant-numeric:lining-nums tabular-nums !important;
  color:var(--cream) !important;
  display:inline-flex !important;
  align-items:baseline !important;
}
/* ×  and  %  — roman + weight 600 (italic 400 wasn't loaded → thin/faint),
   bright gold. The % glyph is naturally inky; the × (U+00D7) is thin and
   small, so .mult is sized up to carry comparable visual weight. */
.why-stats .why-stat .n .x{
  font-family:var(--serif) !important;
  font-style:normal !important;
  font-weight:600 !important;
  font-size:.5em !important;
  margin-left:6px !important;
  color:var(--gold-l) !important;
  -webkit-text-fill-color:var(--gold-l) !important;
  background:none !important;
  -webkit-background-clip:initial !important;
  background-clip:initial !important;
  filter:none !important;
  line-height:1 !important;
}
/* The serif × (U+00D7) is a hairline at any weight; render it in the sans
   face (Mulish 700) for an even, solid stroke that actually reads. */
.why-stats .why-stat .n .x.mult{
  font-family:var(--sans) !important;
  font-weight:700 !important;
  font-size:.46em !important;
  margin-left:8px !important;
  align-self:center !important;       /* center the × against the tall digit */
}
.why-stats .why-stat .lbl{
  font-family:var(--sans) !important;
  font-size:11.5px !important;
  font-weight:600 !important;
  letter-spacing:.22em !important;
  text-transform:uppercase !important;
  color:rgba(246, 238, 225, .68) !important;
  line-height:1.35 !important;
}
.why-sep{ display:none !important; }
@media (max-width: 900px){
  .why-stats{ gap:16px !important; }
  .why-stats .why-stat .n{ font-size:clamp(44px, 12vw, 60px) !important; }
  .why-stats .why-stat .lbl{ font-size:10.5px !important; letter-spacing:.16em !important; }
}
@media (max-width: 460px){
  .why-stats{ grid-template-columns:1fr !important; gap:20px !important; }
  .why-stats .why-stat{
    flex-direction:row !important;
    align-items:center !important;
    gap:18px !important;
  }
  .why-stats .why-stat .n{ font-size:52px !important; flex:0 0 auto; min-width:2.6ch; }
  .why-stats .why-stat .lbl{ font-size:12px !important; }
}

@media (max-width: 620px){
  :root{ --pad:18px; }
  .brand{ font-size:22px !important; }
  .rail{ display:none !important; }
  .rail button{ width:18px; height:18px; }
  .rail .pip{ width:7px !important; height:7px !important; }
  .top-banner{ height:50px; }
  .tb-cta{ display:none; }
  .tb-close{ margin-left:0; }
  .demo-feats{ display:none !important; }
  .glp-stats{ grid-template-columns:repeat(2, 1fr) !important; }
  .rsvp-actions{ flex-direction:column; }
  .why-stats{ flex-wrap:wrap; justify-content:flex-start; gap:16px; }
  .why-sep{ display:none; }
  .test-head{ font-size:clamp(38px, 13vw, 56px); }
  #field{ opacity:.5; }
  .intro-copy::before{
    width:100vw !important;
    height:58vh !important;
    background:radial-gradient(closest-side, rgba(246,238,225,.98) 0%, rgba(246,238,225,.9) 58%, rgba(246,238,225,.34) 82%, transparent 100%) !important;
  }
}

/* ============================================================
   SCROLL CUE — la gente no scrollea sola; un indicador animado y
   un "empujón" (.nudge) tras unos segundos sin interacción.
   ============================================================ */
.cue{
  position:absolute !important;
  bottom:clamp(18px, 3vh, 34px);
  left:50%;
  transform:translateX(-50%);
  display:flex !important;
  flex-direction:column;
  align-items:center;
  gap:9px;
  z-index:120;
  background:none;
  cursor:pointer;
  color:var(--gold-d);
  transition:opacity .6s var(--out), transform .6s var(--out);
}
.dark-ui .cue{ color:var(--gold-l); }
.cue.hide{ opacity:0 !important; pointer-events:none; transform:translateX(-50%) translateY(8px); }
.cue-txt{
  font-family:var(--sans);
  font-size:10.5px;
  font-weight:600;
  letter-spacing:.28em;
  text-transform:uppercase;
}
.cue-mouse{
  width:23px; height:36px;
  border:1.6px solid currentColor;
  border-radius:13px;
  position:relative;
  opacity:.85;
}
.cue-wheel{
  position:absolute; left:50%; top:7px;
  width:3px; height:7px;
  background:currentColor; border-radius:2px;
  transform:translateX(-50%);
  animation:cue-wheel 1.6s var(--ease) infinite;
}
.cue-chevron{
  width:9px; height:9px;
  border-right:1.6px solid currentColor;
  border-bottom:1.6px solid currentColor;
  transform:rotate(45deg);
  opacity:.7;
  animation:cue-bob 1.6s var(--ease) infinite;
}
@keyframes cue-wheel{ 0%{ opacity:0; top:6px;} 30%{ opacity:1;} 60%{ opacity:1; top:16px;} 100%{ opacity:0; top:16px;} }
@keyframes cue-bob{ 0%,100%{ transform:rotate(45deg) translate(0,0);} 50%{ transform:rotate(45deg) translate(2px,2px);} }
/* Empujón: cuando lleva rato sin interacción, la pista late con más fuerza */
.cue.nudge{ animation:cue-pulse 1.4s var(--out) infinite; }
@keyframes cue-pulse{ 0%,100%{ transform:translateX(-50%) translateY(0);} 50%{ transform:translateX(-50%) translateY(7px);} }
@media (prefers-reduced-motion:reduce){
  .cue-wheel,.cue-chevron,.cue.nudge{ animation:none !important; }
}

/* ============================================================
   FOOTER PANEL — Contacto + FAQ + barra legal
   ============================================================ */
.p-foot{ background:var(--ink) !important; color:var(--cream); }
.p-foot .foot-in{
  display:flex;
  flex-direction:column;
  gap:clamp(34px, 5vh, 64px);
  width:100%;
}
.foot-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(40px, 6vw, 96px);
  align-items:start;
}
.p-foot .st{
  font-family:var(--sans);
  font-size:11.5px; font-weight:600;
  letter-spacing:.34em; text-transform:uppercase;
  color:var(--gold-l);
  display:block; margin-bottom:14px;
}
.foot-contact h2{
  font-size:clamp(34px, 4.6vw, 60px);
  color:var(--cream); margin-bottom:16px; line-height:1.0;
}
.foot-contact .lede{
  color:rgba(246,238,225,.74);
  font-size:16px; max-width:380px; margin-bottom:26px;
}
.foot-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:30px; }
.foot-channels{ list-style:none; display:grid; gap:12px; }
.foot-channels li{
  display:flex; align-items:baseline; gap:14px;
  padding-bottom:11px; border-bottom:1px solid rgba(246,238,225,.12);
  font-size:15px;
}
.foot-channels .fc-k{
  flex:0 0 116px;
  font-size:10.5px; font-weight:600; letter-spacing:.18em;
  text-transform:uppercase; color:rgba(246,238,225,.5);
}
.foot-channels a{ color:var(--gold-l); }
.foot-channels a:hover{ color:#fff; }

.faq-list{ display:grid; gap:18px; }
.faq-item{ padding-bottom:17px; border-bottom:1px solid rgba(246,238,225,.12); }
.faq-item dt{
  font-family:var(--serif);
  font-size:clamp(17px, 1.4vw, 20px);
  font-weight:500; color:var(--cream); margin-bottom:7px;
}
.faq-item dd{
  font-size:14.5px; line-height:1.6;
  color:rgba(246,238,225,.7); max-width:46ch;
}
.faq-item dd a{ color:var(--gold-l); text-decoration:underline; text-underline-offset:3px; }

.foot-bar{
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:16px 28px;
  padding-top:clamp(20px, 3vh, 30px);
  border-top:1px solid rgba(246,238,225,.16);
}
.foot-bar .fb-brand{
  font-family:var(--serif); font-weight:600; font-size:24px; color:var(--cream);
}
.foot-bar .fb-brand .dot{ color:var(--gold-l); }
.fb-links{ display:flex; gap:24px; flex-wrap:wrap; }
.fb-links a{
  font-size:13px; font-weight:500; letter-spacing:.02em;
  color:rgba(246,238,225,.72);
  transition:color .2s;
}
.fb-links a:hover{ color:var(--gold-l); }
.fb-legal{ font-size:12px; color:rgba(246,238,225,.46); letter-spacing:.02em; }

@media (max-width: 900px){
  .foot-grid{ grid-template-columns:1fr !important; gap:36px; }
  .foot-bar{ flex-direction:column; align-items:flex-start; gap:14px; }
  .foot-channels .fc-k{ flex-basis:96px; }
}

/* ============================================================
   PERSONALIZACIÓN DE TARJETAS (VARIANTES) — muestra que cada
   invitación es distinta. 4 estilos rotando sobre las 10 cartas.
   ============================================================ */
.env-card.variant-0{
  background:rgba(253,251,246,.9) !important;
  border:1px solid var(--c-ac) !important;
  box-shadow:0 4px 12px rgba(0,0,0,.12), inset 0 0 0 2px rgba(255,255,255,.9) !important;
}
.env-card.variant-1{
  background:rgba(255,255,255,.88) !important;
  border-radius:35px 35px 4px 4px !important;
}
.env-card.variant-2{
  background:rgba(30,20,24,.93) !important;
  border:1px solid rgba(232,210,156,.3) !important;
  box-shadow:0 5px 15px rgba(0,0,0,.4), inset 0 0 0 1px rgba(232,210,156,.15) !important;
}
.env-card.variant-3{
  background:rgba(254,253,250,.85) !important;
  border:1px dashed rgba(138,86,64,.35) !important;
}
/* Sellos de cera por variante */
.c3d[data-variant="0"] .env-seal{ background:var(--ui-gold) !important; color:#5c3c0a !important; }
.c3d[data-variant="1"] .env-seal{ background:var(--c-tx) !important; color:#fff !important; }
.c3d[data-variant="2"] .env-seal{ background:var(--gold-l) !important; color:#1a1a1a !important; }
.c3d[data-variant="3"] .env-seal{ background:#bd596d !important; color:#fff !important; }

/* ============================================================
   DEMO · conmutador de vistas + visual de mesas (cómo sentamos)
   ============================================================ */
.glp-tabs{ display:flex; border-bottom:1px solid var(--line-s); margin-top:-10px; }
.glp-tab{
  flex:1; padding:10px 4px;
  font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.06em;
  border:none; background:transparent; color:var(--ink-3); cursor:pointer;
  border-bottom:2px solid transparent; transition:all .3s ease;
}
.glp-tab.active{ color:var(--ink); border-bottom-color:var(--gold-d); }
.glp-tab:hover:not(.active){ color:var(--ink-2); }
.glp-view.hide{ display:none !important; }

.tables-summary{
  display:flex; justify-content:space-between;
  font-size:11px; color:var(--ink-3); text-transform:uppercase; letter-spacing:.05em;
  border-bottom:1px dashed var(--line); padding:12px 16px 8px;
}
.tables-grid{
  display:flex; flex-direction:column; gap:10px;
  padding:8px 16px 16px; max-height:220px; overflow-y:auto;
}
.tables-grid::-webkit-scrollbar{ width:7px; }
.tables-grid::-webkit-scrollbar-thumb{ background:var(--line); border-radius:7px; }

.demo-table-card{
  background:rgba(255,255,255,.45); border:1px solid var(--line); border-radius:12px;
  padding:10px 12px; display:flex; align-items:center; gap:14px;
  transition:background .3s ease, border-color .3s ease;
}
.demo-table-card:hover{ background:rgba(255,255,255,.85); border-color:var(--gold); }

.dt-visual{ position:relative; width:48px; height:48px; flex-shrink:0; display:grid; place-items:center; }
.dt-circle{
  width:28px; height:28px; border-radius:50%; border:1.5px dashed var(--gold-d);
  background:var(--paper); display:grid; place-items:center;
  font-family:var(--serif); font-size:11px; font-weight:700; color:var(--gold-d);
  box-shadow:var(--sh-sm); z-index:2;
}
.dt-seats{ position:absolute; inset:0; }
.dt-dot{
  position:absolute; width:6px; height:6px; border-radius:50%; background:var(--line);
  margin:-3px 0 0 -3px; left:50%; top:50%; transform-origin:0 0;
  transition:background .4s cubic-bezier(.175,.885,.32,1.275), transform .4s ease;
}
.dt-dot.taken{ background:var(--sage-d); box-shadow:0 0 0 1px #fff; transform:scale(1.28); }

.dt-info{ flex-grow:1; min-width:0; }
.dt-name{
  font-family:var(--serif); font-size:13.5px; font-weight:600; color:var(--ink);
  display:flex; justify-content:space-between;
}
.dt-count{ font-size:10.5px; color:var(--ink-3); font-family:var(--sans); font-weight:500; }
.dt-guests{
  font-size:11px; color:var(--ink-3);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px;
}

/* En el panel de contacto/footer ocultamos la marca fija superior
   (el footer ya muestra "Mesuvim." abajo) para que no se encime con
   el titular "¿Hablamos de tu boda?". */
.brand{ transition:opacity .4s var(--ease), color .3s ease !important; }
body.at-foot .brand{ opacity:0 !important; pointer-events:none !important; }

/* Mesa expandible: click en una mesa revela quién se sienta ahí */
.demo-table-card{ cursor:pointer; }
.dt-toggle{
  flex:0 0 auto; align-self:center;
  color:var(--ink-3); font-size:12px; line-height:1;
  transition:transform .3s var(--ease), color .3s ease;
}
.demo-table-card.is-open{ background:rgba(255,255,255,.92); border-color:var(--gold); }
.demo-table-card.is-open .dt-toggle{ transform:rotate(180deg); color:var(--gold-d); }
.demo-table-card.is-open .dt-guests{ display:none; }
.dt-roster{ list-style:none; margin:7px 0 1px; padding:0; display:none; }
.demo-table-card.is-open .dt-roster{ display:block; }
.dt-roster li{
  display:flex; justify-content:space-between; gap:12px;
  font-size:12px; color:var(--ink-2);
  padding:5px 0; border-bottom:1px dashed var(--line-s);
}
.dt-roster li:last-child{ border-bottom:none; }
.dt-roster .dtr-g{ color:var(--gold-d); font-weight:600; font-variant-numeric:tabular-nums; }
.dt-roster .dtr-g::before{ content:"·\00a0"; color:var(--ink-3); font-weight:400; }
.dt-roster .dtr-empty{ justify-content:flex-start; color:var(--ink-3); font-style:italic; border-bottom:none; }

/* ============================================================
   OPTIMIZACIÓN MÓVIL — afinado para teléfono
   ============================================================ */
@media (max-width: 900px){
  /* Demo: el bloque más alto en móvil; apretamos espacios y áreas táctiles */
  .p-demo .demo-grid{ gap:24px !important; }
  .demo-cols{ gap:16px !important; }
  .demo-head h2{ font-size:clamp(30px, 8.5vw, 42px) !important; }
  .demo-feats{ gap:7px !important; }
  .glp-tab{ padding:14px 6px !important; }      /* tap target cómodo */
  .demo-table-card{ padding:13px 12px !important; }
  .dt-roster li{ padding:7px 0 !important; }     /* filas tocables */
  /* Footer: respiración y áreas táctiles */
  .foot-actions .btn{ padding:14px 24px !important; }
  .fb-links{ gap:18px 22px !important; }
  .fb-links a{ padding:4px 0 !important; }
}
@media (max-width: 460px){
  .demo-head h2{ font-size:clamp(28px, 9vw, 36px) !important; }
  /* La distribución en mesas no debe desbordar en pantallas chicas */
  .tables-grid{ max-height:none !important; }
  .glp-tab{ font-size:11px !important; letter-spacing:.04em !important; }
}
