/* ───────────────────────────────────────────────────────────────────────────
   GeoFamily — web comercial (landing). Identidad tomada del diseño de la app
   (desing/styles.css): papel cálido + tinta, acento coral, Instrument Serif
   itálica para display, Geist para cuerpo y Geist Mono para eyebrows.
   Estática: sin build. Abrir web/index.html o servir la carpeta.
─────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  /* Paleta — cálida, de confianza */
  --ink:          #161413;
  --ink-2:        #2A2522;
  --paper:        #F4EFE6;
  --paper-2:      #ECE5D6;
  --paper-3:      #DED4BE;
  --line:         rgba(22, 20, 19, 0.10);
  --line-strong:  rgba(22, 20, 19, 0.18);
  --muted:        rgba(22, 20, 19, 0.55);
  --muted-2:      rgba(22, 20, 19, 0.35);

  /* Estado */
  --safe:   #3F6B4A;  --safe-tint:  #DDE7DC;
  --warn:   #C68A2E;  --warn-tint:  #F2E3C2;
  --alert:  #C84B2C;  --alert-tint: #F4D9D0;
  --info:   #2E5A7A;  --info-tint:  #D6E1E8;

  /* Acentos de avatar */
  --child-1: #C84B2C;
  --child-2: #2E5A7A;
  --child-3: #A8772A;

  /* Mapa (para el mockup) */
  --map-bg:      #ECE5D6;
  --map-street:  #F8F3E8;
  --map-park:    #C7D2A8;
  --map-park-2:  #B8C698;
  --map-water:   #B8CAD2;
  --map-building:#DDD3BE;

  --accent: #C84B2C;            /* coral de marca / punto */
  --maxw: 1120px;
}

/* ───────── Reset ───────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Geist', -apple-system, system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ───────── Utilidades tipográficas ───────── */
.serif   { font-family: 'Instrument Serif', serif; font-weight: 400; font-style: normal; }
.serif-i { font-family: 'Instrument Serif', serif; font-style: italic; }
.mono    { font-family: 'Geist Mono', monospace; }

.eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ───────── Botones ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: none;
  font-size: 15px; font-weight: 500; letter-spacing: -0.1px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18), inset 0 0 0 0.5px rgba(255,255,255,0.12);
}
.btn-primary:hover { background: #000; }
.btn-coral { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(200,75,44,0.32); }
.btn-coral:hover { filter: brightness(1.05); }
.btn-ghost {
  background: rgba(255,255,255,0.06); color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
}
.btn-ghost.on-paper { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ───────── Logo ───────── */
.logo { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 26px; letter-spacing: -0.5px; color: var(--ink); }
.logo .dot { font-style: normal; color: var(--accent); }
.logo.on-dark { color: #F4EFE6; }

/* ───────── Nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,239,230,0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; }

/* ───────── Hero ───────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 28% 18%, #2a2622 0%, #131110 72%);
  color: #F4EFE6;
  padding: 84px 0 96px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-eyebrow { color: rgba(244,239,230,0.6); }
.hero h1 {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: clamp(44px, 6vw, 76px); line-height: 0.98; letter-spacing: -1.5px;
  margin: 16px 0 0; font-weight: 400;
}
.hero h1 .coral { color: #E8704F; }
.hero-sub {
  margin-top: 22px; font-size: 18px; line-height: 1.55;
  color: rgba(244,239,230,0.74); max-width: 460px;
}
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 26px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(244,239,230,0.55); }
.hero-trust .dotsep { width: 3px; height: 3px; border-radius: 999px; background: rgba(244,239,230,0.35); }
.hero-phone-col { display: flex; justify-content: center; }

/* glow detrás del teléfono */
.hero-phone-col::before {
  content: ""; position: absolute; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(200,75,44,0.28), transparent 65%);
  filter: blur(20px); z-index: 0;
}

/* ───────── Mockup de iPhone ───────── */
.phone {
  position: relative; z-index: 1;
  width: 300px; height: 612px; border-radius: 46px;
  background: #0d0c0b; padding: 11px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), inset 0 0 0 2px rgba(255,255,255,0.06);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.phone-screen {
  position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
  background: var(--map-bg);
}
.notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; background: #0d0c0b; border-radius: 999px; z-index: 6;
}
/* Mapa estilizado dentro de la pantalla */
.map-art { position: absolute; inset: 0; }
.map-art .water { position: absolute; right: -40px; top: 60px; width: 200px; height: 150px; background: var(--map-water); border-radius: 50% 40% 45% 55%; transform: rotate(-12deg); }
.map-art .park  { position: absolute; left: -30px; bottom: 120px; width: 180px; height: 150px; background: var(--map-park); border-radius: 48% 52% 40% 60%; }
.map-art .street { position: absolute; background: var(--map-street); box-shadow: 0 0 0 1px rgba(216,205,180,0.7); }
.map-art .s1 { left: -10%; top: 38%; width: 120%; height: 26px; transform: rotate(-8deg); }
.map-art .s2 { left: 30%; top: -10%; width: 26px; height: 120%; transform: rotate(6deg); }
.map-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(22,20,19,0.07) 0.5px, transparent 0.5px); background-size: 12px 12px; }

.map-label { position: absolute; font-family: 'Instrument Serif', serif; font-style: italic; color: rgba(22,20,19,0.4); font-size: 13px; }
.map-label.l1 { left: 24px; top: 92px; }
.map-label.l2 { right: 26px; bottom: 210px; }

/* Zona (geofence) con borde discontinuo */
.zone {
  position: absolute; left: 92px; top: 250px; width: 120px; height: 120px; border-radius: 999px;
  background: rgba(63,107,74,0.12); border: 2px dashed var(--safe);
}
.zone-tag {
  position: absolute; left: 96px; top: 232px;
  background: #fff; border: 0.5px solid var(--line-strong);
  font-size: 10.5px; font-weight: 600; color: var(--safe);
  padding: 3px 9px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Marcadores de hijo */
.pin { position: absolute; display: flex; flex-direction: column; align-items: center; }
.pin .ava {
  width: 34px; height: 34px; border-radius: 999px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.pin.p1 { left: 120px; top: 286px; } .pin.p1 .ava { background: var(--child-1); }
.pin.p2 { left: 196px; top: 150px; } .pin.p2 .ava { background: var(--child-2); }
.pin.p3 { left: 60px;  top: 410px; } .pin.p3 .ava { background: var(--child-3); }
.pin .ring {
  position: absolute; top: -6px; width: 46px; height: 46px; border-radius: 999px;
  border: 2px solid currentColor; opacity: 0; animation: pulseRing 2.4s ease-out infinite;
}
.pin.p1 { color: var(--child-1); } .pin.p2 { color: var(--child-2); } .pin.p3 { color: var(--child-3); }
@keyframes pulseRing { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(1.5); opacity: 0; } }

/* Status pill superior */
.status-pill {
  position: absolute; top: 50px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  padding: 8px 14px; border-radius: 999px; z-index: 5;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12), inset 0 0 0 0.5px rgba(255,255,255,0.6);
  font-size: 12.5px; font-weight: 500; color: var(--ink);
}
.status-pill .led { width: 7px; height: 7px; border-radius: 999px; background: var(--safe); }

/* Tarjeta glass inferior "Familia — hoy" */
.fam-card {
  position: absolute; left: 12px; right: 12px; bottom: 16px; z-index: 5;
  color: var(--ink);
  background: rgba(255,255,255,0.92); backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-radius: 22px; padding: 13px 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.16), inset 0 0 0 0.5px rgba(255,255,255,0.6);
}
.fam-card .head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.fam-card .head .t { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 17px; }
.fam-card .head .a { font-size: 11.5px; color: var(--muted); }
.fam-row { display: flex; align-items: center; gap: 10px; padding: 7px 2px; }
.fam-row + .fam-row { border-top: 0.5px solid var(--line); }
.fam-row .ava { width: 30px; height: 30px; border-radius: 999px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 600; flex-shrink: 0; }
.fam-row .info { flex: 1; min-width: 0; }
.fam-row .nm { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.fam-row .st { font-size: 11.5px; color: var(--muted); }
.badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge.safe { color: var(--safe); background: var(--safe-tint); }
.badge.info { color: var(--info); background: var(--info-tint); }
.badge.warn { color: var(--warn); background: var(--warn-tint); }

/* ───────── Secciones genéricas ───────── */
section { padding: 96px 0; }
.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-head h2 {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: clamp(34px, 4.5vw, 52px); line-height: 1.02; letter-spacing: -1px;
  margin-top: 14px; font-weight: 400;
}
.section-head p { margin-top: 16px; font-size: 17px; color: var(--muted); }

/* Tira de confianza */
.trustbar { background: var(--paper-2); border-top: 0.5px solid var(--line); border-bottom: 0.5px solid var(--line); padding: 28px 0; }
.trustbar .wrap { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.trust-item svg { color: var(--safe); flex-shrink: 0; }

/* Grid de features */
.features { background: var(--paper); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  background: #fff; border: 0.5px solid var(--line); border-radius: 20px; padding: 26px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7), 0 8px 24px rgba(0,0,0,0.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feat:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,0.08); }
.feat .ic {
  width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feat .ic svg { width: 22px; height: 22px; }
.ic.safe { background: var(--safe-tint); color: var(--safe); }
.ic.info { background: var(--info-tint); color: var(--info); }
.ic.coral { background: var(--alert-tint); color: var(--alert); }
.ic.warn { background: var(--warn-tint); color: var(--warn); }
.feat h3 { font-size: 17.5px; font-weight: 600; letter-spacing: -0.2px; }
.feat p { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* Cómo funciona */
.how { background: var(--paper-2); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: center; padding: 0 12px; }
.step .num {
  width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 0.5px solid var(--line-strong);
  font-family: 'Instrument Serif', serif; font-style: italic; font-size: 24px; color: var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.step h3 { font-size: 18px; font-weight: 600; }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }

/* Privacidad */
.privacy { background: radial-gradient(ellipse at 70% 30%, #2a2622 0%, #131110 75%); color: #F4EFE6; }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.privacy h2 { font-family: 'Instrument Serif', serif; font-style: italic; font-size: clamp(32px, 4.5vw, 50px); line-height: 1.04; letter-spacing: -1px; font-weight: 400; }
.privacy .lead { margin-top: 18px; font-size: 17px; color: rgba(244,239,230,0.72); line-height: 1.6; }
.privacy-list { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.privacy-list .row { display: flex; gap: 14px; align-items: flex-start; }
.privacy-list .row .chk { flex-shrink: 0; width: 26px; height: 26px; border-radius: 999px; background: rgba(63,107,74,0.25); color: #9FCBA8; display: flex; align-items: center; justify-content: center; }
.privacy-list .row .tx b { font-weight: 600; }
.privacy-list .row .tx p { color: rgba(244,239,230,0.62); font-size: 14.5px; margin-top: 2px; }
.privacy-quote {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 22px; padding: 32px;
}
.privacy-quote .q { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 25px; line-height: 1.4; }
.privacy-quote .by { margin-top: 16px; font-size: 13px; color: rgba(244,239,230,0.5); }

/* Precios */
.pricing { background: var(--paper); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 22px; justify-content: center; }
.plan {
  background: #fff; border: 0.5px solid var(--line); border-radius: 24px; padding: 32px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.05);
  display: flex; flex-direction: column;
}
.plan.featured { border: 1.5px solid var(--ink); box-shadow: 0 16px 40px rgba(0,0,0,0.1); position: relative; }
.plan .tag-pro { position: absolute; top: -12px; left: 32px; background: var(--accent); color: #fff; font-family: 'Geist Mono', monospace; font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan .pname { font-family: 'Geist Mono', monospace; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.plan .price { margin-top: 14px; font-family: 'Instrument Serif', serif; font-style: italic; font-size: 50px; letter-spacing: -1px; }
.plan .price small { font-style: normal; font-family: 'Geist', sans-serif; font-size: 15px; color: var(--muted); letter-spacing: 0; }
.plan .pdesc { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-direction: column; gap: 13px; }
.plan li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; }
.plan li svg { flex-shrink: 0; color: var(--safe); margin-top: 2px; }
.plan .btn { width: 100%; justify-content: center; margin-top: auto; }

/* CTA final */
.cta-final { background: var(--paper-2); text-align: center; }
.cta-final h2 { font-family: 'Instrument Serif', serif; font-style: italic; font-size: clamp(34px, 5vw, 58px); line-height: 1.0; letter-spacing: -1px; font-weight: 400; }
.cta-final p { margin: 18px auto 0; max-width: 480px; font-size: 17px; color: var(--muted); }
.cta-final .hero-actions { justify-content: center; margin-top: 30px; }
.store-row { margin-top: 22px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.store-badge { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 13px; }
.store-badge .sm { display: block; font-size: 9.5px; opacity: 0.7; letter-spacing: 0.5px; text-transform: uppercase; }
.store-badge .lg { display: block; font-size: 15px; font-weight: 600; margin-top: -1px; }

/* Footer */
.footer { background: var(--ink); color: rgba(244,239,230,0.7); padding: 56px 0 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .blurb { max-width: 300px; font-size: 14px; line-height: 1.6; color: rgba(244,239,230,0.5); margin-top: 14px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(244,239,230,0.45); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: rgba(244,239,230,0.72); padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 0.5px solid rgba(244,239,230,0.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: rgba(244,239,230,0.4); }

/* ───────── DEMO interactiva ───────── */
.demo { background: var(--paper); }
.demo-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.demo-copy h2 { font-family: 'Instrument Serif', serif; font-style: italic; font-size: clamp(34px, 4.5vw, 52px); line-height: 1.02; letter-spacing: -1px; margin-top: 14px; font-weight: 400; }
.demo-copy p.lead { margin-top: 16px; font-size: 17px; color: var(--muted); line-height: 1.6; }
.demo-hint { margin-top: 22px; display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2); background: #fff; border: 0.5px solid var(--line-strong); padding: 9px 15px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.demo-hint .pulse { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 0 rgba(200,75,44,0.5); animation: tap 1.8s ease-out infinite; }
@keyframes tap { 0% { box-shadow: 0 0 0 0 rgba(200,75,44,0.45); } 70% { box-shadow: 0 0 0 9px rgba(200,75,44,0); } 100% { box-shadow: 0 0 0 0 rgba(200,75,44,0); } }
.demo-phone-col { display: flex; justify-content: center; }

/* pantallas conmutables dentro del teléfono */
.dscreen { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .25s ease; overflow: hidden; }
.dscreen.active { opacity: 1; pointer-events: auto; }
.dscreen.scroll { overflow-y: auto; }

/* cabecera de pantalla interior */
.scr-head { padding: 54px 18px 8px; }
.scr-head .eb { font-family: 'Geist Mono', monospace; font-size: 9px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.scr-head .h { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 30px; letter-spacing: -0.5px; line-height: 1; margin-top: 3px; }

/* listas interiores */
.ilist { margin: 10px 12px; background: #fff; border: 0.5px solid var(--line); border-radius: 16px; overflow: hidden; }
.irow { display: flex; align-items: center; gap: 11px; padding: 12px 13px; }
.irow + .irow { border-top: 0.5px solid var(--line); }
.irow .gl { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.irow .gl svg { width: 17px; height: 17px; }
.irow .ic-z { background: var(--safe-tint); color: var(--safe); }
.irow .av { width: 32px; height: 32px; border-radius: 999px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.irow .bd { flex: 1; min-width: 0; }
.irow .bd .t1 { font-size: 14px; font-weight: 500; color: var(--ink); }
.irow .bd .t2 { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.irow .time { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--muted); }
.irow .mini-badge { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }

.group-label { font-family: 'Geist Mono', monospace; font-size: 9px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); padding: 14px 18px 4px; }

/* tab bar */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; height: 64px;
  display: flex; align-items: stretch;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 0.5px solid var(--line);
}
.tab { flex: 1; background: none; border: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted-2); padding: 0; }
.tab svg { width: 21px; height: 21px; }
.tab span { font-size: 9.5px; font-weight: 500; }
.tab.active { color: var(--ink); }
.demo-phone { animation: none; } /* fijo: es interactivo, no debe flotar */
.demo-phone .fam-card { bottom: 74px; }
.demo-phone .status-pill { top: 46px; }

/* ───────── COMPARATIVA (mejor que Google) ───────── */
.compare { background: var(--paper-2); }
.cmp-table { max-width: 860px; margin: 0 auto; background: #fff; border: 0.5px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.cmp-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; align-items: center; }
.cmp-row + .cmp-row { border-top: 0.5px solid var(--line); }
.cmp-row.head { background: var(--paper); }
.cmp-row.head > div { padding: 18px 16px; }
.cmp-row > div { padding: 15px 16px; }
.cmp-feat { font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.cmp-col { text-align: center; }
.cmp-col.us { background: rgba(200,75,44,0.045); }
.cmp-col-name { font-weight: 600; font-size: 14px; }
.cmp-col-name.us { color: var(--accent); font-family: 'Instrument Serif', serif; font-style: italic; font-size: 20px; }
.cmp-col-name.them { color: var(--muted); }
.cmp-yes { color: var(--safe); display: inline-flex; }
.cmp-no { color: var(--muted-2); display: inline-flex; }
.cmp-txt { font-size: 12.5px; color: var(--muted); }
.cmp-txt.us { color: var(--safe); font-weight: 500; }
.cmp-note { max-width: 860px; margin: 18px auto 0; text-align: center; font-size: 12.5px; color: var(--muted-2); }

/* Badge "Nuevo" en tarjetas de feature */
.feat { position: relative; }
.feat-new {
  position: absolute; top: 18px; right: 18px;
  font-family: 'Geist Mono', monospace; font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase;
  font-weight: 500; color: var(--accent); background: var(--alert-tint);
  padding: 3px 8px; border-radius: 999px;
}

/* ───────── Familias amigas (novedad) ───────── */
.friends { background: var(--paper-2); }
.friends-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.friends-copy h2 { font-family: 'Instrument Serif', serif; font-style: italic; font-size: clamp(34px, 4.5vw, 52px); line-height: 1.02; letter-spacing: -1px; margin-top: 14px; font-weight: 400; }
.friends-copy h2 .coral { color: var(--accent); }
.friends-copy .lead { margin-top: 16px; font-size: 17px; color: var(--muted); line-height: 1.6; max-width: 480px; }
.new-pill { display: inline-block; background: var(--accent); color: #fff; font-size: 9.5px; letter-spacing: 1px; padding: 2px 7px; border-radius: 999px; margin-right: 8px; }
.friends-list { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.friends-list .row { display: flex; gap: 14px; align-items: flex-start; }
.friends-list .row .chk { flex-shrink: 0; width: 26px; height: 26px; border-radius: 999px; background: var(--safe-tint); color: var(--safe); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.friends-list .row .tx b { font-weight: 600; }
.friends-list .row .tx p { color: var(--muted); font-size: 14.5px; margin-top: 2px; }

/* Tarjeta de co-presencia */
.friends-card {
  background: #fff; border: 0.5px solid var(--line); border-radius: 24px; padding: 30px 28px; text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08); max-width: 380px; margin: 0 auto; width: 100%;
}
.friends-card .fc-head { display: flex; align-items: center; justify-content: center; gap: 8px; }
.friends-card .fc-eb { font-family: 'Geist Mono', monospace; font-size: 9.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.friends-card .fc-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--safe); box-shadow: 0 0 0 0 rgba(63,107,74,0.5); animation: tap 1.8s ease-out infinite; }
.friends-card .fc-meet { margin: 22px 0 16px; display: flex; align-items: center; justify-content: center; }
.friends-card .fc-ava { width: 58px; height: 58px; border-radius: 999px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(0,0,0,0.15); }
.friends-card .fc-ava:last-of-type { margin-left: -14px; }
.friends-card .fc-plus { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 22px; color: var(--muted); margin: 0 4px; z-index: 1; }
.friends-card .fc-title { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 24px; line-height: 1.15; }
.friends-card .fc-sub { margin-top: 6px; font-size: 14px; color: var(--muted); }
.friends-card .fc-tags { margin-top: 18px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.friends-card .fc-tag { font-size: 11.5px; font-weight: 500; color: var(--safe); background: var(--safe-tint); padding: 4px 11px; border-radius: 999px; }
.friends-card .fc-tag.muted { color: var(--ink-2); background: var(--paper-3); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ───────── Responsive ───────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .privacy-grid { grid-template-columns: 1fr; gap: 36px; }
  .friends-grid { grid-template-columns: 1fr; gap: 40px; }
  .friends-copy .lead { margin-left: auto; margin-right: auto; }
  .demo-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .demo-copy .demo-hint { margin-left: auto; margin-right: auto; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 540px) {
  .cmp-row { grid-template-columns: 1.4fr 0.8fr 0.8fr; }
  .cmp-feat { font-size: 13px; }
  .cmp-col-name.us { font-size: 17px; }
  .cmp-txt { font-size: 11px; }
}
@media (max-width: 640px) {
  section { padding: 68px 0; }
  .nav-links { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
}
