/* Sitio comercial Monitor Alertas. Manual de Identidad 2025: rojo #d33230, café #1e120d, gris #6a6a6a.
   Tipografía Futura (Jost como alternativa web). */
:root {
  --rojo: #d33230;
  --rojo-osc: #a82422;
  --rojo-prof: #8f1d1b;
  --rojo-suave: #fbe9e8;
  --cafe: #1e120d;
  --gris: #6a6a6a;
  --gris-osc: #4a4a4a;
  --fondo: #f7f5f4;
  --linea: #e6e1df;
  --blanco: #fff;
  --radio: 18px;
  --sombra: 0 10px 30px rgba(30, 18, 13, .08);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--blanco); color: var(--cafe);
  font-family: Futura, "Futura PT", Jost, system-ui, sans-serif; font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; max-width: 22ch; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blanco); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #ffd166; outline-offset: 2px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px;
  border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-light { background: var(--blanco); color: var(--rojo); }
.btn-light:hover { background: #fff3f2; }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: var(--blanco); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-red { background: var(--rojo); color: var(--blanco); }
.btn-red:hover { background: var(--rojo-osc); }
.btn-outline { border-color: var(--rojo); color: var(--rojo); }
.btn-outline:hover { background: var(--rojo-suave); }

/* Encabezado */
.top { position: sticky; top: 0; z-index: 50; background: var(--rojo); color: var(--blanco); transition: box-shadow .2s; }
.top.scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.top-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { width: 150px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; opacity: .92; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav-login { border-left: 1px solid rgba(255, 255, 255, .35); padding-left: 22px; }
.top-cta { display: flex; align-items: center; gap: 10px; }
.menu { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu span { display: block; height: 2px; background: var(--blanco); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Portada */
.hero { background: radial-gradient(1200px 600px at 85% 20%, #e0473f 0%, var(--rojo) 45%, var(--rojo-osc) 100%); color: var(--blanco); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.kicker, .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.kicker { display: inline-block; background: var(--cafe); padding: 8px 14px; border-radius: 8px; }
.eyebrow { color: var(--rojo); }
.eyebrow-light { color: var(--blanco); opacity: .9; }
.lead { font-size: 20px; max-width: 34em; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.hero-actions.center { justify-content: center; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; opacity: .95; }
.hero-points li::before { content: "✓ "; font-weight: 700; }
.compat { background: var(--cafe); color: var(--blanco); text-align: center; padding: 14px 0; font-size: 15px; }

/* Maqueta de celular (ilustrativa) */
.hero-art { display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; height: 600px; border-radius: 44px; background: #120a07; padding: 14px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .35), inset 0 0 0 2px #3a2a24; transform: rotate(-3deg);
}
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #120a07; border-radius: 0 0 16px 16px; z-index: 2; }
.screen { height: 100%; border-radius: 32px; background: var(--fondo); color: var(--cafe); padding: 44px 16px 16px; overflow: hidden; }
.scr-head { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 14px; }
.scr-tag { font-weight: 600; }
.scr-live { color: #1f7a4d; font-weight: 600; }
.scr-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); margin: 0; }
.scr-big { font-size: 38px; font-weight: 700; margin: 0; line-height: 1.1; }
.scr-cmp { font-size: 12px; color: #1f7a4d; margin: 2px 0 14px; }
.scr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 16px; }
.scr-grid div { background: var(--blanco); border-radius: 12px; padding: 8px; text-align: center; }
.scr-grid b { display: block; font-size: 16px; }
.scr-grid span { font-size: 10px; color: var(--gris); }
.notif { display: flex; gap: 10px; align-items: center; background: var(--blanco); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--sombra); border-left: 4px solid var(--rojo); }
.notif b { display: block; font-size: 13px; }
.notif span { font-size: 11px; color: var(--gris); }
.notif-ico { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--rojo); color: var(--blanco) !important; display: grid; place-items: center; font-weight: 700; font-size: 14px !important; }
@media (prefers-reduced-motion: no-preference) {
  .notif { animation: entra .6s ease both; }
  .n1 { animation-delay: .4s; } .n2 { animation-delay: 1.1s; } .n3 { animation-delay: 1.8s; }
  @keyframes entra { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
}

/* Secciones */
.section { padding: 88px 0; }
.section.alt { background: var(--fondo); }
.section.dark { background: var(--cafe); color: var(--blanco); }
.section.dark .eyebrow { color: #ff8a84; }
.section.red { background: var(--rojo); color: var(--blanco); }
.lead-dark { font-size: 19px; opacity: .85; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.chips { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--rojo-suave); color: var(--rojo-osc); border-radius: 999px; padding: 8px 16px; font-weight: 500; font-size: 15px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.card { background: var(--blanco); border-radius: var(--radio); padding: 28px; box-shadow: var(--sombra); }
.card p { color: var(--gris-osc); margin: 0; }
.ico { width: 34px; height: 34px; fill: none; stroke: var(--rojo); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.tag { display: inline-block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: var(--cafe); color: var(--blanco); padding: 2px 8px; border-radius: 6px; vertical-align: middle; margin-left: 4px; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: none; }
.steps li { border-top: 3px solid var(--rojo); padding-top: 22px; }
.steps p { color: var(--gris-osc); }
.num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--rojo); color: var(--blanco); font-weight: 700; font-size: 20px; margin-bottom: 14px; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.checks li { padding-left: 34px; position: relative; opacity: .92; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--rojo); box-shadow: inset 0 0 0 5px var(--rojo), inset 0 0 0 20px var(--blanco); }

/* Precios */
.period { display: inline-flex; background: var(--fondo); border-radius: 999px; padding: 5px; margin: 24px 0 32px; border: 1px solid var(--linea); }
.period button { border: 0; background: none; font: inherit; font-weight: 600; padding: 10px 20px; border-radius: 999px; cursor: pointer; color: var(--gris-osc); }
.period button.on { background: var(--blanco); color: var(--cafe); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.save { font-size: 12px; color: var(--rojo); margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 24px; }
.plan { position: relative; border: 1px solid var(--linea); border-radius: var(--radio); padding: 32px; display: flex; flex-direction: column; }
.plan-pro { border: 2px solid var(--rojo); box-shadow: 0 20px 40px rgba(211, 50, 48, .12); }
.badge { position: absolute; top: -14px; left: 32px; background: var(--rojo); color: var(--blanco); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan-desc { color: var(--gris); }
.price { margin: 8px 0 20px; }
.price span { font-size: 48px; font-weight: 700; line-height: 1; }
.price small { display: block; color: var(--gris); font-size: 14px; margin-top: 6px; }
.feat { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; flex: 1; }
.feat li { padding-left: 26px; position: relative; }
.feat li::before { content: "✓"; position: absolute; left: 0; color: var(--rojo); font-weight: 700; }
.fine { font-size: 13px; color: var(--gris); margin-top: 24px; }
[hidden] { display: none !important; }
.placeholder-note { background: #fff3cd; color: #7a5a00; padding: 1px 6px; border-radius: 4px; }

/* Distribuidores */
.dist-hero { padding-top: 72px; padding-bottom: 72px; }
.example { background: var(--blanco); color: var(--cafe); border-radius: var(--radio); padding: 28px; box-shadow: 0 30px 60px rgba(0, 0, 0, .2); }
.ex-label { color: var(--gris); margin: 0; font-size: 15px; }
.ex-big { font-size: 44px; font-weight: 800; color: var(--rojo); margin: 0; line-height: 1.1; }
.ex-sub { color: var(--gris); font-size: 14px; }
.comm { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 8px; }
.comm th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--rojo); padding: 8px 0; border-bottom: 1px solid var(--linea); }
.comm td { padding: 10px 0; border-bottom: 1px solid var(--linea); }
.comm th:not(:first-child), .comm td:not(:first-child) { text-align: right; }
.comm td:last-child { font-weight: 700; color: var(--rojo); }

/* Preguntas */
details { border-bottom: 1px solid var(--linea); padding: 18px 0; }
details:first-of-type { margin-top: 24px; border-top: 1px solid var(--linea); }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--rojo); font-size: 24px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--gris-osc); margin: 12px 0 0; }

/* Cierre y pie */
.cta-final { background: var(--rojo-osc); color: var(--blanco); text-align: center; padding: 80px 0; }
.cta-final h2 { margin: 0 auto .4em; }
.foot { background: var(--cafe); color: rgba(255, 255, 255, .85); padding: 56px 0 24px; font-size: 15px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { color: var(--blanco); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.foot p { margin: 0 0 8px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-tag { margin-top: 12px !important; opacity: .7; }
.social { display: flex; gap: 14px; margin-top: 18px; }
.social a { display: inline-flex; border-radius: 8px; transition: transform .15s; }
.social a:hover { transform: translateY(-2px); }
.social svg { display: block; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; font-size: 13px; opacity: .7; }
.powered { letter-spacing: .2em; font-weight: 600; white-space: nowrap; }

/* Adaptación */
@media (max-width: 980px) {
  .hero-in, .split { grid-template-columns: 1fr; }
  .hero-art { order: 2; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--rojo-osc); padding: 8px 20px 20px; display: none; box-shadow: 0 16px 30px rgba(0, 0, 0, .2);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); font-size: 17px; }
  .nav-login { border-left: 0; padding-left: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero-in { padding-top: 40px; }
  .lead { font-size: 18px; }
  .brand img { width: 124px; }
  .cards, .steps, .plans { grid-template-columns: 1fr; }
  .phone { width: 260px; height: 520px; }
  .hero-actions .btn { width: 100%; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; }
  .top-cta .btn-sm { padding: 0 14px; }
}

/* Página 404 */
.page-404 { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.page-404 img { margin: 0 auto 32px; width: 180px; }
.page-404 h1 { max-width: none; }
.lead-center { margin: 0 auto; }

/* Aviso de cookies de medición (lo crea sitio.js) */
.cookies {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 14px;
  background: var(--cafe); color: var(--blanco); box-shadow: 0 12px 34px rgba(30, 18, 13, .28);
}
.cookies p { margin: 0; font-size: 15px; line-height: 1.4; }
.cookies a { color: var(--blanco); text-decoration: underline; }
.cookies .btn { flex: none; }
@media (max-width: 560px) {
  .cookies { left: 10px; right: 10px; bottom: 10px; gap: 12px; padding: 10px 12px; }
  .cookies p { font-size: 13px; }
  .cookies .btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
}
