/* Luxury Wedding Invitation 3D — web de presentación */
:root {
  --ivory: #fbf7ef;
  --paper: #fffdf8;
  --cream: #f3e9d6;
  --line: #e6d7b8;
  --gold: #c9a256;
  --gold-l: #ecd49a;
  --gold-d: #8f6524;
  --ink: #3d2f20;
  --ink-soft: #7d6a50;
  --dark: #17110a;
  --dark-2: #241a10;
  --on-dark: #f3e6c9;
  --on-dark-soft: #c8b48c;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--dark); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .86em; padding: .1em .4em; border-radius: 6px; background: rgba(201, 162, 86, .16); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--gold); color: var(--dark); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; margin-top: 44px; }

/* tipografía */
.script { font-family: var(--script); font-weight: 400; line-height: 1.05; }
.gold, .gold-d {
  background: linear-gradient(100deg, #b9893a 0%, #e8c979 30%, #fff0c2 45%, #d3a752 62%, #a87a2c 85%, #e6c67c 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  padding: .1em .3em; margin: -.1em -.3em; animation: shine 8s linear infinite;
}
.gold-d { background-image: linear-gradient(100deg, #8a5f20 0%, #c39445 30%, #e9c97f 45%, #b0823a 62%, #7d561c 85%, #c49a50 100%); background-size: 220% 100%; }
@keyframes shine { to { background-position: -220% 0; } }
.eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.sec-ivory .eyebrow { color: var(--gold-d); }
.h3-serif { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.2; }

/* botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 28px; border-radius: 999px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: .02em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s, background-position .6s, background-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--gold-l); outline-offset: 3px; }
.btn-gold { color: #2a1d0d; background: linear-gradient(110deg, #f0d48c, #c99a45 45%, #ecd08a 70%, #c08f3c) 0 0 / 220% 100%; box-shadow: 0 10px 28px rgba(201, 150, 60, .35), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-gold:hover { background-position: 100% 0; box-shadow: 0 14px 34px rgba(201, 150, 60, .45), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-ghost { color: var(--on-dark); border-color: rgba(236, 212, 154, .5); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { background: rgba(236, 212, 154, .1); }
.btn-sm { min-height: 40px; padding: 0 20px; font-size: 14px; }

/* navegación */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.is-solid { background: rgba(23, 17, 10, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(214, 180, 112, .2); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-dark); }
.logo-seal { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); }
.logo-seal svg, .final-seal svg { width: 100%; height: 100%; display: block; }
.logo-text { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.logo-text em { font-style: italic; color: var(--gold-l); }
.menu { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.menu a:not(.btn) { color: var(--on-dark-soft); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .2s; }
.menu a:not(.btn):hover { color: var(--on-dark); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid rgba(236, 212, 154, .4); border-radius: 12px; background: transparent; cursor: pointer; position: relative; }
.nav-toggle span:not(.sr) { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--on-dark); transition: transform .3s, top .3s; }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* portada */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(900px 640px at 78% 42%, rgba(201, 150, 70, .28), transparent 62%),
    radial-gradient(800px 600px at 8% 10%, rgba(120, 86, 44, .5), transparent 60%),
    linear-gradient(165deg, #2c2013 0%, #17110a 65%);
}
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(to bottom, rgba(251, 247, 239, 0), rgba(251, 247, 239, .06)); pointer-events: none; }
.hero-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; padding-top: 110px; padding-bottom: 80px; }
.hero h1 { font-weight: 400; margin-top: 18px; }
.hero h1 .script { display: block; font-size: clamp(58px, 8vw, 112px); }
.h1-sub { display: block; margin-top: 6px; font-family: var(--serif); font-size: clamp(26px, 3.2vw, 42px); font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--on-dark); }
.lead { margin-top: 26px; max-width: 560px; font-size: 18px; line-height: 1.7; color: var(--on-dark-soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--on-dark-soft); }
.hero-points li::before { content: '✦'; margin-right: 8px; color: var(--gold); font-size: 10px; }
.hero-device { justify-self: center; text-align: center; }
.phone {
  position: relative; width: 340px; height: 712px; padding: 12px; border-radius: 52px; background: #0b0805;
  box-shadow: 0 0 0 2px #3a2b19, 0 0 0 3px rgba(214, 180, 112, .45), 0 50px 100px rgba(0, 0, 0, .6), 0 0 120px rgba(201, 150, 70, .18);
  transform: rotate(-1.5deg);
}
.phone::before { content: ''; position: absolute; top: 22px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #0b0805; z-index: 3; }
.phone-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 41px; background: #f6ecdb; }
.phone-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .6s ease; }
.phone-fallback { position: absolute; inset: 0; z-index: 1; display: block; transition: opacity .6s ease, visibility .6s; }
.phone-fallback img { width: 100%; height: 100%; object-fit: cover; }
.phone-fallback span {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; white-space: nowrap;
  font-size: 13px; font-weight: 600; color: #2a1d0d; background: linear-gradient(110deg, #f0d48c, #c99a45); box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
}
.is-live .phone-frame { opacity: 1; }
.is-live .phone-fallback { opacity: 0; visibility: hidden; }
.device-note { margin-top: 22px; font-size: 13px; color: var(--on-dark-soft); }
.device-note .dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #9ccf8f; box-shadow: 0 0 0 4px rgba(156, 207, 143, .18); vertical-align: 1px; }
.note-live { display: none; }
.is-live .note-live { display: inline; }
.is-live .note-shot { display: none; }
.hero-scroll { position: absolute; left: 50%; bottom: 22px; width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(236, 212, 154, .35); color: var(--gold-l); }
.hero-scroll svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* secciones */
.sec { position: relative; padding: 120px 0; }
.sec-ivory { background: var(--ivory); color: var(--ink); }
.sec-ivory::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(700px 300px at 50% 0%, rgba(233, 207, 150, .35), transparent 70%);
}
.sec-dark { background: linear-gradient(180deg, var(--dark-2), var(--dark)); color: var(--on-dark); }
.sec-head { position: relative; text-align: center; max-width: 720px; margin: 0 auto 64px; }
.sec-head h2 { margin-top: 12px; font-weight: 400; font-size: clamp(50px, 7vw, 82px); }
.sec-lead { margin-top: 16px; font-size: 17.5px; color: var(--ink-soft); }
.sec-dark .sec-lead { color: var(--on-dark-soft); }

/* pasos */
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 36px 22px; }
.step figure { margin: 0 0 16px; border-radius: 22px; overflow: hidden; background: var(--cream); box-shadow: 0 0 0 1px rgba(201, 162, 86, .35), 0 0 0 5px var(--paper), 0 0 0 6px rgba(201, 162, 86, .22), 0 18px 40px rgba(110, 80, 40, .16); transition: transform .5s var(--ease), box-shadow .5s; }
.step figure img { aspect-ratio: 600 / 1298; object-fit: cover; width: 100%; }
.step:hover figure { transform: translateY(-6px); }
.step h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.2; }
.step h3 span { display: block; font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .2em; color: var(--gold-d); margin-bottom: 4px; }
.step p { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }

/* funciones */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  padding: 30px 28px; border-radius: 22px; background: linear-gradient(160deg, rgba(255, 245, 220, .06), rgba(255, 245, 220, .02));
  border: 1px solid rgba(214, 180, 112, .22); transition: border-color .3s, transform .4s var(--ease), background .3s;
}
.feat:hover { border-color: rgba(236, 212, 154, .55); transform: translateY(-4px); background: linear-gradient(160deg, rgba(255, 245, 220, .09), rgba(255, 245, 220, .03)); }
.feat-ico { width: 58px; height: 58px; margin-bottom: 18px; border-radius: 16px; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff6dd, #f1dfb3 60%, #ddc187); box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(0, 0, 0, .25); }
.feat-ico svg { width: 44px; height: 44px; }
.feat-spark { font-size: 26px; color: var(--gold-d); }
.feat-pin svg { width: 28px; height: 28px; fill: none; stroke: var(--gold-d); stroke-width: 1.6; }
.feat h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--on-dark); }
.feat p { margin-top: 8px; font-size: 15px; color: var(--on-dark-soft); }
.wide-shot { margin: 64px 0 0; }
.wide-shot img, .editor-shot img { border-radius: 18px; box-shadow: 0 0 0 1px rgba(214, 180, 112, .35), 0 30px 70px rgba(0, 0, 0, .45); }
figcaption { margin-top: 12px; text-align: center; font-size: 13px; color: var(--on-dark-soft); }
.sec-ivory figcaption { color: var(--ink-soft); }

/* cómo funciona */
.how { position: relative; list-style: none; margin: 0 0 80px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.how li { padding: 30px 28px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(110, 80, 40, .07); }
.how-n { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%; font-family: var(--serif); font-size: 22px; font-weight: 600; color: #fff; background: linear-gradient(135deg, #dcb66a, #a87a2c); }
.how h3 { font-family: var(--serif); font-size: 25px; font-weight: 600; }
.how p { margin-top: 6px; font-size: 15px; color: var(--ink-soft); }
.editor-show { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: center; }
.editor-copy .h3-serif { margin-top: 10px; font-size: 34px; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 28px; margin-top: 10px; font-size: 15.5px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.note { margin-top: 22px; padding: 16px 18px; border-radius: 14px; font-size: 14.5px; line-height: 1.6; background: #f7edd8; border: 1px solid var(--line); }
.editor-shot { margin: 0; }
.compare { position: relative; margin-top: 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.compare-col { padding: 32px 30px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); }
.compare-col .h3-serif { color: var(--gold-d); }
.compare dl { margin: 16px 0 0; }
.compare dt { margin-top: 16px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.compare dd { margin: 4px 0 0; font-size: 15.5px; }

/* versiones */
.versions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; margin: 0 auto; }
.ver { position: relative; padding: 40px 36px; border-radius: 26px; border: 1px solid rgba(214, 180, 112, .35); background: linear-gradient(160deg, rgba(255, 245, 220, .08), rgba(255, 245, 220, .02)); }
.ver-tag { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #2a1d0d; background: linear-gradient(110deg, #f0d48c, #c99a45); }
.ver h3 { margin-top: 18px; font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.15; color: var(--on-dark); }
.ver h3 small { display: block; font-size: 20px; font-style: italic; font-weight: 500; color: var(--gold-l); }
.ver .ticks li { color: var(--on-dark-soft); }
.ver .btn { margin-top: 28px; }
.ver-note { margin-top: 24px; font-size: 13.5px; font-style: italic; color: var(--on-dark-soft); }

/* preguntas */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 40px 22px 0; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 24px; font-weight: 300; color: var(--gold-d); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; font-size: 15.5px; color: var(--ink-soft); }

/* llamada final */
.final { position: relative; padding: 120px 0; text-align: center; color: var(--on-dark); background: radial-gradient(700px 420px at 50% 40%, rgba(201, 150, 70, .3), transparent 70%), linear-gradient(180deg, #1f160c, var(--dark)); }
.final-seal { width: 120px; height: 120px; margin: 0 auto 22px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .45)); }
.final h2 { font-weight: 400; font-size: clamp(52px, 7vw, 84px); }
.final p { margin: 14px auto 30px; max-width: 520px; font-size: 17px; color: var(--on-dark-soft); }

/* pie */
.foot { padding: 44px 0; background: #0f0b06; color: var(--on-dark-soft); border-top: 1px solid rgba(214, 180, 112, .18); }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: center; }
.foot-logo { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--on-dark); }
.foot-logo em { color: var(--gold-l); }
.foot-small { margin-top: 4px; font-size: 13px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-nav a { text-decoration: none; font-size: 14px; }
.foot-nav a:hover { color: var(--on-dark); }
.foot-legal { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(214, 180, 112, .12); }

/* aparición */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* adaptable */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .menu {
    position: absolute; top: 76px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px;
    border-radius: 18px; background: rgba(23, 17, 10, .97); border: 1px solid rgba(214, 180, 112, .25); box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .menu a:not(.btn) { padding: 12px 10px; font-size: 16px; }
  .menu .btn { margin-top: 8px; }
  .nav { background: rgba(23, 17, 10, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .hero { align-items: flex-start; }
  .hero-in { grid-template-columns: 1fr; gap: 44px; padding-top: 112px; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-points { justify-content: center; }
  .phone { width: 290px; height: 610px; transform: none; }
  .editor-show, .compare, .versions { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; }
  .sec { padding: 90px 0; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .logo-text { font-size: 18px; }
  .steps { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 6px 18px 18px; scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .step { flex: 0 0 72%; scroll-snap-align: center; }
  .features { grid-template-columns: 1fr; }
  .feat { padding: 26px 22px; }
  .sec-head { margin-bottom: 44px; }
  .foot-in { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-cta { flex-direction: column; }
  .ver { padding: 32px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gold, .gold-d, .hero-scroll svg { animation: none; }
}
