:root {
  --accent: #BC5E3A;
  --accent-soft: rgba(188, 94, 58, 0.1);
  --accent-shadow: rgba(188, 94, 58, 0.35);
  --accent-light: rgb(207, 139, 113);
  --ink: #2A2230;
  --ink-soft: rgba(42, 34, 48, 0.62);
  --cream: #F6EFE5;
}

* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  width: 100%;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Spectral', Georgia, serif; margin: 0; }
p { margin: 0; }
a { color: inherit; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: rgba(42, 34, 48, 0.2); border-radius: 999px; }

@keyframes floatIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes heartBeat { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.1); } 40% { transform: scale(1); } }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 7vw;
  background: rgba(246, 239, 229, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 34, 48, 0.07);
}
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.logo-word { font-family: 'Spectral', Georgia, serif; font-size: 23px; font-weight: 600; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(42, 34, 48, 0.65);
  text-decoration: none;
}
.nav-links a:hover { color: var(--ink); }
.btn-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 16px var(--accent-shadow);
}

/* ── HERO ── */
.hero {
  position: relative;
  padding: 76px 7vw 84px;
  background: linear-gradient(168deg, #F8F1E7 0%, #F1E2D4 60%, #ECD8C7 100%);
  overflow: hidden;
}
.hero-bg-icon { position: absolute; top: -40px; right: -60px; opacity: 0.06; pointer-events: none; }
.hero-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { animation: floatIn .7s ease; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(42, 34, 48, 0.08);
  margin-bottom: 26px;
}
.badge-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); }
.badge span:last-child { font-size: 13px; font-weight: 600; color: rgba(42, 34, 48, 0.65); }
.hero h1 {
  font-size: 60px;
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 24px 0 34px;
  max-width: 480px;
}
.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.store-buttons-center { justify-content: center; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: filter .15s ease;
}
.store-btn:hover { filter: brightness(1.15); }
.store-btn-text { text-align: left; line-height: 1.1; }
.store-btn-kicker { display: block; font-size: 10.5px; opacity: 0.8; }
.store-btn-name { display: block; font-size: 17px; font-weight: 700; }
.stats { display: flex; align-items: center; gap: 22px; margin-top: 30px; }
.stat-value { font-family: 'Spectral', serif; font-size: 26px; font-weight: 600; color: var(--accent); }
.stat-label { font-size: 13px; color: rgba(42, 34, 48, 0.5); }
.stat-divider { width: 1px; height: 38px; background: rgba(42, 34, 48, 0.12); }

.hero-phone-wrap { display: flex; justify-content: center; animation: floatIn .8s ease .1s both; }
.phone {
  width: 290px;
  height: 590px;
  border-radius: 44px;
  background: var(--ink);
  padding: 11px;
  box-shadow: 0 40px 80px rgba(42, 34, 48, 0.28);
  position: relative;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(172deg, #F8F1E7, #ECD8C7);
  display: flex;
  flex-direction: column;
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: var(--ink);
  border-radius: 999px;
}
.phone-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  text-align: center;
}
.phone-heart { animation: heartBeat 2.4s ease-in-out infinite; }
.phone-title { font-family: 'Spectral', serif; font-size: 32px; font-weight: 600; margin-top: 16px; }
.phone-subtitle { font-size: 13px; color: rgba(42, 34, 48, 0.5); margin-top: 6px; }
.phone-card-wrap { padding: 0 20px 30px; }
.phone-card {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(42, 34, 48, 0.1);
  padding: 13px 15px;
  text-align: left;
}
.phone-card-top { display: flex; align-items: baseline; gap: 7px; }
.phone-card-name { font-family: 'Spectral', serif; font-size: 17px; font-weight: 600; }
.phone-card-age { font-size: 14px; color: rgba(42, 34, 48, 0.55); }
.phone-card-match {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: #5E7A53;
  background: rgba(94, 122, 83, 0.12);
  padding: 3px 8px;
  border-radius: 999px;
}
.phone-card-meta { font-size: 12.5px; color: rgba(42, 34, 48, 0.55); margin-top: 4px; }
.phone-card-common { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; }
.phone-card-common span { font-size: 11.5px; font-weight: 700; color: var(--accent); }

/* ── SHARED SECTION HEAD ── */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title { font-size: 42px; line-height: 1.1; font-weight: 600; letter-spacing: -0.015em; }
.section-lead { font-size: 17px; line-height: 1.55; color: rgba(42, 34, 48, 0.6); margin: 18px 0 0; }

/* ── DIFERENCIALES ── */
.diffs-section { padding: 88px 7vw; max-width: 1180px; margin: 0 auto; }
.diffs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.diff-card {
  background: #fff;
  border-radius: 22px;
  padding: 28px 26px;
  box-shadow: 0 6px 20px rgba(42, 34, 48, 0.06);
  border: 1px solid rgba(42, 34, 48, 0.04);
}
.diff-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}
.diff-card h3 { font-size: 21px; font-weight: 600; margin: 0 0 9px; line-height: 1.2; }
.diff-card p { font-size: 14.5px; line-height: 1.55; color: rgba(42, 34, 48, 0.62); }

/* ── COMPARATIVA ── */
.compare-section { padding: 20px 7vw 88px; max-width: 1000px; margin: 0 auto; }
.compare-card { background: var(--ink); border-radius: 28px; padding: 44px 40px; color: #F2E6D7; }
.compare-card h2 { font-size: 30px; font-weight: 600; text-align: center; margin: 0 0 32px; color: #F8EFE2; }
.compare-table { display: flex; flex-direction: column; gap: 2px; }
.compare-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 12px; padding: 16px 0; align-items: center; border-bottom: 1px solid rgba(242, 230, 215, 0.08); }
.compare-header { padding: 0 0 14px; border-bottom: 1px solid rgba(242, 230, 215, 0.14); }
.compare-col-nido { text-align: center; font-family: 'Spectral', serif; font-size: 18px; font-weight: 600; color: var(--accent-light); }
.compare-col-others { text-align: center; font-size: 14px; font-weight: 600; color: rgba(242, 230, 215, 0.5); }
.compare-feature { font-size: 15px; color: rgba(242, 230, 215, 0.85); }
.compare-cell { text-align: center; }
.compare-check {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent);
  align-items: center;
  justify-content: center;
}
.compare-dash { color: rgba(242, 230, 215, 0.35); font-size: 20px; line-height: 26px; }

/* ── COMO FUNCIONA ── */
.how-section { padding: 0 7vw 90px; max-width: 1180px; margin: 0 auto; }
.how-section .section-head { margin-bottom: 50px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { text-align: center; padding: 0 10px; }
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: 'Spectral', serif;
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.step h3 { font-size: 22px; font-weight: 600; margin: 0 0 10px; }
.step p { font-size: 15px; line-height: 1.55; color: rgba(42, 34, 48, 0.62); }

/* ── SEGURIDAD ── */
.safety-section { padding: 80px 7vw; background: linear-gradient(168deg, #F1E2D4, #ECD8C7); }
.safety-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.safety-title { font-size: 38px; line-height: 1.12; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 18px; }
.safety-lead { font-size: 16.5px; line-height: 1.6; color: rgba(42, 34, 48, 0.62); }
.safety-list { display: flex; flex-direction: column; gap: 14px; }
.safety-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 4px 14px rgba(42, 34, 48, 0.06);
}
.safety-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.safety-item-title { font-size: 15.5px; font-weight: 600; margin-bottom: 2px; }
.safety-item-body { font-size: 13.5px; line-height: 1.45; color: rgba(42, 34, 48, 0.55); }

/* ── DESCARGA CTA ── */
.cta-section { padding: 90px 7vw; text-align: center; }
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-icon { margin-bottom: 22px; }
.cta-inner h2 { font-size: 44px; line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }
.cta-inner p { font-size: 17px; color: rgba(42, 34, 48, 0.6); margin: 0 0 32px; }

/* ── FOOTER ── */
.footer { background: var(--ink); color: rgba(242, 230, 215, 0.7); padding: 56px 7vw 40px; }
.footer-top {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(242, 230, 215, 0.12);
}
.footer-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.footer-logo span { font-family: 'Spectral', serif; font-size: 22px; font-weight: 600; color: #F8EFE2; }
.footer-brand p { font-size: 14px; line-height: 1.55; max-width: 280px; }
.footer-col-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(242, 230, 215, 0.45);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 14px; color: rgba(242, 230, 215, 0.72); text-decoration: none; cursor: pointer; }
.footer-links a:hover { color: #F8EFE2; }
.footer-bottom {
  max-width: 1180px;
  margin: 20px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(242, 230, 215, 0.45);
}

/* ── LEGAL MODAL ── */
.legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 20, 28, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  animation: floatIn .25s ease;
}
.legal-overlay[hidden] { display: none; }
.legal-modal {
  background: var(--cream);
  border-radius: 24px;
  max-width: 680px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}
.legal-modal-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 30px;
  background: rgba(246, 239, 229, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(42, 34, 48, 0.08);
}
.legal-modal-head h3 { font-size: 24px; font-weight: 600; }
.legal-close {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: none;
  background: rgba(42, 34, 48, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.legal-modal-body { padding: 26px 30px 36px; }
.legal-updated { font-size: 13px; color: rgba(42, 34, 48, 0.45); margin: 0 0 22px; }
.legal-modal-body h4 { font-size: 18px; font-weight: 600; margin: 22px 0 8px; }
.legal-modal-body p { font-size: 15px; line-height: 1.65; color: rgba(42, 34, 48, 0.72); }

/* Grid items default to min-width:auto (max-content), which overflows
   instead of wrapping long text/labels — force them shrinkable. */
.hero-grid > *,
.diffs-grid > *,
.steps-grid > *,
.safety-grid > *,
.footer-top > *,
.compare-row > * {
  min-width: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phone-wrap { order: -1; }
  .hero h1 { font-size: 46px; }
  .diffs-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; gap: 40px; }
  .safety-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-links a:not(.btn-pill) { display: none; }
  .hero { padding: 56px 6vw 64px; }
  .hero h1 { font-size: 36px; }
  .hero-lead { font-size: 16px; }
  .section-title { font-size: 32px; }
  .diffs-grid { grid-template-columns: 1fr; }
  .compare-card { padding: 28px 20px; }
  .compare-row { grid-template-columns: 1.4fr 0.7fr 0.9fr; }
  .footer-top { grid-template-columns: 1fr; }
  .phone { width: 250px; height: 508px; }
}
