/* ==========================================================================
   GUARDIO — Landing pública (guardio.me)
   Marca: navy #203A5B + teal #5CB8B2 · Manrope autohospedada · sin Google Fonts CDN.
   ========================================================================== */

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

/* ---------- Design tokens ---------- */
:root {
  --navy: #203a5b;
  --navy-700: #182c46;
  --navy-900: #0f1d30;
  --teal: #5cb8b2;
  --teal-700: #3f948e;
  --success: #2e9e5b;
  --warning: #f2b94b;
  --danger: #d64545;

  --bg: #f5f8f9;
  --surface: #ffffff;
  --surface-alt: #eef3f5;
  --ink: #1c2f47;          /* headings / strong body */
  --body: #46586b;         /* body text — 4.5:1+ on --bg and --surface */
  --muted: #566779;        /* secondary text — ≥4.5:1 on --bg/--surface */
  --line: #e0e8ed;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(24, 44, 70, 0.06);
  --shadow: 0 12px 30px rgba(24, 44, 70, 0.08);
  --shadow-lg: 0 24px 60px rgba(24, 44, 70, 0.14);

  --wrap: 1120px;
  --gap: clamp(1rem, 4vw, 2rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --z-header: 100;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

body {
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--body);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-weight: 800;
}

p { text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 5vw, 2.25rem);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: calc(var(--z-header) + 10);
}
.skip-link:focus { left: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 0.92rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}
.btn .ic { flex: none; }
.btn-sm { padding: 0.62rem 1.05rem; font-size: 0.94rem; }

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 22px rgba(32, 58, 91, 0.24);
}
.btn-primary:hover { background: var(--navy-700); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--teal); color: var(--teal-700); }

.btn-onnavy {
  background: var(--teal);
  color: var(--navy-900);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
.btn-onnavy:hover { background: #6fc7c1; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(245, 248, 249, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 800;
  color: var(--navy);
  margin-right: auto;
}
.brand-name { font-size: 1.28rem; letter-spacing: -0.02em; }
.brand-mark { border-radius: 9px; }

.site-nav { display: none; gap: 0.4rem; }
.site-nav a {
  text-decoration: none;
  color: var(--body);
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.site-nav a:hover { color: var(--navy); background: var(--surface); }

@media (min-width: 720px) {
  .site-nav { display: flex; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 6vw, 4rem); }
.hero-grid {
  display: grid;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  color: var(--teal-700);
  background: rgba(92, 184, 178, 0.14);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(92, 184, 178, 0.22);
}

h1, .hero-copy h1 {
  font-size: clamp(2.3rem, 1.4rem + 4vw, 3.75rem);
  letter-spacing: -0.03em;
}
.hero-lead {
  margin-top: 1.15rem;
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.28rem);
  color: var(--body);
  max-width: 34ch;
}
.hero-lead strong { color: var(--ink); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.9rem;
}
.hero-note {
  margin-top: 1.1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
}
.app-tile {
  width: min(300px, 74vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 120% at 30% 20%, #ffffff 0%, #eaf3f2 100%);
  border-radius: 36px;
  box-shadow: var(--shadow-lg);
}
.app-tile-mark { width: 60%; height: auto; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.75rem 0.95rem;
  box-shadow: var(--shadow);
  max-width: 250px;
}
.float-safe { top: 4%; left: -2%; }
.float-sos { bottom: 4%; right: -2%; }
.fc-icon {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
}
.fc-icon-safe { background: rgba(46, 158, 91, 0.14); color: var(--success); }
.fc-icon-sos { background: rgba(214, 69, 69, 0.13); color: var(--danger); }
.fc-text { display: flex; flex-direction: column; line-height: 1.25; }
.fc-text strong { color: var(--ink); font-size: 0.96rem; }
.fc-text small { color: var(--muted); font-size: 0.8rem; }

@media (max-width: 520px) {
  .float-safe { left: 0; }
  .float-sos { right: 0; }
  .float-card { max-width: 210px; }
}

/* ---------- Qué es ---------- */
.que-es { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.que-es-inner { max-width: 880px; }
.que-es h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); }
.que-es .lead {
  margin-top: 1.1rem;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  color: var(--body);
  max-width: 68ch;
}

.para-quien {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
}
@media (min-width: 640px) {
  .para-quien { grid-template-columns: 1fr 1fr; }
}
.pq-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.pq-icon {
  flex: none;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(92, 184, 178, 0.15);
  color: var(--teal-700);
}
.pq-item h3 { font-size: 1.14rem; margin-bottom: 0.25rem; }
.pq-item p { color: var(--body); font-size: 0.98rem; }

/* ---------- Features (bento) ---------- */
.features { padding: clamp(2.5rem, 7vw, 5rem) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head h2 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.6rem); }
.section-head p { margin-top: 0.75rem; color: var(--body); font-size: 1.08rem; }

.bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell-lg { grid-row: span 2; }
  .cell-wide { grid-column: span 2; }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .cell-lg { grid-column: 1; grid-row: span 2; }
  .cell-wide { grid-column: span 2; }
}

.cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cell:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cell h3 { font-size: 1.2rem; }
.cell p { color: var(--body); font-size: 0.98rem; }

.cell-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 15px;
  background: var(--surface-alt);
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.cell-lg {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-900) 100%);
  border-color: transparent;
  justify-content: flex-start;
}
.cell-lg h3, .cell-lg p { color: #fff; }
.cell-lg p { color: rgba(255, 255, 255, 0.82); font-size: 1.02rem; }
.cell-lg .cell-icon { background: rgba(92, 184, 178, 0.22); color: var(--teal); }

.cell-teal .cell-icon { background: rgba(92, 184, 178, 0.16); color: var(--teal-700); }
.cell-emergency .cell-icon { background: rgba(214, 69, 69, 0.12); color: var(--danger); }

.cell-wide { flex-direction: row; align-items: flex-start; gap: 1.2rem; }
.cell-wide .cell-icon { background: rgba(242, 185, 75, 0.18); color: #b9852a; margin-bottom: 0; }
.cell-wide-text { display: flex; flex-direction: column; gap: 0.5rem; }

/* ---------- Privacy ---------- */
.privacy { padding: clamp(1rem, 4vw, 2.5rem) 0 clamp(2.5rem, 7vw, 4.5rem); }
.privacy-inner {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.6rem);
}
.privacy-icon {
  flex: none;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: rgba(46, 158, 91, 0.13);
  color: var(--success);
}
.privacy-text h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.1rem); }
.privacy-text p { margin-top: 0.8rem; color: var(--body); max-width: 64ch; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  font-weight: 700;
  color: var(--teal-700);
  text-decoration: none;
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.link-arrow svg { transition: transform 0.2s var(--ease); }
.link-arrow:hover { color: var(--navy); }
.link-arrow:hover svg { transform: translateX(3px); }

@media (max-width: 560px) {
  .privacy-inner { flex-direction: column; gap: 1rem; }
}

/* ---------- Download ---------- */
.download { padding: 0 0 clamp(3rem, 8vw, 5.5rem); }
.download-card {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #fff;
  border-radius: clamp(20px, 4vw, 30px);
  padding: clamp(1.8rem, 5vw, 3.4rem);
  display: grid;
  gap: clamp(1.75rem, 5vw, 3rem);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 860px) {
  .download-card { grid-template-columns: 1fr 1fr; align-items: center; }
}
.download-copy h2 { color: #fff; font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.4rem); }
.download-copy > p { margin-top: 0.85rem; color: rgba(255, 255, 255, 0.82); max-width: 42ch; }
.download-copy .btn-onnavy { margin-top: 1.6rem; }
.download-soon { margin-top: 0.9rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.62); }

.install-steps { display: grid; gap: 0.9rem; }
.install-steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.step-num {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy-900);
  font-weight: 800;
}
.install-steps h3 { color: #fff; font-size: 1.05rem; margin-bottom: 0.2rem; }
.install-steps p { color: rgba(255, 255, 255, 0.8); font-size: 0.94rem; }
.install-steps code {
  background: rgba(255, 255, 255, 0.14);
  padding: 0.05rem 0.4rem;
  border-radius: 6px;
  font-size: 0.88em;
}
.install-steps strong { color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(2.5rem, 6vw, 3.5rem) 0 1.75rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}
.brand-footer { color: #fff; }
.brand-footer .brand-name { color: #fff; }
.footer-tagline { margin-top: 0.6rem; color: var(--teal); font-weight: 600; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}
.footer-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover { color: #fff; }
.footer-legal {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-legal p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.55); }

/* ---------- Motion (progressive enhancement, content visible by default) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  .reveal.is-in { opacity: 1; transform: none; }
  .float-card { animation: floaty 6s ease-in-out infinite; }
  .float-sos { animation-delay: -3s; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
