/* Landing comercial de Momentos invisibles.
   Idea: las fotos que hacen los invitados son pequeñas instantáneas que «se revelan» al cargar
   (fotos de ejemplo de Unsplash en img/landing, ver CREDITOS.txt).
   Gloock para titulares, Hanken Grotesk para el texto. Sin estilos en línea (CSP). */

@font-face { font-family: "Gloock"; src: url("../fonts/gloock-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --paper: #fbf9fc;
  --ink: #2b1d33;
  --ink-soft: #5e4f66;
  --almond: #f4e3de;
  --sage: #e9eee4;
  --dusk: #343f63;
  --candle: #f0c879;
  --focus: #c48a2c;
  --display: "Gloock", Georgia, serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.4vw, 50px); }
h3 { font-size: 25px; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.split { display: grid; gap: 28px 64px; }
@media (min-width: 880px) { .split { grid-template-columns: 5fr 7fr; align-items: start; } }

/* Botones */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 17px; line-height: 1.2;
  padding: 16px 28px; border-radius: 999px; transition: background-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-cta { background: var(--ink); color: var(--paper); }
.btn-cta:hover { background: #45304f; }
.btn-ghost { border: 2px solid var(--ink); color: var(--ink); padding: 14px 26px; }
.btn-ghost:hover { background: rgba(43, 29, 51, .06); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--almond); }

/* Marca */
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 22px; line-height: 1; }
.logo-mark { width: 34px; height: 34px; color: var(--ink); }
.logo-spark { fill: var(--candle); }
.wordmark.small { font-size: 19px; }
.wordmark.small .logo-mark { width: 28px; height: 28px; }

/* Portada */
.hero { max-width: 1120px; margin: 0 auto; padding: 28px 24px 72px; overflow-x: clip; }
.hero-grid { display: grid; gap: 48px; margin-top: 56px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; margin-top: 72px; } }
.hero h1 { font-size: clamp(44px, 6.6vw, 84px); line-height: 1.02; letter-spacing: -0.02em; max-width: 13ch; }
.lede { margin-top: 26px; font-size: 20px; color: var(--ink-soft); max-width: 34em; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.price { font-size: 16px; color: var(--ink-soft); max-width: 19em; line-height: 1.45; }
.price strong { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--ink); }

/* Instantáneas de invitados */
.pile { position: relative; height: 600px; }
.snap {
  position: absolute; margin: 0; width: 218px; padding: 12px 12px 16px; background: #fff; border-radius: 3px;
  box-shadow: 0 1px 1px rgba(43, 29, 51, .08), 0 22px 44px -22px rgba(43, 29, 51, .5);
}
.snap-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 1px; background: var(--almond); animation: develop 2.6s ease-out both; }
.snap figcaption { margin-top: 12px; font-style: italic; font-size: 15px; line-height: 1.35; }
.snap figcaption span { display: block; margin-top: 4px; font-style: normal; font-size: 13px; color: var(--ink-soft); }

.snap-toast { left: 0; top: 48px; transform: rotate(-5deg); z-index: 2; }
.snap-kids { right: 0; top: 0; transform: rotate(4deg); z-index: 1; }
.snap-table { left: 27%; bottom: 0; transform: rotate(2.5deg); z-index: 0; }
.snap-kids .snap-img { animation-delay: .5s; }
.snap-table .snap-img { animation-delay: 1s; aspect-ratio: 5 / 4; }

@keyframes develop {
  from { filter: saturate(0) brightness(1.7) contrast(.55) blur(2px); }
  to { filter: none; }
}

@media (max-width: 899px) {
  .pile { height: 420px; max-width: 520px; }
  .snap { width: 54%; }
  .snap-toast { top: 30px; }
  .snap-table { display: none; }
}
@media (max-width: 420px) {
  .pile { height: 360px; }
  .snap { padding: 8px 8px 12px; }
  .snap figcaption { font-size: 13px; }
  .snap figcaption span { font-size: 12px; }
}

/* Así funciona */
.steps { padding: 88px 0 96px; background: var(--almond); }
.timeline { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 40px; }
.timeline li { position: relative; padding-left: 34px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--candle); border: 2px solid var(--ink);
}
.timeline li:not(:last-child)::after {
  content: ""; position: absolute; left: 6px; top: 26px; bottom: -36px; width: 2px; background: var(--ink); opacity: .25;
}
.when { font-size: 15px; font-weight: 600; color: var(--dusk); margin-bottom: 8px; }
.timeline h3 { margin-bottom: 10px; }
.timeline li > p:last-child { color: var(--ink-soft); }
@media (min-width: 820px) {
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .timeline li { padding: 34px 0 0; }
  .timeline li::before { top: 0; }
  .timeline li:not(:last-child)::after { left: 22px; right: -42px; top: 6px; bottom: auto; width: auto; height: 2px; }
}

/* Demo */
.demo-card { padding: 72px 0; background: var(--paper); }
.demo-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 760px) { .demo-grid { grid-template-columns: 220px 1fr; gap: 56px; } }
.demo-qr { width: 220px; padding: 16px; background: #fff; border: 2px solid var(--ink); border-radius: 6px; }
.demo-qr svg { display: block; width: 100%; height: auto; }
.demo-card h2 { margin-bottom: 14px; }
.demo-card p { color: var(--ink-soft); max-width: 32em; margin-bottom: 24px; }

/* Comparativa */
.compare { padding: 96px 0 104px; background: var(--ink); color: var(--paper); }
.compare-head { max-width: 720px; }
.compare-head p { margin-top: 18px; color: rgba(251, 249, 252, .72); font-size: 19px; }
.vs { width: 100%; margin-top: 52px; border-collapse: separate; border-spacing: 0; font-size: 17px; line-height: 1.4; }
.vs th, .vs td { text-align: left; vertical-align: top; padding: 18px 20px; }
.vs thead th { font-family: var(--display); font-weight: 400; font-size: 22px; padding-top: 26px; padding-bottom: 20px; }
.vs th[scope="row"] { font-weight: 500; font-size: 15px; color: rgba(251, 249, 252, .6); width: 22%; padding-left: 0; }
.vs tbody tr + tr > * { border-top: 1px solid rgba(251, 249, 252, .12); }
.vs .them { color: rgba(251, 249, 252, .55); width: 36%; }
.vs .us { background: var(--candle); color: var(--ink); font-weight: 600; }
.vs tbody tr + tr > .us { border-top-color: rgba(43, 29, 51, .14); }
.vs thead .us { border-radius: 14px 14px 0 0; font-size: 26px; }
.vs tbody tr:last-child .us { border-radius: 0 0 14px 14px; padding-bottom: 26px; }
.mark { display: inline-block; width: 1.4em; font-weight: 700; }
.mark.no { color: rgba(251, 249, 252, .4); }

@media (max-width: 640px) {
  .vs, .vs thead, .vs tbody { display: block; }
  .vs tr { display: grid; grid-template-columns: 1fr 1fr; }
  .vs thead th:first-child { display: none; }
  .vs th, .vs td { padding: 12px 14px; font-size: 15px; }
  .vs th[scope="row"] { grid-column: 1 / -1; width: auto; padding: 22px 0 8px; }
  .vs .them { width: auto; padding-left: 0; }
  .vs thead th { font-size: 18px; }
  .vs thead .us { font-size: 19px; }
  .vs tbody tr + tr > * { border-top: 0; }
  .vs tbody tr + tr > th[scope="row"] { border-top: 1px solid rgba(251, 249, 252, .12); }
  .vs tbody .us, .vs tbody tr:last-child .us { border-radius: 10px; padding-bottom: 12px; }
  .vs thead .us { border-radius: 10px; }
  .mark { width: 1.2em; }
}

/* Precio */
.offer { padding: 104px 0; }
.offer-grid { display: grid; gap: 48px 72px; }
@media (min-width: 880px) { .offer-grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.offer h2 { font-size: 30px; }
.amount { display: block; font-size: clamp(104px, 15vw, 176px); line-height: .9; letter-spacing: -0.04em; margin-bottom: 6px; }
.offer-price > p { margin-top: 18px; color: var(--ink-soft); max-width: 26em; }
.offer-price .btn { margin-top: 30px; }
.offer-price .offer-note { margin-top: 14px; font-size: 15px; }
.offer-list { list-style: none; margin: 0; padding: 0; font-size: 19px; }
.offer-list li { position: relative; padding: 18px 0 18px 40px; border-top: 1px solid rgba(43, 29, 51, .14); }
.offer-list li:last-child { border-bottom: 1px solid rgba(43, 29, 51, .14); }
.offer-list li::before {
  content: ""; position: absolute; left: 4px; top: 24px; width: 18px; height: 18px;
  background: var(--candle);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

/* Privacidad */
.privacy { padding: 96px 0; background: var(--sage); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.facts li { color: var(--ink-soft); }
.facts strong { color: var(--ink); font-weight: 650; }

/* Profesionales */
.pros { padding: 88px 0; background: var(--dusk); color: var(--paper); }
.pros .split { align-items: center; }
.pros p { margin-top: 16px; color: rgba(251, 249, 252, .78); max-width: 32em; }
@media (min-width: 880px) { .pros .split { grid-template-columns: 2fr 1fr; } .pros .btn { justify-self: end; } }

/* Preguntas */
.faq { padding: 96px 0; }
@media (min-width: 880px) { .faq h2 { position: sticky; top: 32px; } }
.faq details { border-bottom: 1px solid rgba(43, 29, 51, .16); }
.faq details:first-child { border-top: 1px solid rgba(43, 29, 51, .16); }
.faq summary {
  list-style: none; cursor: pointer; position: relative; padding: 22px 48px 22px 0;
  font-family: var(--display); font-size: 22px; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 30px; width: 14px; height: 14px;
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-soft); }

/* Pie */
.footer { padding: 48px 0 56px; border-top: 1px solid rgba(43, 29, 51, .12); font-size: 15px; color: var(--ink-soft); }
.footer .inner { display: grid; gap: 16px; }
.footer .wordmark { color: var(--ink); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer nav a { text-underline-offset: 3px; }
@media (min-width: 880px) {
  .footer .inner { grid-template-columns: auto 1fr; align-items: center; }
  .footer nav { justify-content: end; }
  .footer .note { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .snap-img { animation: none; }
  .btn, .faq summary::after { transition: none; }
}
