/* ==========================================================================
   CASA DEL SÍ — escaparate de webs de boda. Mobile-first.
   ========================================================================== */
:root {
  --c-bg: #f4efe7; --c-ink: #171411; --c-muted: #6b6259; --c-line: rgba(23, 20, 17, .12); --c-surface: #fffdf9;
  --c-accent: #8a6a3f; --c-accent-ink: #fff; --c-dark: #12100e; --c-gold: #d9b88a;
  --f-display: "Instrument Serif", "Times New Roman", serif; --f-body: "Inter", system-ui, sans-serif;
  --radius: 22px; --btn-radius: 999px; --gutter: 20px; --ease: cubic-bezier(.2, .8, .2, 1);
}
html { scroll-padding-top: 76px; }
body { font-size: 16px; line-height: 1.6; }
em { font-style: italic; }

.kicker { margin: 0 0 16px; font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--c-accent); }
.sec-head { padding: 0 var(--gutter); margin: 0 auto 44px; max-width: 1280px; }
.sec-head--center { text-align: center; }
.sec-title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(42px, 11vw, 96px); line-height: .98; letter-spacing: -.02em; }
.sec-title em { color: var(--c-accent); }
.sec-lead { max-width: 54ch; margin: 18px 0 0; color: var(--c-muted); font-size: 17px; }
.sec-head--center .sec-lead { margin-inline: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: var(--btn-radius); border: 1px solid transparent; font-size: 15px; font-weight: 600; text-decoration: none; transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s; }
.btn:hover { transform: translateY(-2px); }
.btn--light { background: #f6efe4; color: var(--c-dark); }
.btn--line { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--line:hover { background: rgba(255,255,255,.08); }
.btn--dark { background: var(--c-ink); color: #fff; }
.btn--line-dark { border-color: var(--c-line); color: var(--c-ink); }
.btn--line-dark:hover { border-color: var(--c-ink); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 900; display: flex; align-items: center; gap: 16px; height: 64px; padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); color: #fff; transition: background .4s, color .4s, box-shadow .4s; }
.nav.is-solid { background: color-mix(in srgb, var(--c-bg) 86%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); color: var(--c-ink); box-shadow: 0 1px 0 var(--c-line); }
.nav__logo { margin-right: auto; font-family: var(--f-display); font-size: clamp(25px, 6.6vw, 30px); --brand-accent: var(--c-gold); }
.nav.is-solid .nav__logo { --brand-accent: var(--c-accent); }

.nav__links { display: none; }
.nav__cta { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid currentColor; font-size: 14px; font-weight: 500; text-decoration: none; transition: background .3s, color .3s; }
.nav__cta:hover { background: currentColor; }
.nav__cta:hover { color: inherit; background: rgba(127,127,127,.15); }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; gap: 40px; padding: 120px var(--gutter) 64px; background: radial-gradient(120% 70% at 80% 20%, #2a221a 0%, var(--c-dark) 60%); color: #f6efe4; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08; 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='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero .kicker { color: var(--c-gold); }
.hero__title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(54px, 15vw, 132px); line-height: .92; letter-spacing: -.03em; }
.hero__title em { color: var(--c-gold); }
.hero__lead { max-width: 46ch; margin: 22px 0 0; font-size: 17px; color: rgba(246, 239, 228, .75); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero__ctas .btn { flex: 1 1 auto; }
.hero__proof { display: flex; gap: 22px; margin: 34px 0 0; padding: 0; list-style: none; font-size: 13px; color: rgba(246, 239, 228, .6); }
.hero__proof b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 32px; line-height: 1; color: #f6efe4; }
.hero__stage { position: relative; height: 420px; }
.phone { position: absolute; width: 168px; aspect-ratio: 9 / 19; border-radius: 28px; padding: 6px; background: #0a0908; box-shadow: 0 40px 80px -20px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.12); will-change: transform; }
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.phone span { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.phone--a { left: 50%; top: 0; margin-left: -84px; z-index: 2; }
.phone--b { left: 2%; top: 60px; rotate: -8deg; opacity: .9; }
.phone--c { right: 2%; top: 60px; rotate: 8deg; opacity: .9; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 18px 0; background: var(--c-dark); color: rgba(246, 239, 228, .85); border-top: 1px solid rgba(255,255,255,.08); }
.marquee__track { display: flex; gap: 28px; width: max-content; animation: marquee 40s linear infinite; font-family: var(--f-display); font-size: 24px; white-space: nowrap; }
.marquee__track i { font-style: normal; color: var(--c-gold); font-size: 14px; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Plantillas ---------- */
.templates { padding: 96px 0 40px; }
.tpl-list { display: grid; gap: 96px; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.tpl { display: grid; gap: 28px; }
.tpl__num { font-family: var(--f-display); font-size: 18px; color: var(--c-accent); }
.tpl__name { margin: 4px 0 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(52px, 14vw, 110px); line-height: .9; letter-spacing: -.02em; }
.tpl__tagline { margin: 12px 0 0; font-family: var(--f-display); font-style: italic; font-size: 24px; line-height: 1.2; color: var(--c-accent); }
.tpl__desc { margin: 14px 0 0; color: var(--c-muted); max-width: 52ch; }
.tpl__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.tpl__tags li { padding: 6px 12px; border: 1px solid var(--c-line); border-radius: 999px; font-size: 13px; color: var(--c-muted); }

.tpl__styles { margin-top: 26px; }
.tpl__styles-label { display: flex; justify-content: space-between; margin: 0 0 10px; font-size: 13px; color: var(--c-muted); }
.tpl__styles-label b { color: var(--c-ink); font-weight: 600; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: conic-gradient(var(--a) 0 50%, var(--b) 50% 75%, var(--c) 75% 100%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); transition: transform .3s var(--ease); }
.swatch::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid transparent; transition: border-color .3s; }
.swatch:hover { transform: scale(1.06); }
.swatch[aria-pressed="true"]::after { border-color: var(--c-ink); }
.tpl__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tpl__ctas .btn { flex: 1 1 auto; }

/* Dispositivos */
.devices { position: relative; }
.browser { display: none; }
.device-phone { position: relative; width: min(300px, 78vw); margin: 0 auto; aspect-ratio: 390 / 844; border-radius: 42px; padding: 10px; background: #0d0c0b; box-shadow: 0 50px 100px -30px rgba(23,20,17,.45), inset 0 0 0 1.5px rgba(255,255,255,.08); }
.device-phone::before { content: ""; position: absolute; top: 18px; left: 50%; z-index: 3; width: 84px; height: 24px; margin-left: -42px; border-radius: 20px; background: #0d0c0b; }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 32px; background: #1b1916; }
.screen iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; transform: scale(var(--s, .5)); background: #1b1916; }
.device-phone iframe { width: 390px; height: 844px; }
.screen__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s; }
.screen.is-loaded .screen__poster { opacity: 0; pointer-events: none; }
.screen__open { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 22px; text-decoration: none; }
.screen__open span { padding: 10px 16px; border-radius: 999px; background: rgba(15,13,11,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 13px; font-weight: 500; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease); }
.screen__open:hover span, .screen__open:focus-visible span { opacity: 1; transform: none; }
@media (hover: none) { .screen__open span { opacity: 1; transform: none; } }

/* ---------- Incluido ---------- */
.included { padding: 110px 0 90px; }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; max-width: 1280px; margin: 0 auto; padding: 0; list-style: none; background: var(--c-line); border-block: 1px solid var(--c-line); }
.feat-grid li { padding: 24px 16px 26px; background: var(--c-bg); }
.feat-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-accent); font-size: 18px; }
.feat-grid h3 { margin: 14px 0 6px; font-family: var(--f-display); font-weight: 400; font-size: 23px; line-height: 1.1; }
.feat-grid p { margin: 0; color: var(--c-muted); font-size: 14px; line-height: 1.5; }
@media (min-width: 720px) { .feat-grid li { padding: 30px 26px; } .feat-grid h3 { font-size: 28px; } .feat-grid p { font-size: 15px; } }

/* ---------- RSVP demo ---------- */
.rsvp-demo { display: grid; gap: 40px; padding: 110px var(--gutter); background: var(--c-dark); color: #f6efe4; }
.rsvp-demo .kicker { color: var(--c-gold); }
.rsvp-demo .sec-title em { color: var(--c-gold); }
.rsvp-demo .sec-lead { color: rgba(246, 239, 228, .7); }
.rsvp-demo__steps { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.rsvp-demo__steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; color: rgba(246, 239, 228, .75); font-size: 15px; }
.rsvp-demo__steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(217, 184, 138, .5); color: var(--c-gold); font-size: 13px; }
.rsvp-demo__steps b { color: #f6efe4; font-weight: 600; }
.rsvp-demo__steps code { font-size: 13px; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--c-gold); word-break: break-all; }
.rsvp-demo__phone { width: 100%; max-width: 520px; margin: 0 auto; }
.rsvp-demo .rsvp { --r-bg: #fffdf9; --r-ink: #171411; --r-muted: #6b6259; --r-line: rgba(23,20,17,.12); --r-accent: #8a6a3f; --r-accent-ink: #fff; --r-radius: 28px; --r-shadow: 0 50px 120px -30px rgba(0,0,0,.7); min-height: 520px; }

/* ---------- Panel ---------- */
.panel-demo { display: grid; gap: 40px; max-width: 1280px; margin: 0 auto; padding: 110px var(--gutter) 40px; }
.panel-demo__list { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.panel-demo__list li { display: flex; gap: 10px; font-size: 15px; }
.panel-demo__list li::before { content: "✓"; color: var(--c-accent); font-weight: 600; }
.panel-demo__shot { display: block; overflow: hidden; border-radius: 20px; box-shadow: 0 50px 100px -40px rgba(23,20,17,.5), 0 0 0 1px var(--c-line); transition: transform .5s var(--ease); }
.panel-demo__shot:hover { transform: translateY(-4px); }
.panel-demo__shot img { width: 100%; }
@media (min-width: 1024px) { .panel-demo { grid-template-columns: .9fr 1.3fr; align-items: center; gap: 64px; } }

/* ---------- Proceso ---------- */
.process { padding: 110px 0 90px; }
.steps { display: grid; gap: 14px; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); list-style: none; }
.steps li { padding: 28px 24px; border-radius: var(--radius); background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); }
.steps span { font-family: var(--f-display); font-size: 44px; line-height: 1; color: var(--c-accent); }
.steps h3 { margin: 14px 0 6px; font-family: var(--f-display); font-weight: 400; font-size: 28px; line-height: 1.1; }
.steps p { margin: 0; color: var(--c-muted); font-size: 15px; }

/* ---------- Precios ---------- */
.pricing { padding: 90px 0 100px; }
.plans { display: grid; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 26px; border-radius: var(--radius); background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); }
.plan h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 34px; }
.plan__price { margin: 8px 0 0; font-size: 15px; color: var(--c-muted); }
.plan__price b { font-family: var(--f-display); font-weight: 400; font-size: 56px; line-height: 1; color: var(--c-ink); }
.plan__desc { margin: 10px 0 18px; color: var(--c-muted); font-size: 15px; }
.plan ul { margin: 0 0 26px; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--c-line); display: grid; gap: 10px; font-size: 15px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--c-accent); font-weight: 600; }
.plan .btn { margin-top: auto; }
.plan--featured { background: var(--c-dark); color: #f6efe4; box-shadow: 0 40px 80px -40px rgba(23,20,17,.6); }
.plan--featured .plan__price b { color: #f6efe4; }
.plan--featured .plan__price, .plan--featured .plan__desc { color: rgba(246,239,228,.65); }
.plan--featured ul { border-color: rgba(255,255,255,.12); }
.plan--featured li::before { color: var(--c-gold); }
.plan--featured .btn--dark { background: var(--c-gold); color: var(--c-dark); }
.plan__badge { position: absolute; top: 22px; right: 22px; margin: 0; padding: 4px 10px; border-radius: 999px; background: var(--c-gold); color: var(--c-dark); font-size: 12px; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { padding: 60px 0 110px; }
.faq__list { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 18px 0; font-family: var(--f-display); font-size: 24px; line-height: 1.2; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--c-line); font-family: var(--f-body); font-size: 18px; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; max-width: 70ch; color: var(--c-muted); }

/* ---------- CTA ---------- */
.cta { position: relative; display: grid; place-items: center; min-height: 92svh; overflow: hidden; color: #fff; text-align: center; background: var(--c-dark); isolation: isolate; }
.cta video { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 70% at 50% 50%, rgba(0,0,0,.15), rgba(0,0,0,.7)); }
.cta__inner { padding: 100px var(--gutter); max-width: 900px; }
.cta .kicker { color: var(--c-gold); }
.cta__title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(54px, 14vw, 136px); line-height: .92; letter-spacing: -.03em; }
.cta__title em { color: var(--c-gold); }
.cta__lead { margin: 20px auto 0; max-width: 44ch; color: rgba(255,255,255,.8); font-size: 17px; }
.cta .hero__ctas { justify-content: center; }

.foot { padding: 50px var(--gutter) max(110px, calc(env(safe-area-inset-bottom) + 96px)); text-align: center; color: var(--c-muted); font-size: 14px; }
.foot__logo { margin: 0 0 10px; font-family: var(--f-display); font-size: 44px; color: var(--c-ink); }
.foot a { color: inherit; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 22px 0 6px; font-size: 13px; }
.foot__copy { margin: 0; font-size: 12px; opacity: .8; }
.foot__tag { font-family: var(--f-display); font-size: 22px; color: var(--c-ink); }

/* Botón flotante (móvil): la acción principal siempre a mano */
.fab { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 800; transform: translate(-50%, 140%); display: inline-flex; align-items: center; height: 52px; padding: 0 26px; border-radius: 999px; background: var(--c-ink); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; box-shadow: 0 16px 40px -10px rgba(0,0,0,.5); transition: transform .5s var(--ease); }
.fab.is-in { transform: translate(-50%, 0); }

/* ==========================================================================
   ≥ 720px
   ========================================================================== */
@media (min-width: 720px) {
  :root { --gutter: 40px; }
  .hero__ctas .btn, .tpl__ctas .btn { flex: 0 0 auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .phone { width: 200px; }
  .phone--a { margin-left: -100px; }
  .hero__stage { height: 480px; }
}

/* ==========================================================================
   ≥ 1024px
   ========================================================================== */
@media (min-width: 1024px) {
  :root { --gutter: 56px; }
  .nav { height: 76px; }
  .nav__links { display: flex; gap: 32px; margin-right: 18px; font-size: 14px; }
  .nav__links a { text-decoration: none; opacity: .8; transition: opacity .3s; }
  .nav__links a:hover { opacity: 1; }
  .nav__cta { height: 44px; padding: 0 22px; }
  .fab { display: none; }

  .hero { grid-template-columns: 1.05fr 1fr; align-items: center; min-height: 100svh; padding-top: 110px; }
  .hero__stage { height: 640px; }
  .phone { width: 250px; border-radius: 38px; padding: 8px; }
  .phone video { border-radius: 30px; }
  .phone--a { margin-left: -125px; top: 30px; }
  .phone--b { left: 0; top: 110px; }
  .phone--c { right: 0; top: 110px; }

  .tpl-list { gap: 160px; }
  .tpl { grid-template-columns: minmax(320px, .8fr) 1.6fr; gap: 64px; align-items: center; }
  .tpl:nth-child(even) { grid-template-columns: 1.6fr minmax(320px, .8fr); }
  .tpl:nth-child(even) .tpl__info { order: 2; }
  .tpl__name { font-size: clamp(60px, 6.4vw, 104px); }
  .hero__title { font-size: clamp(72px, 7.2vw, 124px); }
  .devices { padding: 0 0 60px; }
  .browser { display: block; border-radius: 14px; overflow: hidden; background: #0d0c0b; box-shadow: 0 60px 120px -40px rgba(23,20,17,.5), inset 0 0 0 1px rgba(0,0,0,.08); }
  .browser__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #1e1c19; }
  .browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3b3833; }
  .browser__bar span { flex: 1; margin: 0 40px; height: 20px; border-radius: 6px; background: #2b2925; color: rgba(255,255,255,.5); font-size: 11px; line-height: 20px; text-align: center; }
  .browser .screen { aspect-ratio: 1440 / 900; height: auto; border-radius: 0; }
  .browser iframe { width: 1440px; height: 900px; }
  .devices .device-phone { position: absolute; right: -24px; bottom: 0; width: 210px; margin: 0; border-radius: 34px; padding: 8px; }
  .tpl:nth-child(even) .devices .device-phone { right: auto; left: -24px; }
  .devices .device-phone .screen { border-radius: 27px; }
  .devices .device-phone::before { top: 14px; width: 60px; height: 18px; margin-left: -30px; }

  .feat-grid { grid-template-columns: repeat(4, 1fr); }
  .feat-grid li { padding: 34px 28px; }
  .rsvp-demo { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 140px var(--gutter); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .plan--featured { transform: translateY(-16px); }
  .faq { display: grid; grid-template-columns: 1fr 2fr; max-width: 1280px; margin: 0 auto; }
  .faq .sec-head { margin: 0; }
  .faq__list { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }
