/* Guardián Senior — sistema visual idéntico a guardiansenior.space (versión Replit).
   Valores tomados de su CSS: --primary 215 85% 34%, --accent 122 39% 49%, --radius .9rem,
   fuentes Manrope (display) + DM Sans (texto). */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700;9..40,800&family=Manrope:wght@600;700;800&display=swap');

:root {
  --background: #F4F8FB;          /* 205 50% 97% */
  --card: #FFFFFF;
  --primary: #0D47A1;             /* brand-blue · 215 85% 34% */
  --text: #0D47A1;                /* el sitio usa text-primary (azul) como color base */
  --ink: #152742;                 /* 216 52% 17% · texto de párrafos largos */
  --muted: #5F7C9B;               /* 211 24% 49% */
  --border: #D8E4E9;              /* 199 28% 88% */
  --line: rgba(13, 71, 161, .08); /* border-brand-blue/8 */
  --line-2: rgba(13, 71, 161, .10);
  --line-15: rgba(13, 71, 161, .15);
  --green: #4CAF50;               /* brand-green · 122 39% 49% */
  --green-ink: #357A38;           /* accent-foreground · 122 39% 34% */
  --green-light: #A5D6A7;         /* brand-green-light */
  --pill-bg: #E0F5F3;             /* 174 53% 92% */
  --pill-ink: #1F756C;            /* 174 58% 29% */
  --red: #DD3F3C;                 /* destructive · 1 70% 55% */
  --red-soft: #FDECEC;
  --wa: #25D366;
  --radius-xl: 18.4px;            /* rounded-xl con --radius .9rem */
  --radius-2xl: 22px;
  --radius-3xl: 26px;
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --shadow-cta: 0 12px 26px rgba(13, 71, 161, .18);
  --shadow-panel: 0 18px 46px rgba(19, 39, 68, .07), 0 2px 8px rgba(19, 39, 68, .03);
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #101A28; --card: #172436; --text: #E4ECF1; --ink: #E4ECF1; --muted: #9DB0BE;
    --border: #293A51; --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.09); --line-15: rgba(255,255,255,.14);
    --primary: #45D3C5; --green: #45D3C5; --green-ink: #45D3C5; --pill-bg: #173B3C; --pill-ink: #45D3C5;
    --red: #EF5350; --red-soft: #3A1E22;
    --shadow-cta: 0 12px 26px rgba(0,0,0,.35); --shadow-panel: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { max-width: 100%; }
body { margin: 0; min-height: 100dvh; overflow-x: hidden; background: var(--background); color: var(--text);
       font: 400 16px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }

/* Textura de ruido sutil, como .gs-noise */
.gs-noise::after { content: ""; pointer-events: none; position: fixed; inset: 0; z-index: 50; opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E"); }
.gs-in { animation: gs-in .55s cubic-bezier(.2,.8,.2,1) both; }
.gs-in-delay { animation: gs-in .55s cubic-bezier(.2,.8,.2,1) .1s both; }
@keyframes gs-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gs-in, .gs-in-delay { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Contenedor ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
@media (min-width: 768px) { .wrap { padding-left: 40px; padding-right: 40px; } }
.wrap-sm { max-width: 640px; }

/* ---------- Cabecera ---------- */
.header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; border-radius: 12px; object-fit: contain; }
.brand-name { font: 800 17px/1 var(--font-display); letter-spacing: -.04em; color: var(--primary); white-space: nowrap; }
.brand-name b { color: var(--green); font-weight: 800; }
.nav { display: none; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--primary); }
@media (min-width: 768px) { .nav { display: flex; } }
.brand { min-width: 0; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.header-actions .btn { white-space: nowrap; }
@media (max-width: 640px) { .header .link-signin { display: none; } }
@media (max-width: 360px) { .brand-name { font-size: 15px; } .header-actions .btn-sm { padding: 8px 12px; } }

/* ---------- Texto ---------- */
.gs-display { font-family: var(--font-display); letter-spacing: -.04em; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px;
        font-size: 11px; font-weight: 700; background: var(--pill-bg); color: var(--pill-ink); }
.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--green); }
.h1 { margin-top: 24px; font: 800 46px/1.02 var(--font-display); letter-spacing: -.055em; color: var(--primary); }
@media (min-width: 768px) { .h1 { font-size: 76px; } }
.h1 em, .h2 em { font-style: normal; color: var(--green); }
.h2 { margin-top: 12px; font: 800 36px/1.1 var(--font-display); letter-spacing: -.04em; color: var(--primary); }
@media (min-width: 768px) { .h2 { font-size: 48px; line-height: 1; } }
.lead { margin-top: 28px; max-width: 32rem; font-size: 18px; line-height: 32px; color: var(--muted); }
.body { margin-top: 20px; font-size: 16px; line-height: 28px; color: var(--muted); }
.muted { color: var(--muted); }
.xs { font-size: 12px; line-height: 16px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius-xl);
       padding: 14px 20px; font: 700 14px/20px var(--font-body); border: 1px solid transparent; cursor: pointer;
       transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-sm { padding: 10px 16px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-cta); }
.btn-plain-primary { background: var(--primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); padding: 8px 12px; }
.btn-ghost:hover { background: rgba(13, 71, 161, .05); transform: none; }
.btn-outline { background: var(--card); color: var(--primary); border-color: var(--line-15); }
.btn-white { background: #fff; color: #0D47A1; box-shadow: 0 10px 20px rgba(0,0,0,.12); }
.btn-green { background: var(--green); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 12px 26px rgba(221, 63, 60, .22); }
.btn-block { display: flex; width: 100%; }
@media (prefers-color-scheme: dark) { .btn-primary, .btn-plain-primary { color: #0A1420; } }

/* ---------- Tarjetas ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-3xl); padding: 24px; }
.card-bg { background: var(--background); }
.card-sm { border-radius: var(--radius-2xl); padding: 20px; }
.gs-panel { box-shadow: var(--shadow-panel); }
.icon { width: 20px; height: 20px; color: var(--green-ink); }
.chip-icon { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center;
             border-radius: 12px; background: var(--green); color: #fff; flex: none; }
.chip-icon svg { width: 16px; height: 16px; }

/* ---------- Pie ---------- */
.footer { border-top: 1px solid var(--line); padding-top: 32px; padding-bottom: 32px; }
.footer .wrap { display: flex; flex-direction: column; gap: 12px; justify-content: space-between;
                font-size: 12px; color: var(--muted); }
@media (min-width: 640px) { .footer .wrap { flex-direction: row; } }
.footer a:hover { color: var(--primary); }

/* ---------- Estados ---------- */
.status { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px;
          font-size: 11px; font-weight: 700; background: rgba(13,71,161,.08); color: var(--primary); }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.live { background: var(--pill-bg); color: var(--pill-ink); }
.status.live::before { animation: pulse 1.6s ease-in-out infinite; }
.status.sos { background: var(--red-soft); color: var(--red); }
@keyframes pulse { 50% { opacity: .25; } }
.skeleton { height: 16px; border-radius: 8px; background: var(--border); opacity: .6; margin: 10px 0; }
