/* Landing comercial de NupciGo.
   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).
   Paleta violeta/lavanda del brief de marca; Manrope para titulares, Inter para el texto.
   Sin estilos en línea (CSP). */

@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* Tokens de NupciGo (HEX orientativos del brief, sin equivalencia Pantone) */
  --primary-900: #39143f;
  --primary-700: #5c2874;
  --primary-500: #9860c2;
  --primary-300: #c69ce7;
  --primary-100: #f2e9f8;
  --paper: #fbf9fc;
  --ink: #211a25;
  --ink-soft: #57495e;
  --almond: var(--primary-100);
  --sage: #f7f2fb;
  --dusk: var(--primary-700);
  --candle: var(--primary-300);
  --focus: var(--primary-500);
  --display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Inter", 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: 700; margin: 0; line-height: 1.1; letter-spacing: -0.025em; 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(--primary-900); color: var(--paper); }
.btn-cta:hover { background: var(--primary-700); }
.btn-ghost { border: 2px solid var(--primary-900); color: var(--primary-900); padding: 14px 26px; }
.btn-ghost:hover { background: rgba(57, 20, 63, .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-weight: 700; font-size: 26px; letter-spacing: -0.03em; line-height: 1; color: var(--primary-900); }
.logo-mark { width: 40px; height: 40px; }
.logo-body { fill: none; stroke: var(--primary-700); stroke-width: 4.5; stroke-linejoin: round; }
.logo-heart { fill: var(--primary-500); }
.logo-spark { fill: var(--primary-300); }
.wordmark.small { font-size: 21px; }
.wordmark.small .logo-mark { width: 32px; height: 32px; }

/* 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(40px, 6vw, 76px); line-height: 1.04; letter-spacing: -0.035em; max-width: 14ch; color: var(--primary-900); }
.lede { margin-top: 26px; font-size: 20px; color: var(--ink-soft); max-width: 34em; }
.hero-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; font-size: 17px; font-weight: 500; }
.hero-points li { position: relative; padding-left: 32px; }
.hero-points li::before {
  content: ""; position: absolute; left: 2px; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c2874' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.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: 700; font-size: 26px; color: var(--primary-900); }

/* 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(57, 20, 63, .08), 0 22px 44px -22px rgba(57, 20, 63, .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-weight: 500; 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(--primary-900);
}
.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(--primary-900); border-radius: 14px; }
.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(--primary-900); 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: 700; 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(57, 20, 63, .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(96px, 14vw, 160px); line-height: .9; letter-spacing: -0.05em; color: var(--primary-900); 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(57, 20, 63, .14); }
.offer-list li:last-child { border-bottom: 1px solid rgba(57, 20, 63, .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(57, 20, 63, .16); }
.faq details:first-child { border-top: 1px solid rgba(57, 20, 63, .16); }
.faq summary {
  list-style: none; cursor: pointer; position: relative; padding: 22px 48px 22px 0;
  font-family: var(--display); font-weight: 650; font-size: 20px; line-height: 1.3;
}
.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(57, 20, 63, .12); font-size: 15px; color: var(--ink-soft); }
.footer .inner { display: grid; gap: 16px; }

.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; }
}

/* Cabecera común: marca y enlaces a las páginas de parejas y profesionales */
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.wordmark { text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 15px; font-weight: 600; }
.site-nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--ink-soft); }
.site-nav a:hover { background: var(--primary-100); color: var(--primary-900); }
.site-nav a[aria-current="page"] { background: var(--primary-900); color: var(--paper); }

/* Páginas de profesionales */
.hero-actions .btn-ghost { padding: 14px 26px; }
@media (min-width: 820px) { .timeline.four { grid-template-columns: repeat(4, 1fr); gap: 36px; } .timeline.four li:not(:last-child)::after { right: -30px; } }
.duo { display: grid; gap: 20px; margin-top: 44px; }
@media (min-width: 820px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo > div { background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 1px 2px rgba(57, 20, 63, .06), 0 10px 30px -14px rgba(57, 20, 63, .25); }
.duo h3 { font-size: 22px; margin-bottom: 10px; }
.duo p { color: var(--ink-soft); }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.benefits li { color: var(--ink-soft); }
.benefits strong { display: block; color: var(--ink); font-family: var(--display); font-size: 20px; margin-bottom: 4px; }
.roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.roles li { display: grid; gap: 4px 24px; padding: 18px 0; border-top: 1px solid rgba(57, 20, 63, .14); color: var(--ink-soft); }
.roles li:last-child { border-bottom: 1px solid rgba(57, 20, 63, .14); }
.roles strong { color: var(--ink); font-family: var(--display); font-size: 18px; }
@media (min-width: 640px) { .roles li { grid-template-columns: 9em 1fr; } }
.model p + p { margin-top: 14px; }
.tag { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--primary-100); color: var(--primary-700); font-size: 14px; font-weight: 600; vertical-align: 2px; }
.pro-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pro-links .pro-salon { flex-basis: 100%; color: rgba(251, 249, 252, .85); font-size: 15px; text-underline-offset: 3px; }
@media (min-width: 880px) { .pros .pro-links { justify-self: end; justify-content: end; } .pro-links .pro-salon { text-align: right; } }
@media (max-width: 560px) {
  .site-nav { flex-wrap: nowrap; width: 100%; gap: 2px; font-size: 14px; }
  .site-nav a { padding: 7px 11px; white-space: nowrap; }
}
