/* Página principal de AlertaMedios (versión 2). Sin estilos en línea: la CSP del sitio no los permite. */
:root {
  --bg: #060912; --band: #0a0e1b; --panel: #0e1322; --elev: #181f34;
  --fg: #eceff8; --soft: #b4bcd3; --muted: #909bb8; --line: rgba(255, 255, 255, 0.07);
  --violet: #8b5cf6; --violet-2: #a78bfa; --cyan: #22d3ee; --cyan-2: #67e8f9; --green: #34d399;
  --grad: linear-gradient(135deg, #7c3aed, #0891b2);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 Inter, system-ui, sans-serif;
       -webkit-font-smoothing: antialiased; }
a { color: #c4b5fd; text-decoration: none; }
a:hover { color: var(--fg); }
h1, h2, h3 { font-family: Sora, Inter, sans-serif; margin: 0; letter-spacing: -0.03em; }
p { margin: 0; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-2); }
.h2 { margin-top: 12px; max-width: 760px; font-weight: 600; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; }
.grad-text { background: linear-gradient(90deg, #a78bfa, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 26px; border-radius: 12px;
       font: 600 16px Inter, sans-serif; border: 0; cursor: pointer; color: #fff; }
.btn:hover { color: #fff; }
.btn-primary { background: var(--grad); box-shadow: 0 12px 32px -12px rgba(139, 92, 246, .8); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { color: var(--fg); border: 1px solid rgba(255, 255, 255, .16); background: transparent; font-weight: 500; }
.btn-ghost:hover { background: rgba(255, 255, 255, .05); color: var(--fg); }
.btn-sm { padding: 9px 16px; font-size: 15px; border-radius: 10px; }
.btn-light { background: #fff; color: #0b1020; }
.btn-light:hover { color: #0b1020; filter: brightness(.95); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Barra: una línea también en el celular */
.top { position: sticky; top: 0; z-index: 10; background: rgba(6, 9, 18, .8); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .05); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 13px; padding-bottom: 13px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.brand:hover { color: var(--fg); }
.wordmark { font: 600 18px Sora, sans-serif; letter-spacing: -.02em; }
.wordmark span { color: var(--violet-2); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav .link { color: var(--soft); }
.nav .link:hover { color: var(--fg); }
@media (max-width: 720px) { .nav .hide-sm { display: none; } .nav { gap: 14px; } .wordmark { font-size: 16px; } }

/* Hero */
.hero { position: relative; padding: 72px 0 64px; overflow-x: clip; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.glow { position: absolute; border-radius: 50%; pointer-events: none; }
.glow-a { top: -160px; right: -200px; width: 720px; height: 720px; background: radial-gradient(circle, rgba(139, 92, 246, .25), rgba(6, 9, 18, 0) 65%); }
.hero-text { flex: 1 1 560px; min-width: 0; position: relative; }
.hero h1 { font-weight: 700; font-size: clamp(38px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -.035em; }
.lead { margin-top: 24px; max-width: 540px; font-size: 19px; color: var(--soft); }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* Teléfono con alertas que llegan */
.phone-wrap { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; position: relative; }
.phone { width: 100%; max-width: 400px; border-radius: 34px; padding: 12px; background: #0b0f1c; border: 1px solid rgba(255, 255, 255, .12);
         box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .9), 0 0 0 6px rgba(255, 255, 255, .03); }
.chat { border-radius: 24px; background: var(--panel); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #8b5cf6, #22d3ee); display: grid; place-items: center; font: 700 13px Sora, sans-serif; }
.chat-head b { display: block; font-size: 15px; }
.chat-head small { font-size: 12px; color: #6ee7b7; }
.chat-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 430px; }
.bubble { border-radius: 4px 16px 16px 16px; background: var(--elev); overflow: hidden; opacity: 0; transform: translateY(14px); animation: arrive .6s ease-out forwards; }
.d2 { animation-delay: 1.4s; } .d3 { animation-delay: 2.6s; }
@keyframes arrive { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bubble, .stamp { animation: none; opacity: 1; transform: none; } .live-dot { animation: none; } }
.clip { position: relative; height: 150px; background: linear-gradient(135deg, #1e293b, #312e81 55%, #0e7490); }
.clip .on-air { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 6px; background: #e11d48; color: #fff; font-size: 11px; font-weight: 700; }
.clip .play { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%;
              background: rgba(6, 9, 18, .55); border: 1px solid rgba(255, 255, 255, .3); display: grid; place-items: center; }
.clip .zocalo { position: absolute; left: 0; right: 0; bottom: 0; padding: 7px 12px; background: rgba(255, 255, 255, .94); color: #0b1020; font: 700 12px Sora, sans-serif; }
.msg { padding: 11px 13px; font-size: 13.5px; }
.tags { display: flex; gap: 6px; margin-bottom: 6px; }
.tag { padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; }
.tag-high { background: rgba(244, 63, 94, .16); color: #fda4af; } .tag-neg { background: rgba(251, 146, 60, .14); color: #fdba74; }
.msg b { display: block; }
.msg .meta { color: var(--muted); font-size: 12px; margin-top: 6px; }
.msg .sum { color: var(--soft); margin-top: 4px; }
.msg .more { color: var(--violet-2); font-size: 12.5px; margin-top: 6px; }
.msg .src { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.buttons { display: flex; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 12.5px; }
.buttons span { flex: 1; text-align: center; padding: 8px; color: var(--soft); }
.buttons span + span { border-left: 1px solid rgba(255, 255, 255, .06); }
.stamp { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(52, 211, 153, .12);
         color: #6ee7b7; font-size: 12.5px; font-weight: 600; opacity: 0; transform: translateY(14px); animation: arrive .6s ease-out 1.4s forwards; }

/* Ahora mismo (números reales) */
.band { background: var(--band); border-top: 1px solid rgba(255, 255, 255, .06); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.now { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; padding-top: 26px; padding-bottom: 18px; }
.now-label { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6ee7b7; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, .5); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }
.now b { font: 700 26px Sora, sans-serif; }
.now span.k { color: var(--muted); }
.now { padding-bottom: 26px; }

/* Qué escuchamos: pestañas por tipo de medio */
.media .wrap { text-align: center; }
.media .h2 { margin-left: auto; margin-right: auto; }
.media-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 36px; padding: 5px;
              border-radius: 14px; background: var(--panel, #0e1322); border: 1px solid rgba(255, 255, 255, .08); }
.media-tabs button { padding: 9px 18px; border: 0; border-radius: 10px; background: transparent; color: var(--soft);
                     font: 600 14px Inter, sans-serif; cursor: pointer; }
.media-tabs button span { opacity: .65; margin-left: 4px; }
.media-tabs button.on { background: linear-gradient(135deg, var(--violet), var(--cyan)); color: #fff; }
.media-list { list-style: none; margin: 30px auto 0; padding: 0; max-width: 1000px; display: flex; flex-wrap: wrap;
              justify-content: center; gap: 10px; }
.media-list .chan { padding: 8px 16px 8px 8px; border-radius: 12px; background: var(--panel, #0e1322);
                    border: 1px solid rgba(255, 255, 255, .07); font-size: 15px; color: var(--fg); }
.media-list .cm { min-width: 32px; height: 26px; font-size: 11px; }
.media-note { margin: 24px auto 0; max-width: 620px; color: var(--muted); font-size: 14px; }
@media (max-width: 480px) {
  .media-tabs { flex-wrap: nowrap; gap: 2px; }
  .media-tabs button { padding: 8px 10px; font-size: 13px; }
  .media-tabs button span { margin-left: 2px; }
}
.chan { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px 5px 5px; border-radius: 9px; background: rgba(255, 255, 255, .04); font-size: 13px; color: var(--soft); }
.cm { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 5px; border-radius: 6px; font: 700 10px Sora, sans-serif; color: #fff; }
.c0 { background: #2563eb; } .c1 { background: #dc2626; } .c2 { background: #0ea5e9; } .c3 { background: #7c3aed; }
.c4 { background: #059669; } .c5 { background: #d97706; } .c6 { background: #db2777; } .c7 { background: #4f46e5; }
.c8 { background: #0891b2; } .c9 { background: #65a30d; }

/* Secciones */
.section { padding: 110px 0 40px; }

/* La diferencia: línea de tiempo (horizontal en la compu, vertical en el celular) */
.timeline { margin: 56px 0 0; padding: 0; list-style: none; position: relative; display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 41px; height: 2px;
                    background: linear-gradient(90deg, #8b5cf6 0%, #22d3ee 46%, rgba(148, 163, 184, .35) 56%, rgba(148, 163, 184, .35) 100%); }
.tl-step { position: relative; display: flex; flex-direction: column; }
.tl-time { font: 700 20px Sora, sans-serif; letter-spacing: -.02em; color: #c4b5fd; }
.tl-dot { margin-top: 10px; width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, #8b5cf6, #22d3ee);
          box-shadow: 0 0 0 6px rgba(139, 92, 246, .18); position: relative; }
.tl-step b { margin-top: 16px; font-weight: 600; font-size: 16px; }
.tl-sub { margin-top: 4px; color: var(--muted); font-size: 14px; }
.tl-step.old .tl-time { color: var(--muted); }
.tl-step.old .tl-dot { background: #64748b; box-shadow: 0 0 0 6px rgba(100, 116, 139, .18); }
.tl-note { margin-top: 44px; max-width: 760px; color: var(--soft); font-size: 17px; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 26px; padding-left: 34px; }
  .timeline::before { left: 7px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto;
                      background: linear-gradient(180deg, #8b5cf6 0%, #22d3ee 70%, rgba(148, 163, 184, .35) 82%, rgba(148, 163, 184, .35) 100%); }
  .tl-dot { position: absolute; left: -34px; top: 4px; margin: 0; }
  .tl-step b { margin-top: 4px; }
  .tl-step.old { margin-top: 18px; }
}

/* Un día con AlertaMedios */
.moment { margin-top: 64px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.moment.rev { flex-wrap: wrap-reverse; }
.m-text { flex: 1 1 380px; min-width: 0; }
.m-time { font: 600 14px Sora, sans-serif; color: var(--violet-2); }
.m-text h3 { margin-top: 8px; font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.m-text p { margin-top: 12px; color: var(--soft); font-size: 17px; }
.m-visual { flex: 1 1 460px; min-width: 0; }
.stack { border-radius: 22px; padding: 22px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.stack-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--elev); }
.thumb { width: 64px; height: 40px; border-radius: 8px; flex-shrink: 0; }
.t1 { background: linear-gradient(135deg, #312e81, #0e7490); } .t2 { background: linear-gradient(135deg, #4c1d95, #155e75); }
.t3 { background: linear-gradient(135deg, #0f172a, #1e3a5f); } .t4 { background: linear-gradient(135deg, #1e293b, #4c1d95); }
.t5 { background: linear-gradient(135deg, #3b0764, #155e75); }
.stack-item b { display: block; font-size: 14px; }
.stack-item small { font-size: 12.5px; color: var(--muted); }
.browser { border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); background: #0b0f1c; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 12px; color: var(--muted); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.r { background: #fb7185; } .y { background: #fbbf24; } .g { background: #34d399; }
.browser-bar span { margin-left: 12px; }
.cards { padding: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pcard { border-radius: 12px; background: #121829; border: 1px solid rgba(255, 255, 255, .06); overflow: hidden; }
.pcard .thumb { width: auto; height: 84px; border-radius: 0; }
.pcard div.body { padding: 10px 12px; }
.pcard .row { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.pcard .title { margin-top: 4px; font-size: 13px; font-weight: 600; line-height: 1.35; }
.neg { color: #fda4af; } .pos { color: #6ee7b7; } .neu { color: var(--soft); }

/* Banda clara: el informe */
.light { background: #f5f6fa; color: #0b1020; }
.light .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 90px; padding-bottom: 90px; }
.light .m-time { color: #6d28d9; }
.light h3 { font-size: 32px; }
.light .m-text p { color: #475569; }
.checks { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: #1e293b; }
.checks li::before { content: "✓  "; color: #6d28d9; font-weight: 700; }
.paper { width: 100%; max-width: 520px; margin: 0 auto; background: #fff; border-radius: 10px; padding: 28px;
         box-shadow: 0 30px 70px -30px rgba(15, 23, 42, .45), 0 0 0 1px rgba(15, 23, 42, .06); }
.paper-head { display: flex; justify-content: space-between; align-items: center; }
.paper-head b { font: 700 15px Sora, sans-serif; } .paper-head span { font-size: 12px; color: #64748b; }
.kpis { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { padding: 10px 12px; border-radius: 8px; }
.kpi b { font: 700 22px Sora, sans-serif; } .kpi div { font-size: 11px; color: #475569; }
.k1 { background: #ede9fe; } .k2 { background: #ecfeff; } .k3 { background: #ffe4e6; }
.paper h4 { margin: 20px 0 0; font: 600 13px Sora, sans-serif; }
.tone-rows { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.tone-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.tone-row .nm { flex: 0 0 100px; color: #1e293b; }
.tone-row .bar { flex: 1; display: flex; height: 10px; border-radius: 3px; overflow: hidden; background: #eef0f4; }
.tone-row .bar i { display: block; }
.tone-row .val { flex: 0 0 74px; text-align: right; color: #64748b; }
.bn { background: #e5484d; } .bu { background: #a3abbd; } .bp { background: #2b9a66; }
.w5 { width: 5%; } .w10 { width: 10%; } .w15 { width: 15%; } .w20 { width: 20%; } .w25 { width: 25%; } .w30 { width: 30%; }

/* Para quién */
.who { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; border-radius: 20px; overflow: hidden; background: var(--line); }
.who div { padding: 28px; background: #0b0f1c; }
.who b { font: 600 20px Sora, sans-serif; }
.who p { margin-top: 8px; color: var(--soft); }

/* Preguntas */
.faq { max-width: 860px; }
.faq h2 { text-align: center; font-weight: 600; font-size: clamp(28px, 3vw, 38px); }
.faq-list { margin-top: 34px; display: flex; flex-direction: column; gap: 10px; }
details { border-radius: 14px; background: var(--panel); border: 1px solid var(--line); padding: 18px 22px; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 16.5px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--soft); }

/* Demo */
.demo { border-radius: 28px; padding: clamp(28px, 5vw, 56px); background: linear-gradient(140deg, #1a1340 0%, #0e1322 55%, #0b2530 100%);
        border: 1px solid rgba(139, 92, 246, .25); display: flex; flex-wrap: wrap; gap: 44px; align-items: center; }
.demo-text { flex: 1 1 360px; min-width: 0; }
.demo h2 { font-weight: 600; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; }
.demo-text p { margin-top: 16px; color: var(--soft); font-size: 18px; }
.demo-text p.contact { margin-top: 18px; color: var(--muted); font-size: 14px; }
form { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; position: relative; }
input, textarea { font: inherit; padding: 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(6, 9, 18, .5); color: var(--fg); width: 100%; }
input::placeholder, textarea::placeholder { color: #6b7591; }
input:focus, textarea:focus { outline: 2px solid var(--violet); outline-offset: 1px; border-color: transparent; }
textarea { resize: vertical; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.status.ok { background: rgba(34, 211, 238, .1); color: var(--cyan-2); }
.status.err { background: rgba(244, 63, 94, .12); color: #fda4af; }
.privacy { font-size: 13px; color: var(--muted); }

/* Pie */
.foot { border-top: 1px solid rgba(255, 255, 255, .06); margin-top: 20px; }
.foot .wrap { padding-top: 30px; padding-bottom: 30px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; gap: 22px; }
.foot a { color: var(--soft); }
[hidden] { display: none !important; }

/* Celular: la barra en una sola línea */
.btn { white-space: nowrap; }
@media (max-width: 420px) {
  .top .wrap { gap: 8px; padding-left: 16px; padding-right: 16px; }
  .brand img { width: 28px; height: 28px; }
  .wordmark { font-size: 15px; }
  .nav { gap: 10px; font-size: 14px; }
  .btn-sm { padding: 8px 12px; font-size: 14px; }
}
