/* Página principal e ingreso de AlertaMedios: misma paleta y tipografías que el portal. */
:root {
  --bg: #060912; --band: #0a0e1b; --panel: #0e1322; --elev: #181f34;
  --fg: #eceff8; --soft: #b4bcd3; --muted: #909bb8; --line: rgba(255, 255, 255, 0.08);
  --violet: #8b5cf6; --violet-2: #a78bfa; --cyan: #22d3ee; --cyan-2: #67e8f9;
  --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; overflow-x: hidden; }
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; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px;
       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 10px 30px -10px rgba(139, 92, 246, 0.7); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { color: var(--fg); border: 1px solid rgba(255, 255, 255, 0.16); background: transparent; font-weight: 500; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); }
.btn-sm { padding: 10px 18px; font-size: 15px; border-radius: 10px; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* Barra superior */
.top { position: sticky; top: 0; z-index: 10; background: rgba(6, 9, 18, 0.72); backdrop-filter: blur(14px);
       border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.brand:hover { color: var(--fg); }
.wordmark { font-family: Sora, sans-serif; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.wordmark span { color: var(--violet-2); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 15px; }
.nav .link { color: var(--soft); }
.nav .link:hover { color: var(--fg); }
@media (max-width: 720px) { .nav .link { display: none; } .nav { gap: 8px; } }

/* Hero */
.hero { position: relative; padding: 64px 0 96px; overflow-x: clip; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 480px; min-width: 0; position: relative; }
.glow { position: absolute; border-radius: 50%; pointer-events: none; }
.glow-a { top: -140px; right: -180px; width: 680px; height: 680px; background: radial-gradient(circle, rgba(139, 92, 246, 0.26), rgba(6, 9, 18, 0) 65%); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
        background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.25); color: var(--cyan-2); font-size: 13px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(34, 211, 238, 0.05); } }
.hero h1 { margin-top: 22px; font-weight: 700; font-size: clamp(38px, 5vw, 62px); line-height: 1.06; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--violet-2); }
.lead { margin-top: 22px; max-width: 540px; font-size: 19px; color: var(--soft); }
.actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin-top: 22px; font-size: 14px; color: var(--muted); }

/* Mockup de Telegram */
.phone-wrap { flex: 1 1 400px; min-width: 0; display: flex; justify-content: center; position: relative; }
.phone { width: 100%; max-width: 420px; border-radius: 28px; padding: 14px;
         background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
         border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
.chat { border-radius: 18px; 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, 0.06); }
.chat-head .who { flex: 1; }
.chat-head b { display: block; font-size: 15px; }
.chat-head small, .chat-head time { font-size: 12px; color: var(--muted); }
.chat-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.bubble { align-self: flex-start; max-width: 92%; border-radius: 4px 16px 16px 16px; background: var(--elev); overflow: hidden;
          opacity: 0; transform: translateY(10px); animation: arrive 0.6s ease-out forwards; }
.bubble.second { max-width: 82%; padding: 10px 14px; font-size: 14px; animation-delay: 1.1s; }
@keyframes arrive { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; opacity: 1; transform: none; } .dot { animation: none; } }
.clip { position: relative; height: 178px; background: linear-gradient(135deg, #1e293b 0%, #312e81 55%, #0e7490 100%); }
.clip .play { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%;
              background: rgba(6, 9, 18, 0.55); border: 1px solid rgba(255, 255, 255, 0.3); display: grid; place-items: center; }
.clip .live { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 6px; background: #e11d48; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.clip .len { position: absolute; right: 10px; top: 10px; padding: 2px 7px; border-radius: 6px; background: rgba(6, 9, 18, 0.7); font-size: 11px; }
.clip .zocalo { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; background: rgba(255, 255, 255, 0.94); color: #0b1020;
                font: 700 13px Sora, sans-serif; letter-spacing: 0.01em; }
.msg { padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tag { padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.tag-high { background: rgba(244, 63, 94, 0.16); color: #fda4af; }
.tag-neg { background: rgba(251, 146, 60, 0.14); color: #fdba74; }
.msg b { display: block; }
.msg .sum { color: var(--soft); margin-top: 4px; }
.msg .meta { color: var(--muted); font-size: 12px; margin-top: 8px; }
.bubble.second b { display: flex; align-items: center; gap: 8px; }
.bubble.second .sum { color: var(--soft); margin-top: 4px; }
.bubble.second .more { color: var(--violet-2); font-size: 13px; margin-top: 6px; }

/* Números */
.band { background: var(--band); border-top: 1px solid rgba(255, 255, 255, 0.06); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding: 34px 24px; }
.stat strong { display: block; font: 700 36px Sora, sans-serif; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 15px; }
.channels { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0 24px 30px; }
.channels .label { font-size: 13px; color: var(--muted); margin-right: 6px; }
.chip { padding: 5px 11px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); font-size: 13px; color: var(--soft); }

/* Secciones */
.section { padding: 96px 0 24px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan-2); }
.section h2 { margin-top: 12px; max-width: 720px; font-weight: 600; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.15; }
.grid { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.card { padding: 28px; border-radius: 20px; background: var(--panel); border: 1px solid rgba(255, 255, 255, 0.07); }
.card.outline { background: transparent; border-color: var(--line); }
.card h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.card p { margin-top: 10px; color: var(--soft); }
.icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(139, 92, 246, 0.14); display: grid; place-items: center; margin-bottom: 20px; }
.step { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.card.media { display: flex; flex-direction: column; gap: 22px; }
.shot { height: 220px; border-radius: 14px; background: linear-gradient(180deg, var(--elev), var(--panel)); overflow: hidden; }

/* Mini PDF */
.shot.pdf { display: flex; align-items: flex-end; justify-content: center; }
.paper { width: 70%; height: 196px; border-radius: 8px 8px 0 0; background: #f8fafc; padding: 16px; color: #0b1020; }
.paper .row { display: flex; justify-content: space-between; align-items: center; }
.paper .row b { font: 700 11px Sora, sans-serif; }
.paper .row small { font-size: 9px; color: #475569; }
.kpis { margin-top: 10px; display: flex; gap: 6px; }
.kpi { flex: 1; padding: 6px; border-radius: 5px; }
.kpi b { display: block; font-size: 13px; }
.kpi small { font-size: 8px; color: #475569; }
.k1 { background: #ede9fe; } .k2 { background: #ecfeff; } .k3 { background: #ffe4e6; }
.line { margin-top: 5px; height: 6px; border-radius: 3px; background: #e2e8f0; }
.line.first { margin-top: 10px; width: 92%; } .w80 { width: 80%; } .w86 { width: 86%; }
.tone { margin-top: 12px; display: flex; height: 8px; border-radius: 4px; overflow: hidden; }
.tone i { display: block; } .t1 { width: 55%; background: #8b5cf6; } .t2 { width: 30%; background: #94a3b8; } .t3 { width: 15%; background: #f97316; }
.paper .cap { margin-top: 5px; font-size: 8px; color: #475569; }

/* Mini gráfico */
.shot.chart { padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; }
.bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: rgba(139, 92, 246, 0.5); }
.b1 { height: 38%; } .b2 { height: 56%; } .b3 { height: 44%; } .b4 { height: 72%; background: rgba(139, 92, 246, 0.7) !important; }
.b5 { height: 100%; background: linear-gradient(180deg, #a78bfa, #22d3ee) !important; }
.weeks { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* Mini portal */
.shot.clips { padding: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { border-radius: 10px; position: relative; }
.tile span { position: absolute; left: 8px; bottom: 8px; font-size: 10px; padding: 2px 6px; border-radius: 4px; background: rgba(6, 9, 18, 0.7); }
.v1 { background: linear-gradient(135deg, #312e81, #0e7490); } .v2 { background: linear-gradient(135deg, #1e293b, #4c1d95); }
.v3 { background: linear-gradient(135deg, #0f172a, #155e75); }
.note { background: var(--elev); border: 1px solid var(--line); padding: 10px; font-size: 10px; color: var(--soft); }
.note i { display: block; margin-top: 6px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.note i + i { margin-top: 4px; width: 70%; }

/* Por qué */
.why { border-radius: 28px; padding: clamp(28px, 5vw, 56px); background: linear-gradient(150deg, #151a33 0%, var(--panel) 60%);
       border: 1px solid rgba(139, 92, 246, 0.25); display: flex; flex-wrap: wrap; gap: 40px; }
.why > div:first-child { flex: 1 1 320px; min-width: 0; }
.why h2 { margin-top: 0; font-size: clamp(28px, 3vw, 38px); }
.why p { margin-top: 16px; color: var(--soft); }
.points { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.points b { font-size: 17px; }
.points p { margin-top: 6px; font-size: 15px; }

/* Preguntas */
.faq { max-width: 860px; }
.faq h2 { text-align: center; max-width: none; font-size: clamp(28px, 3vw, 38px); }
.faq-list { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
details { border-radius: 16px; background: var(--panel); border: 1px solid rgba(255, 255, 255, 0.07); padding: 20px 24px; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 17px; }
summary::-webkit-details-marker { display: none; }
details[open] .chev { transform: rotate(180deg); }
.chev { flex-shrink: 0; transition: transform 0.2s; }
details p { margin-top: 12px; color: var(--soft); }

/* Demo */
.demo { position: relative; border-radius: 28px; padding: clamp(28px, 5vw, 56px); background: var(--panel); border: 1px solid var(--line);
        display: flex; flex-wrap: wrap; gap: 48px; overflow: hidden; }
.glow-b { left: -200px; bottom: -260px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(34, 211, 238, 0.16), rgba(14, 19, 34, 0) 65%); }
.demo-text { flex: 1 1 340px; min-width: 0; position: relative; }
.demo h2 { margin-top: 0; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; }
.demo-text > p { margin-top: 16px; color: var(--soft); font-size: 18px; }
.checks { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: center; }
form { position: relative; display: flex; flex-direction: column; gap: 16px; }
.demo form { flex: 1 1 400px; min-width: 0; }
.pair { display: flex; flex-wrap: wrap; gap: 16px; }
.pair label { flex: 1 1 200px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--soft); }
label .opt { color: var(--muted); }
input, textarea { font: inherit; padding: 13px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14);
                  background: rgba(255, 255, 255, 0.04); 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, 0.1); color: var(--cyan-2); }
.status.err { background: rgba(244, 63, 94, 0.12); color: #fda4af; }
.privacy { font-size: 13px; color: var(--muted); }

/* Pie */
.foot { border-top: 1px solid rgba(255, 255, 255, 0.06); margin-top: 96px; }
.foot .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 24px; }
.foot a { color: var(--soft); }

/* Ingreso */
.login-page { min-height: 100dvh; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.glow-c { top: -240px; left: 50%; transform: translateX(-50%); width: 900px; height: 600px; background: radial-gradient(circle, rgba(139, 92, 246, 0.22), rgba(6, 9, 18, 0) 65%); }
.login-top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.login-top .back { color: var(--soft); font-size: 15px; }
.login-main { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 16px 72px; }
.login-card { width: 100%; max-width: 440px; padding: clamp(28px, 5vw, 40px); border-radius: 24px; background: var(--panel);
              border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
.login-card h1 { font-weight: 600; font-size: 28px; }
.login-card .sub { margin-top: 8px; color: var(--soft); }
.login-card form { margin-top: 24px; }
.login-card .icon { background: rgba(34, 211, 238, 0.12); width: 52px; height: 52px; border-radius: 14px; }
.code-input { font: 600 26px Sora, sans-serif; letter-spacing: 0.5em; text-align: center; padding-left: calc(14px + 0.5em); }
.row-between { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.linkish { padding: 0; border: 0; background: none; color: var(--soft); font: inherit; cursor: pointer; }
.linkish:hover { color: var(--fg); }
.linkish[disabled] { color: var(--muted); cursor: default; }
.hint { display: flex; gap: 10px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.06); font-size: 13px; color: var(--muted); }
.hint svg { flex-shrink: 0; margin-top: 1px; }
.login-foot { position: relative; text-align: center; padding: 24px; font-size: 13px; color: var(--muted); }
[hidden] { display: none !important; }
