/* Public site (marketing landing + legal pages). Requires base.css first.
   The header/brand/nav/lang-switch/footer shell here was previously
   duplicated verbatim in src/marketing.js and src/legal.js — this file is
   now the single copy. Bump ASSET_VER in src/assets.js when editing. */

* { margin: 0; }
body { font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.6; }

/* ---------------------------------------------------------------- shell */
.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 1.5rem; }
header.top { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 0; }
.brand { display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; letter-spacing: .28em; text-transform: uppercase; font-size: 1rem;
  color: var(--gold); text-decoration: none; }
nav.top-nav a { color: var(--ink); text-decoration: none; margin-left: 1.4rem; font-size: 1rem; }
nav.top-nav a:hover { color: var(--gold); }
nav.top-nav a.nav-cta { padding: .45rem 1.2rem; border: 1px solid var(--gold); border-radius: 999px;
  background: var(--gold); color: #fff; font-weight: 600; transition: background .15s, color .15s; }
nav.top-nav a.nav-cta:hover { background: transparent; color: var(--gold); }

/* Mobile menu (marketing header only — the legal header has two links, no
   toggle, and keeps its inline nav). Pure CSS: a visually-hidden checkbox
   (focusable, Space toggles it) drives the hamburger label and the dropdown
   panel via sibling selectors, so the menu works without JS; the landing's
   inline script merely closes it after picking an in-page anchor. */
.nav-toggle, .nav-burger { display: none; }
@media (max-width: 880px) {
  header.top { position: relative; }
  .nav-toggle { display: block; position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
  .nav-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 2.6rem; height: 2.6rem; padding: .68rem .6rem; cursor: pointer;
    border: 1px solid var(--gold-soft); border-radius: 10px; background: #fff; }
  .nav-burger span { display: block; height: 2px; border-radius: 2px; background: var(--gold);
    transition: transform .18s ease, opacity .18s ease; }
  .nav-toggle:focus-visible ~ .nav-burger { outline: 2px solid var(--gold); outline-offset: 2px; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-toggle ~ nav.top-nav { display: none; position: absolute; top: calc(100% - .35rem); left: 0; right: 0;
    z-index: 20; flex-direction: column; align-items: stretch; padding: .5rem; background: #fff;
    border: 1px solid var(--gold-soft); border-radius: 14px; box-shadow: 0 16px 36px rgba(61, 58, 52, .16); }
  .nav-toggle:checked ~ nav.top-nav { display: flex; }
  .nav-toggle ~ nav.top-nav a { margin: 0; padding: .75rem .9rem; border-radius: 9px; font-size: 1.05rem; }
  .nav-toggle ~ nav.top-nav a:hover { background: var(--gold-soft); color: var(--ink); }
  .nav-toggle ~ nav.top-nav a.nav-cta { margin: .5rem .9rem .55rem; text-align: center; justify-content: center;
    background: var(--gold); color: #fff; }
  .nav-toggle ~ nav.top-nav .lang-switch { margin: .15rem .9rem .5rem; }
  .nav-toggle ~ nav.top-nav .lang-switch summary { padding: .35rem 0; }
  .nav-toggle ~ nav.top-nav .lang-switch .lang-menu { position: static; margin-top: .25rem; padding: 0;
    border: none; box-shadow: none; min-width: 0; }
}

.lang-switch { position: relative; display: inline-block; }
.lang-switch summary { cursor: pointer; list-style: none; color: var(--gold); font-size: 1rem; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: ' ▾'; }
.lang-switch .lang-menu { position: absolute; top: 100%; margin-top: .5rem; background: #fff;
  border: 1px solid var(--gold-soft); border-radius: 8px; padding: .4rem; display: flex; flex-direction: column;
  min-width: 8rem; box-shadow: 0 8px 20px rgba(61, 58, 52, .14); z-index: 10; }
.lang-switch .lang-menu a { color: var(--ink); text-decoration: none; padding: .4rem .6rem; border-radius: 6px; font-size: .95rem; }
.lang-switch .lang-menu a:hover { background: var(--gold-soft); }
/* in the top nav (marketing): right-aligned dropdown */
nav.top-nav .lang-switch { margin-left: 1.4rem; }
nav.top-nav .lang-switch .lang-menu { right: 0; }
/* in the legal meta line: flows inline inside an italic paragraph */
.meta-line .lang-switch { display: inline; }
.meta-line .lang-switch summary { display: inline; font-style: normal; }
.meta-line .lang-switch .lang-menu { left: 0; font-style: normal; }

.btn { display: inline-block; padding: .75rem 1.8rem; border: 1px solid var(--gold); border-radius: 999px;
  background: var(--gold); color: #fff; text-decoration: none; font-size: 1.05rem; letter-spacing: .03em; }
.btn.ghost { background: transparent; color: var(--gold); }
.rule { width: 72px; height: 2px; background: var(--gold); margin: 1.4rem auto; }
.eyebrow { letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; color: var(--gold); }

footer { border-top: 1px solid var(--gold-soft); margin-top: 2rem; padding: 2.2rem 0; text-align: center;
  color: var(--muted); font-size: .95rem; }
footer a { color: var(--gold); text-decoration: none; }
footer nav { margin-bottom: .6rem; }
footer nav a { margin: 0 .8rem; }

/* ------------------------------------------------------ marketing landing */
.hero { text-align: center; padding: 3.5rem 0 4rem; }
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 3.8rem); font-weight: 600; letter-spacing: .02em; line-height: 1.15;
  max-width: 22ch; margin: .8rem auto 0; }
.hero p.sub { max-width: 56ch; margin: 0 auto 2rem; font-size: 1.25rem; font-style: italic; color: var(--muted); }
.hero .cta-note { margin-top: .9rem; font-size: .95rem; color: var(--muted); }
.hero-photo { margin-top: 2.8rem; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1600 / 1000; object-fit: cover; border-radius: 16px;
  display: block; box-shadow: 0 12px 32px rgba(61, 58, 52, .14); }
section { padding: 3.5rem 0; }
section h2 { text-align: center; font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 600; }
section .lead { text-align: center; max-width: 60ch; margin: .6rem auto 2.5rem; color: var(--muted); font-style: italic; }
.grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
@media (min-width: 1180px) { .grid.features { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--gold-soft); border-radius: 12px; padding: 1.8rem 1.6rem; }
.card h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: .4rem; }
.card p { font-size: 1.05rem; color: var(--muted); }
.carousel { position: relative; }
.carousel-track { display: flex; gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding: .3rem .3rem 1rem; margin: 0 -.3rem;
  scrollbar-width: thin; scrollbar-color: var(--gold-soft) transparent; }
.carousel-track:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.carousel-track::-webkit-scrollbar { height: 6px; }
.carousel-track::-webkit-scrollbar-thumb { background: var(--gold-soft); border-radius: 999px; }
.slide { flex: 0 0 78%; max-width: 300px; scroll-snap-align: center; background: #fff; border: 1px solid var(--gold-soft);
  border-radius: 12px; padding: 1.5rem; }
@media (min-width: 640px) { .slide { flex-basis: 270px; } }
.slide .step-num { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
  margin-bottom: .5rem; }
.slide h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .35rem; }
.slide p { font-size: 1rem; color: var(--muted); }
.mockup { aspect-ratio: 4 / 3; border: 1px solid var(--gold-soft); border-radius: 10px;
  background: linear-gradient(155deg, #fff, #faf5ea); padding: .9rem; margin-bottom: 1rem;
  display: flex; flex-direction: column; justify-content: center; gap: .5rem; }
.mockup .m-line { height: 8px; border-radius: 4px; background: var(--gold-soft); }
.mockup .m-line.short { width: 42%; }
.mockup .m-line.mid { width: 68%; }
.mockup .m-dot-row { display: flex; gap: .4rem; }
.mockup .m-dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--gold); display: inline-block; }
.mockup .m-pill { align-self: flex-start; padding: .35rem 1rem; border-radius: 999px; background: var(--gold);
  color: #fff; font-size: .68rem; letter-spacing: .04em; }
.mockup .m-check-row { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--muted); }
.mockup .m-check { width: 13px; height: 13px; border: 1px solid var(--gold); border-radius: 3px; position: relative;
  flex: none; }
.mockup .m-check.on::after { content: ''; position: absolute; inset: 2px; background: var(--gold); border-radius: 1px; }
.mockup .m-frame { margin: 0 auto; width: 56%; height: 100%; border: 1px solid var(--gold); border-radius: 10px;
  padding: .6rem .5rem; display: flex; flex-direction: column; justify-content: center; gap: .4rem; }
.mockup .m-link { font-size: .68rem; color: var(--gold); border: 1px dashed var(--gold-soft); border-radius: 6px;
  padding: .4rem .5rem; text-align: center; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.2rem; }
.carousel-btn { width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 1px solid var(--gold); background: #fff;
  color: var(--gold); font-size: 1.25rem; line-height: 1; cursor: pointer; display: flex; align-items: center;
  justify-content: center; }
.carousel-btn:hover { background: var(--gold); color: #fff; }
.carousel-dots { display: flex; align-items: center; gap: .5rem; }
.dot { width: .55rem; height: .55rem; border-radius: 50%; border: 1px solid var(--gold); background: transparent;
  padding: 0; cursor: pointer; }
.dot.is-active, .dot[aria-current="true"] { background: var(--gold); }

.examples-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .examples-grid { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .examples-grid { grid-template-columns: repeat(4, 1fr); } }
.invite-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .45rem;
  text-decoration: none; padding: 2.4rem 1.2rem; border-radius: var(--iradius, 14px); background: var(--ibg);
  color: var(--iink); border: 1px solid var(--iaccentsoft); box-shadow: 0 10px 26px rgba(61, 58, 52, .08);
  transition: transform .18s ease, box-shadow .18s ease; }
.invite-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(61, 58, 52, .14); }
.invite-eyebrow { font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: var(--iaccent); }
.invite-names { font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.2; }
.invite-rule { width: 34px; height: 1px; background: var(--iaccent); margin: .15rem 0; }
.invite-meta { font-size: .85rem; opacity: .78; }
.invite-btn { margin-top: .5rem; font-size: .7rem; letter-spacing: .05em; padding: .5rem 1.15rem; border-radius: 999px;
  border: 1px solid var(--iaccent); color: var(--iaccent); }

.photo-band { display: grid; gap: 1.4rem; grid-template-columns: repeat(3, 1fr); }
.photo-band img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; display: block; }
@media (max-width: 720px) {
  .photo-band { grid-template-columns: 1fr; }
}
.wide-photo img { width: 100%; height: auto; aspect-ratio: 1600 / 1000; object-fit: cover; border-radius: 16px; display: block; }
#galeria, #celebracion { padding: 1.6rem 0; }
.plans { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: var(--prose-max); margin: 0 auto; }
.plan { text-align: center; }
.plan.premium { border-color: var(--gold); box-shadow: 0 4px 18px rgba(138, 109, 47, .12); position: relative; }
.deal-badge { display: inline-block; background: var(--gold); color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; margin-bottom: .3rem; box-shadow: 0 4px 12px rgba(138, 109, 47, .25); }
.plan .price { font-size: 2.6rem; color: var(--gold); font-weight: 600; margin: .4rem 0; }
.plan .price small { font-size: 1rem; color: var(--muted); font-weight: 400; }
.plan .price .price-was { font-size: 1.5rem; color: var(--muted); font-weight: 400; text-decoration: line-through; text-decoration-color: #c0392b; margin-right: .3rem; }
.plan .price-save { color: #c0392b; font-size: .95rem; font-weight: 600; margin: 0 0 .2rem; }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; }
.plan li { padding: .3rem 0; font-size: 1.05rem; }
.plan li::before { content: '—'; color: var(--gold); margin-right: .5rem; }
.faq { max-width: var(--prose-max); margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--gold-soft); padding: .9rem 0; }
.faq summary { cursor: pointer; font-size: 1.25rem; font-weight: 600; list-style: none; position: relative; padding-right: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: .2rem; top: 0; color: var(--gold); font-size: 1.4rem; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: .6rem; color: var(--muted); font-size: 1.05rem; }
.closing { text-align: center; }

/* ------------------------------------------------------------- legal prose */
main.legal { max-width: var(--prose-max); margin: 0 auto; padding: 2.5rem 0 3.5rem; }
main.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 600; line-height: 1.2; margin: .5rem 0 .3rem; }
main.legal .rule { margin: 1.2rem 0 1.8rem; }
main.legal h2 { font-size: 1.55rem; font-weight: 600; margin: 2.2rem 0 .6rem; }
main.legal p { margin: 0 0 1rem; }
main.legal ul { margin: 0 0 1rem; padding-left: 1.3rem; }
main.legal li { margin-bottom: .35rem; }
main.legal a { color: var(--gold); }
.meta-line { color: var(--muted); font-style: italic; font-size: 1.05rem; }

@media (max-width: 560px) {
  nav.top-nav a { margin-left: .9rem; font-size: .95rem; }
  nav.top-nav a.nav-cta { padding: .4rem 1rem; }
  nav.top-nav .lang-switch { margin-left: .9rem; }
  .lang-switch summary { font-size: .95rem; }
  .hero { padding: 3rem 0 2.5rem; }
  section { padding: 2.5rem 0; }
  main.legal { padding: 1.8rem 0 2.5rem; }
}
