/* =========================================================
   boda.pe — Invitaciones de boda digitales (Takero)
   ========================================================= */

:root {
  --ivory: #FBF8F3;
  --cream: #F3ECE0;
  --sage: #7D8B6A;
  --sage-soft: #9AA788;
  --ink: #2F3327;
  --ink-soft: #565a4c;
  --gold: #B08D57;
  --gold-soft: #cdb389;
  --blush: #EADFD8;
  --blush-strong: #E3CFC6;
  --white: #ffffff;
  --line: rgba(176, 141, 87, .35);

  --wa: #25d366;
  --wa-ink: #128c3e;

  --maxw: 1120px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(47, 51, 39, .06);
  --shadow-md: 0 14px 40px rgba(47, 51, 39, .12);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  letter-spacing: .3px;
}

h1 { font-size: clamp(2.6rem, 8vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

em { font-style: italic; color: var(--gold); }

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}
.container.narrow { max-width: 760px; }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
  margin-bottom: .9rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--ivory);
  padding: .6rem 1rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .98rem;
  letter-spacing: .02em;
  text-decoration: none;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-sm { padding: .62rem 1.05rem; font-size: .88rem; }

.btn-primary {
  background: var(--ink);
  color: var(--ivory);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: #3a3f30;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--white);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.ico-wa { flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 243, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}
.brand-mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: .5px;
}
.brand-sub {
  font-size: .62rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 3px;
}

.nav {
  display: flex;
  gap: 1.6rem;
  margin-inline: auto;
}
.nav a {
  text-decoration: none;
  font-size: .95rem;
  color: var(--ink-soft);
  position: relative;
  padding: .25rem 0;
  transition: color .2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .25s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: .2rem;
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: max-height .3s ease, padding .3s ease;
}
.mobile-nav a {
  text-decoration: none;
  color: var(--ink);
  padding: .85rem .2rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
}
.mobile-nav a:last-child {
  border-bottom: none;
  margin: .8rem 0 1.1rem;
}
.site-header.menu-open .mobile-nav {
  display: flex;
  max-height: 420px;
  padding: .4rem 20px 0;
  border-bottom-color: var(--line);
}
.site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tint { background: linear-gradient(180deg, var(--cream), var(--ivory)); }

.section-head {
  max-width: 680px;
  margin: 0 auto clamp(2.2rem, 5vw, 3.2rem);
  text-align: center;
}
.section-sub {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section-cta { text-align: center; margin-top: 2.6rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 5rem);
  background: var(--cream);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, var(--ivory) 0%, rgba(251,248,243,.92) 32%, rgba(251,248,243,.55) 52%, rgba(251,248,243,0) 70%),
    linear-gradient(180deg, rgba(251,248,243,.35), rgba(251,248,243,0) 25%);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  width: 100%;
}
.hero-copy { max-width: 560px; }
.hero h1 { margin-bottom: 1.1rem; }
.hero-lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 30ch;
}

.link-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 1.6rem 0 .3rem;
  padding: .55rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: .02em;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.link-pill .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--sage);
}
.link-pill .pill-accent { color: var(--gold); font-weight: 500; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.8rem;
}
.hero-note {
  margin-top: 1.1rem;
  font-size: .9rem;
  color: var(--sage);
  letter-spacing: .04em;
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ---------- Phone component (shared) ---------- */
.phone {
  position: relative;
  width: 230px;
  max-width: 100%;
  background: #11130d;
  border-radius: 34px;
  padding: 8px;
  box-shadow: 0 22px 50px rgba(47, 51, 39, .3);
}
.phone-screen {
  position: relative;
  aspect-ratio: 390 / 844;
  border-radius: 26px;
  overflow: hidden;
  background: var(--cream);
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 16px;
  background: #11130d;
  border-radius: 0 0 11px 11px;
  z-index: 2;
}
.phone-tilt {
  transform: rotate(-4deg);
}

/* ---------- Feature grid ---------- */
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-soft);
}
.feature-ico {
  display: inline-flex;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--sage);
  margin-bottom: 1rem;
}
.feature-ico svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 { margin-bottom: .45rem; }
.feature p { color: var(--ink-soft); font-size: .97rem; }
.feature strong { color: var(--ink); font-weight: 500; }

/* ---------- Split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.split-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
  box-shadow: var(--shadow-sm);
}
.split-card h3 {
  color: var(--sage);
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.1rem;
}
.check-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: .85rem;
}
.check-list li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .35em;
  width: 16px; height: 9px;
  border-left: 1.8px solid var(--gold);
  border-bottom: 1.8px solid var(--gold);
  transform: rotate(-45deg);
}

/* Panel mock */
.panel-mock {
  margin: 2.2rem auto 0;
  max-width: 760px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-md);
}
.panel-mock-cap {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.1rem;
}
.panel-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
  margin-bottom: 1.2rem;
}
.stat {
  text-align: center;
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: .9rem .4rem;
}
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: .4rem;
}
.panel-rows { display: grid; gap: .55rem; }
.panel-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .92rem;
  padding: .6rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.panel-meta { margin-left: auto; color: var(--sage); font-size: .82rem; }
.chip {
  font-size: .72rem;
  letter-spacing: .04em;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-weight: 500;
  flex: none;
}
.chip-ok { background: #e4ecda; color: #4e6136; }
.chip-wait { background: var(--blush-strong); color: #8a5f44; }
.chip-no { background: #ecd9d4; color: #9a4f41; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.3rem;
  font-weight: 500;
  color: var(--gold);
  text-decoration: none;
  transition: gap .2s ease;
}
.link-arrow:hover { gap: .75rem; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.step-num {
  position: absolute;
  top: -22px;
  left: 1.5rem;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ivory);
  background: var(--sage);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.step h3 { margin-bottom: .45rem; }
.step p { color: var(--ink-soft); font-size: .97rem; }

/* ---------- Examples ---------- */
.examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
.example-card {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}
.phone-example {
  flex: none;
  width: 168px;
}
.example-info h3 { margin-bottom: .3rem; }
.example-tag {
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .7rem;
}
.example-info p { color: var(--ink-soft); font-size: .95rem; }
.example-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.1rem;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .7rem; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--gold-soft); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-weight: 500;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  border-right: 1.8px solid var(--gold);
  border-bottom: 1.8px solid var(--gold);
  transform: rotate(45deg);
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq-body { padding: 0 1.3rem 1.2rem; }
.faq-body p { color: var(--ink-soft); }
.faq-body strong { color: var(--ink); font-weight: 500; }

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  text-align: center;
  padding: clamp(4rem, 9vw, 6.5rem) 0;
  background: linear-gradient(180deg, var(--cream), var(--blush));
  overflow: hidden;
}
.final-botanical {
  position: absolute;
  bottom: -10px;
  width: clamp(110px, 18vw, 180px);
  height: auto;
  color: var(--sage);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}
.final-botanical-left { left: -14px; transform: scaleX(-1); }
.final-botanical-right { right: -14px; }
.final-inner { position: relative; z-index: 1; max-width: 640px; }
.final-inner h2 { margin-bottom: 1rem; }
.final-inner > p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 44ch;
  margin: 0 auto;
}
.final-inner .hero-cta { justify-content: center; }

.sprig {
  width: 120px;
  height: 40px;
  color: var(--gold);
  margin: 0 auto 1rem;
  display: block;
}
/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--blush);
  padding: 3rem 0 2.2rem;
}
.footer-inner {
  display: grid;
  gap: 1rem;
  text-align: center;
}
.footer-brand .brand-mark { color: var(--ivory); font-size: 1.7rem; }
.footer-brand p {
  color: var(--sage-soft);
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: .2rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.6rem;
  justify-content: center;
}
.footer-links a {
  color: var(--blush);
  text-decoration: none;
  font-size: .95rem;
  transition: color .2s ease;
}
.footer-links a:hover { color: var(--gold-soft); }
.footer-place,
.footer-copy {
  color: var(--sage-soft);
  font-size: .85rem;
}
.footer-copy { letter-spacing: .04em; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  width: 56px; height: 56px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--wa);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(18, 140, 62, .45);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1.1rem; }
  .examples { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }

  .hero {
    min-height: auto;
    padding-top: clamp(2.2rem, 7vw, 3rem);
  }
  .hero-bg { object-position: center top; }
  .hero-overlay {
    background:
      linear-gradient(180deg, var(--ivory) 0%, rgba(251,248,243,.82) 42%, rgba(251,248,243,.55) 70%, rgba(251,248,243,.3) 100%);
  }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-copy { max-width: none; text-align: center; margin-inline: auto; }
  .hero-lead { max-width: none; margin-inline: auto; }
  .link-pill { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { margin-top: .5rem; }
  .phone-tilt { transform: rotate(-3deg); }
  .wa-float { display: inline-flex; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .panel-stats { grid-template-columns: repeat(2, 1fr); }
  .example-card { flex-direction: column; text-align: center; padding: 1.6rem 1.3rem; }
  .phone-example { align-self: center; width: 190px; }
  .example-actions { justify-content: center; }
  .example-tag { margin-inline: auto; }
  .btn-lg { width: 100%; }
  .hero-cta .btn { width: 100%; }
}

@media (max-width: 360px) {
  .container { padding-inline: 16px; }
  .panel-meta { display: none; }
}
