/* Global Scientific Visitor Analytics — páginas públicas. Tipografía: Arial. */
:root {
  --ink: #0B1B26; --ink2: #3D5566; --bg: #FFFFFF; --soft: #F3F7FA; --line: #DCE6EC;
  --primary: #1D4ED8; --primary-h: #1E40AF; --on-primary: #FFFFFF;
  --abyss: #071722; --deep: #0A1C28; --cyan: #46D9C4; --amber: #E8B04B; --lilac: #A99BFF;
  --r: 14px; --shadow: 0 1px 2px rgba(11,27,38,.06), 0 12px 32px rgba(11,27,38,.08);
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
code { font-family: Consolas, "Courier New", monospace; font-size: .88em; background: rgba(29,78,216,.08); padding: 1px 5px; border-radius: 4px; word-break: break-all; }
.wrap { width: min(1180px, 92vw); margin: 0 auto; }
.wrap.narrow { width: min(820px, 92vw); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 9999; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #93C5FD; outline-offset: 2px; }
.small { font-size: .85rem; color: var(--ink2); }

/* Botones */
.pbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary); color: var(--on-primary) !important; border: 1px solid var(--primary);
  padding: 10px 18px; border-radius: 10px; font: 700 .95rem var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.pbtn:hover { background: var(--primary-h); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(29,78,216,.28); }
.pbtn.big { padding: 14px 24px; font-size: 1.02rem; border-radius: 12px; }
.pbtn.small { padding: 6px 12px; font-size: .82rem; }
.pbtn.ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); color: #fff !important; }
.pbtn.ghost:hover { background: rgba(255,255,255,.16); box-shadow: none; }
.pbtn.light { background: #fff; color: var(--primary) !important; border-color: #fff; }
.pbtn.outline { background: transparent; color: var(--primary) !important; }
.pbtn.google { background: #fff; color: #1F1F1F !important; border-color: #DADCE0; }
.pbtn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Navegación */
.pnav { position: sticky; top: 0; z-index: 1000; background: rgba(7,23,34,.86); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.pnav-in { display: flex; align-items: center; gap: 18px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: .98rem; }
.logo b { font-weight: 700; }
.logo-mark { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #60A5FA, var(--primary) 60%); box-shadow: 0 0 0 4px rgba(96,165,250,.18), inset 0 0 0 6px rgba(255,255,255,.18); }
.pnav-links { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.pnav-links a:not(.pbtn) { color: #C9D7E0; text-decoration: none; font-size: .93rem; }
.pnav-links a:not(.pbtn):hover { color: #fff; }
.pnav-burger { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 8px; padding: 6px 12px; font-size: 1.1rem; cursor: pointer; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 70% 30%, #0F3550 0, var(--abyss) 65%); color: #fff; min-height: min(760px, 92vh); display: flex; align-items: center; }
.hero-map { position: absolute; inset: 0; opacity: 1; }
.hero-map .leaflet-container { background: transparent !important; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,23,34,.86) 0, rgba(7,23,34,.55) 42%, rgba(7,23,34,.12) 72%, rgba(7,23,34,.4) 100%); pointer-events: none; }
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr); gap: 40px; align-items: end; padding: 70px 0; pointer-events: none; }
.hero-in > * { pointer-events: auto; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); max-width: 20ch; }
.grad { background: linear-gradient(90deg, #60A5FA, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: #C9D7E0; max-width: 56ch; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: .88rem; margin-bottom: 18px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #FF5A4E; box-shadow: 0 0 0 0 rgba(255,90,78,.7); animation: ping 1.8s infinite; display: inline-block; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(255,90,78,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,78,0); } }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; color: #9FB5C2; font-size: .9rem; }
.hero-stats { display: grid; gap: 12px; }
.hs { background: rgba(10,28,40,.72); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: 16px 20px; backdrop-filter: blur(6px); }
.hs b { display: block; font-size: 2.1rem; letter-spacing: -.03em; }
.hs span { color: #9FB5C2; font-size: .88rem; }
.hs-note { font-size: .78rem; color: #8BA8B6; margin: 0; }

/* Secciones */
.sec { padding: 90px 0; }
.sec.alt { background: var(--soft); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.sec-head h2, .split2 h2, .cta h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.sec-head p { color: var(--ink2); font-size: 1.05rem; margin: 0; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); position: relative; }
.steps .n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 700; margin-bottom: 14px; }
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; color: var(--ink2); font-size: .94rem; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feats article { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; transition: transform .2s, box-shadow .2s; }
.feats article:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feat-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(29,78,216,.1); color: var(--primary); font-size: 1.2rem; margin-bottom: 12px; }
.feats p { color: var(--ink2); margin: 0; }
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 8px; }
.checks li::before { content: "✓"; color: #0E9C88; font-weight: 700; margin-right: 10px; }
.eq-demo { display: grid; grid-template-columns: 1fr auto 1fr auto 1.15fr; gap: 10px; align-items: center; }
.eq { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.eq span { display: block; font-size: .8rem; color: var(--ink2); }
.eq b { display: block; font-size: 1.6rem; letter-spacing: -.02em; }
.eq small { font-size: .74rem; color: var(--ink2); }
.eq.t1 { border-top: 4px solid var(--amber); } .eq.t2 { border-top: 4px solid #0E9C88; } .eq.t3 { border-top: 4px solid var(--lilac); }
.op { font-size: 1.6rem; color: var(--ink2); }

/* Vista previa con la web del visitante */
.try { display: flex; gap: 10px; max-width: 760px; margin: 0 auto 26px; flex-wrap: wrap; }
.try input, .try select, .rform input:not([type=checkbox]):not([type=radio]), .rform select, .rform textarea { font: 1rem var(--font); padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); min-width: 0; }
.try input { flex: 1 1 320px; }
.try input:focus, .rform input:focus, .rform select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(29,78,216,.12); outline: none; }
.browser { max-width: 1040px; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid #CBD5E1; box-shadow: 0 30px 70px rgba(11,27,38,.18); }
.b-bar { display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: center; background: #E8EDF2; padding: 10px 14px; border-bottom: 1px solid #CBD5E1; }
.b-dots { display: flex; gap: 6px; } .b-dots i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; } .b-dots i:nth-child(2) { background: #FEBC2E; } .b-dots i:nth-child(3) { background: #28C840; }
.b-tab { display: flex; align-items: center; gap: 8px; background: #fff; padding: 6px 14px; border-radius: 8px 8px 0 0; font-size: .82rem; max-width: 240px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.b-url { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 6px 14px; font-size: .88rem; color: #334155; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.b-lock { font-size: .75rem; }
.b-page { position: relative; height: 540px; overflow: hidden; background: #fff; }
.b-page iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fake-site { position: absolute; inset: 0; padding: 22px 28px; overflow: hidden; }
.b-page.real .fake-site { background: transparent; pointer-events: none; }
.b-page.real .fs-nav, .b-page.real .fs-hero, .b-page.real .fs-text { visibility: hidden; }
.fs-nav { display: flex; align-items: center; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid #E2E8F0; }
.fs-nav b { font-size: 1.05rem; color: #0F172A; margin-right: auto; }
.fs-nav span { width: 64px; height: 9px; border-radius: 5px; background: #E2E8F0; }
.fs-hero { padding: 26px 0; } .fs-hero i, .fs-text i { display: block; height: 14px; border-radius: 7px; background: #E2E8F0; margin-bottom: 12px; }
.fs-hero i:first-child { height: 26px; width: 60%; background: #CBD5E1; } .fs-hero i.short, .fs-text i.short { width: 55%; }
.fs-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 26px; }
.fs-text i { height: 10px; }
.fs-widget { border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px rgba(11,27,38,.22); display: flex; flex-direction: column; height: 330px; pointer-events: auto; animation: rise .6s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.fs-widget.theme-dark { background: #0A1C28; color: #E2EDF1; --wl: #173B4D; --wo: #0B2230; --wb: #2A5A70; }
.fs-widget.theme-light { background: #FFFFFF; color: #10303F; border: 1px solid #DCE6EC; --wl: #F1F5F8; --wo: #DCE8EE; --wb: #B9CCD5; }
.fs-widget.theme-ocean { background: #062A3F; color: #E0F2FE; --wl: #0E4A66; --wo: #04324B; --wb: #1F6C8C; }
.fw-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-size: .78rem; opacity: .95; }
.fw-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.fw-map { flex: 1; position: relative; }
.fw-map .leaflet-container { background: var(--wo) !important; }
.fw-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(127,160,180,.25); }
.fw-stats div { padding: 8px 12px; }
.fw-stats b { display: block; font-size: 1.25rem; }
.fw-stats span { font-size: .7rem; opacity: .75; }
.real-toggle { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 14px; font-size: .88rem; color: var(--ink2); }
.note { text-align: center; color: var(--ink2); font-size: .88rem; margin: 10px auto 0; max-width: 720px; }
.code-preview { max-width: 860px; margin: 30px auto 0; background: #0B1620; border-radius: 12px; overflow: hidden; color: #D6E4EC; }
.cp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: #0F1E2B; font-size: .88rem; flex-wrap: wrap; }
.code-preview pre { margin: 0; padding: 16px; overflow-x: auto; font: .84rem/1.6 Consolas, "Courier New", monospace; }
.code-preview code { background: none; padding: 0; color: inherit; word-break: normal; }
.code-preview .small { color: #8BA8B6; padding: 0 16px 14px; margin: 0; }

/* Red pública */
.net { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.net a { display: block; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; text-decoration: none; color: var(--ink); transition: box-shadow .2s; }
.net a:hover { box-shadow: var(--shadow); }
.net .t { font-size: .72rem; font-weight: 700; color: var(--primary); letter-spacing: .06em; }
.net b { display: block; margin: 4px 0; } .net .v { font-size: 1.3rem; font-weight: 700; }

/* FAQ / CTA / footer */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; color: var(--primary); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--ink2); margin: 0 0 14px; }
.cta { background: linear-gradient(120deg, var(--primary), #0E7490); color: #fff; padding: 70px 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin: 0; max-width: 22ch; }
.pfoot { background: var(--abyss); color: #9FB5C2; padding: 50px 0 20px; font-size: .9rem; }
.pfoot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.pfoot b { color: #fff; display: block; margin-bottom: 10px; }
.pfoot a { display: block; color: #9FB5C2; text-decoration: none; margin-bottom: 6px; } .pfoot a:hover { color: #fff; }
.pfoot-legal { border-top: 1px solid rgba(255,255,255,.08); margin-top: 30px; padding-top: 16px; font-size: .8rem; }

/* Registro / acceso */
.auth-wrap { min-height: calc(100vh - 66px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: radial-gradient(ellipse at 30% 20%, #0F3550 0, var(--abyss) 70%); color: #fff; padding: 60px min(6vw, 70px); display: flex; flex-direction: column; justify-content: center; }
.auth-side h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.auth-side p, .auth-side li { color: #C9D7E0; }
.auth-side ul { list-style: none; padding: 0; display: grid; gap: 10px; margin: 20px 0; }
.auth-side li::before { content: "✓"; color: var(--cyan); margin-right: 10px; font-weight: 700; }
.auth-main { padding: 50px min(6vw, 70px); display: flex; align-items: center; justify-content: center; background: var(--soft); }
.rcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 32px; width: min(520px, 100%); }
.rcard h2 { font-size: 1.6rem; }
.rform { display: grid; gap: 14px; }
.rform label { display: grid; gap: 6px; align-content: start; align-self: start; font-size: .88rem; font-weight: 700; color: var(--ink); }
.rform input:not([type=checkbox]):not([type=radio]), .rform select { height: 46px; width: 100%; }
.rform .row2 { align-items: start; }
.rform label span.opt { font-weight: 400; color: var(--ink2); }
.rform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rform .hint { font-weight: 400; font-size: .8rem; color: var(--ink2); }
.rform .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .86rem; }
.rform .check { display: flex !important; grid-template-columns: none; }
.rform .check input { width: 18px; height: 18px; flex: none; margin: 2px 0 0; accent-color: var(--primary); }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink2); font-size: .85rem; margin: 6px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.msg { padding: 12px 14px; border-radius: 10px; font-size: .92rem; border-left: 4px solid; }
.msg.ok { background: #ECFDF5; border-color: #10B981; color: #065F46; }
.msg.bad { background: #FEF2F2; border-color: #EF4444; color: #991B1B; }
.msg.info { background: #EFF6FF; border-color: var(--primary); color: #1E3A8A; }
.gmail-tag { display: inline-block; font-size: .72rem; font-weight: 700; color: #0E7490; background: #ECFEFF; border: 1px solid #A5F3FC; padding: 1px 8px; border-radius: 999px; margin-left: 6px; }
.hp { position: absolute; left: -5000px; }
.pw-meter { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; } .pw-meter i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }

/* Responsive */
@media (max-width: 980px) {
  .hero-in, .split2, .auth-wrap { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .steps, .feats { grid-template-columns: 1fr 1fr; }
  .fs-grid { grid-template-columns: 1fr; } .fs-text { display: none; }
  .auth-side { padding: 40px 6vw; }
}
@media (max-width: 760px) {
  .pnav-burger { display: block; }
  .pnav-links { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--abyss); padding: 14px 4vw 20px; gap: 12px; }
  .pnav-links.open { display: flex; }
  .steps, .feats, .pfoot-in, .rform .row2 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .eq-demo { grid-template-columns: 1fr; } .op { text-align: center; }
  .b-page { height: 470px; } .fake-site { padding: 14px; } .fs-hero { display: none; }
  .b-bar { grid-template-columns: auto 1fr; } .b-tab { display: none; }
  .sec { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* Reporte público resumido */
.rep-hero { background: radial-gradient(ellipse at 70% 20%, #0F3550 0, var(--abyss) 70%); color: #fff; padding: 56px 0 40px; }
.rep-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 6px 0 4px; }
.rep-url { color: #93C5FD; text-decoration: none; }
.rep-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.rep-stats div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: 14px 16px; }
.rep-stats b { display: block; font-size: 1.6rem; }
.rep-stats span { color: #9FB5C2; font-size: .82rem; display: inline-flex; align-items: center; gap: 6px; }
.dot.g { background: #22C55E; box-shadow: none; animation: gblink 1.4s infinite; }
@keyframes gblink { 50% { opacity: .3; } }
.rep-src { color: #8BA8B6; font-size: .8rem; margin: 14px 0 0; }
.rep-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-bottom: 18px; }
.rep-card { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.rep-card h2 { font-size: 1.05rem; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; }
.bars span { flex: 1; background: linear-gradient(180deg, #3B82F6, var(--primary)); border-radius: 3px 3px 0 0; min-height: 2px; }
.bars-x { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ink2); margin-top: 6px; }
.toplist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.toplist li { display: grid; grid-template-columns: 1fr 90px 44px; gap: 10px; align-items: center; font-size: .92rem; }
.toplist i { display: block; height: 8px; border-radius: 4px; background: #0E9C88; }
.toplist b { text-align: right; }
.rep-map { height: 380px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
@media (max-width: 860px) { .rep-stats { grid-template-columns: 1fr 1fr; } .rep-grid { grid-template-columns: 1fr; } }
.gmail-tag { width: max-content; }
.logo-img { height: 34px; width: auto; max-width: 140px; object-fit: contain; border-radius: 6px; background: #fff; padding: 2px; }
.pbtn { line-height: 1.1; }
.pbtn.small { min-height: 34px; padding: 0 14px; }
.pbtn .ic { flex: none; }
.cp-head .pbtn { align-self: center; }
/* ================= Índice científico ================= */
.sc-hero { background: radial-gradient(ellipse at 80% 0, #123E5E 0, var(--abyss) 65%); color: #fff; padding: 56px 0 34px; }
.sc-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); max-width: 24ch; }
.sc-hero p { color: #C9D7E0; max-width: 70ch; }
.sc-search { display: flex; gap: 10px; margin: 22px 0 16px; max-width: 860px; }
.sc-search input { flex: 1; font: 1.05rem var(--font); padding: 15px 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: #fff; color: var(--ink); min-width: 0; }
.sc-search input:focus { outline: none; box-shadow: 0 0 0 4px rgba(96,165,250,.35); }
.sc-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.sc-quick a { color: #C9D7E0; text-decoration: none; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 5px 12px; font-size: .84rem; background: rgba(255,255,255,.05); }
.sc-quick a.on, .sc-quick a:hover { background: #fff; color: var(--primary); }
.sc-quick small { opacity: .7; margin-left: 4px; }
.sc-sec { padding-top: 34px; }
.sc-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 26px; align-items: start; }
.sc-filters { position: sticky; top: 80px; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: #fff; box-shadow: var(--shadow); }
.sc-filters h3 { font-size: .95rem; margin-bottom: 12px; }
.sc-filters form { display: grid; gap: 12px; }
.sc-filters label { display: grid; gap: 5px; font-size: .82rem; font-weight: 700; }
.sc-filters input:not([type=checkbox]), .sc-filters select { font: .92rem var(--font); padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; width: 100%; height: 40px; background: #fff; }
.sc-filters .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sc-filters .check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.sc-actions { display: flex; gap: 8px; } .sc-actions .pbtn { flex: 1; }
.sc-years { margin-top: 18px; display: grid; gap: 4px; }
.sc-years a { display: grid; grid-template-columns: 44px 1fr 40px; gap: 8px; align-items: center; text-decoration: none; color: var(--ink); font-size: .85rem; }
.sc-years i { height: 6px; border-radius: 3px; background: rgba(29,78,216,.35); }
.sc-years b { text-align: right; font-weight: 400; color: var(--ink2); }
.sc-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; margin-bottom: 12px; }
#sc-results { display: grid; gap: 14px; transition: opacity .15s; }
#sc-results.loading { opacity: .45; }
.sc-card { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; background: #fff; transition: box-shadow .2s, border-color .2s; }
.sc-card:hover { box-shadow: var(--shadow); border-color: #BFD3E6; }
.sc-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: .8rem; color: var(--ink2); }
.sc-meta span + span::before { content: "·"; margin-right: 10px; color: #A0B2BE; }
.sc-type { font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; }
.sc-type.omp { color: #7C3AED; }
.sc-card h3 { font-size: 1.12rem; margin: 6px 0 4px; line-height: 1.3; }
.sc-card h3 a { color: var(--ink); text-decoration: none; } .sc-card h3 a:hover { color: var(--primary); text-decoration: underline; }
.sc-au { margin: 0 0 6px; color: #2F4A5A; font-size: .9rem; }
mark { background: #FEF08A; color: inherit; padding: 0 2px; border-radius: 3px; }
.sc-kw { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.sc-kw a { font-size: .76rem; text-decoration: none; color: #0E7490; background: #ECFEFF; border: 1px solid #CFFAFE; padding: 2px 9px; border-radius: 999px; }
.sc-foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; font-size: .8rem; }
.sc-doi { color: #B45309; background: #FFFBEB; border: 1px solid #FDE68A; padding: 2px 9px; border-radius: 6px; text-decoration: none; font-family: Consolas, monospace; font-size: .76rem; word-break: break-all; }
.sc-fmt { font-weight: 700; font-size: .7rem; padding: 2px 8px; border-radius: 5px; color: #fff; background: #64748B; }
.sc-fmt.pdf { background: #DC2626; } .sc-fmt.html { background: #EA580C; } .sc-fmt.xml { background: #0891B2; } .sc-fmt.epub { background: #7C3AED; }
.sc-num { margin-left: auto; color: var(--ink2); } .sc-num + .sc-num { margin-left: 8px; } .sc-num b { color: var(--ink); }
.sc-num.cite b { color: #7C3AED; }
.sc-empty { border: 1px dashed var(--line); border-radius: var(--r); padding: 30px; text-align: center; color: var(--ink2); }
.sc-pages { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.sc-pages a, .sc-pages span { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.sc-pages span { background: var(--primary); color: #fff; border-color: var(--primary); }
/* Ficha de artículo */
.ar-hero { background: radial-gradient(ellipse at 80% 0, #123E5E 0, var(--abyss) 65%); color: #fff; padding: 40px 0 34px; }
.ar-hero .sc-meta { color: #9FB5C2; } .ar-hero .sc-type { color: #93C5FD; }
.ar-hero h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 10px 0; }
.ar-back { color: #93C5FD; text-decoration: none; font-size: .88rem; }
.ar-au { display: flex; gap: 6px 14px; flex-wrap: wrap; } .ar-au a { color: #E2EDF1; }
.ar-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.ar-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; align-items: start; }
.ar-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 8px; }
.ar-stats div { border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; }
.ar-stats b { display: block; font-size: 1.4rem; } .ar-stats span { font-size: .74rem; color: var(--ink2); }
.ar-stats .cite b { color: #7C3AED; }
.ar-abs { line-height: 1.75; text-align: justify; }
.ar-grid h2 { font-size: 1.1rem; margin-top: 22px; }
.ar-side { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.ar-side h3 { font-size: .95rem; margin: 6px 0 10px; }
.ar-side dl { display: grid; grid-template-columns: 70px 1fr; gap: 6px 10px; font-size: .84rem; margin: 0 0 16px; }
.ar-side dt { color: var(--ink2); } .ar-side dd { margin: 0; word-break: break-word; }
.mono { font-family: Consolas, monospace; font-size: .78rem; }
.cite-box { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.cite-box .cp-head { background: var(--soft); color: var(--ink); padding: 6px 10px; }
.cite-box p, .cite-box pre { margin: 0; padding: 10px; font-size: .8rem; white-space: pre-wrap; word-break: break-word; }
@media (max-width: 900px) { .sc-layout, .ar-grid { grid-template-columns: 1fr; } .sc-filters { position: static; } .ar-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .sc-search { flex-direction: column; } .ar-stats { grid-template-columns: 1fr 1fr; } .sc-num { margin-left: 0; } }
/* Tierra 3D de la portada */
.hero-earth { position: absolute; top: 0; bottom: 0; right: -6%; width: 62%; z-index: 1; opacity: 0; transition: opacity 1.2s ease; }
.hero-earth.earth-ready { opacity: 1; }
.hero.has-earth .hero-map { opacity: .25; }
.hero.has-earth .hero-shade { background: linear-gradient(90deg, rgba(7,23,34,.92) 0, rgba(7,23,34,.7) 34%, rgba(7,23,34,0) 58%); }
.hero.has-earth .hero-stats { margin-top: auto; }
.hero { background: radial-gradient(ellipse at 75% 45%, #0E2F4A 0, #061420 55%, #030B12 100%); }
@media (max-width: 980px) { .hero-earth { width: 100%; right: 0; opacity: .55; } .hero-earth.earth-ready { opacity: .55; } .hero.has-earth .hero-shade { background: rgba(7,23,34,.55); } }
/* Mapamundi de fondo en cabeceras */
.rep-hero, .sc-hero, .ar-hero { position: relative; overflow: hidden; }
.rep-hero > .wrap, .sc-hero > .wrap, .ar-hero > .wrap { position: relative; z-index: 1; }
.bg-dotmap { position: absolute; inset: 0; z-index: 0; opacity: .9; pointer-events: none; mask-image: linear-gradient(90deg, rgba(0,0,0,.35), #000 45%); -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.35), #000 45%); }
.toppg { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.toppg li { display: grid; grid-template-columns: minmax(0, 1fr) 120px 56px; gap: 12px; align-items: center; }
.toppg span { min-width: 0; display: grid; } .toppg span b { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toppg small { color: var(--ink2); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toppg i { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #3B82F6, var(--primary)); }
.toppg > li > b { text-align: right; }
@media (max-width: 600px) { .toppg li { grid-template-columns: 1fr 60px; } .toppg i { display: none; } }
/* Índice: presentación mejorada */
.sc-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 170px)); gap: 10px; margin: 18px 0 4px; }
.sc-kpis div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 10px 14px; backdrop-filter: blur(4px); }
.sc-kpis b { display: block; font-size: 1.35rem; } .sc-kpis span { font-size: .76rem; color: #9FB5C2; }
.sc-src-sec { padding: 34px 0 0; }
.sc-src-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.sc-src-head h2 { font-size: 1.3rem; margin: 0; }
.sc-src { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.sc-src-card { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); background: #fff; transition: transform .15s, box-shadow .2s; }
.sc-src-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sc-av { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, #1D4ED8, #0E7490); color: #fff; font-weight: 700; flex: none; }
.sc-src-card.omp .sc-av, .sc-av.omp { background: linear-gradient(135deg, #7C3AED, #DB2777); }
.sc-av.sm { width: 40px; height: 40px; border-radius: 10px; font-size: .85rem; }
.sc-src-t { min-width: 0; display: grid; } .sc-src-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sc-src-t small { color: var(--ink2); font-size: .76rem; }
.sc-src-n { text-align: right; } .sc-src-n b { display: block; font-size: 1.15rem; color: var(--primary); } .sc-src-n small { font-size: .7rem; color: var(--ink2); }
.sc-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; border-left: 4px solid #1D4ED8; }
.sc-card:has(.sc-av.omp) { border-left-color: #7C3AED; }
.sc-body { min-width: 0; }
@media (max-width: 700px) { .sc-kpis { grid-template-columns: 1fr 1fr; } .sc-card { grid-template-columns: 1fr; } .sc-card .sc-av { display: none; } }
.hero.has-earth .hs { background: rgba(6,20,32,.78); }
.fi { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); vertical-align: -1px; }
/* v1.5: navegación en una sola línea, azules más claros con degradados, planeta grande con luz de sol */
.wrap.wide { width: min(1440px, 95vw); }
.pnav-links { gap: 16px; }
.pnav-links a { white-space: nowrap; }
.pnav-links a:not(.pbtn) { font-size: .9rem; }
.logo span { white-space: nowrap; }
@media (max-width: 1240px) {
  .pnav-burger { display: block; }
  .pnav-links { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: linear-gradient(180deg, #0B2A52, #071B33); padding: 14px 4vw 20px; gap: 12px; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
  .pnav-links.open { display: flex; }
}
.pnav { background: linear-gradient(90deg, rgba(8,33,66,.92), rgba(12,52,104,.88)); }
.hero { background: radial-gradient(ellipse at 78% 50%, #2E6FD8 0%, #1A4C9C 22%, #0E2F63 46%, #081C3D 72%, #050F22 100%); }
.hero::before { content: ""; position: absolute; z-index: 0; right: 4%; top: 50%; width: 70vmin; height: 70vmin; transform: translate(10%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,236,190,.55) 0%, rgba(255,200,120,.22) 28%, rgba(96,165,250,.12) 52%, rgba(0,0,0,0) 70%); filter: blur(10px); pointer-events: none; animation: sunpulse 8s ease-in-out infinite; }
@keyframes sunpulse { 50% { opacity: .75; transform: translate(10%, -50%) scale(1.06); } }
.hero-earth { right: -10%; width: 72%; }
.hero.has-earth .hero-shade { background: linear-gradient(90deg, rgba(8,28,61,.92) 0, rgba(8,28,61,.66) 32%, rgba(8,28,61,0) 55%); }
.sec.alt { background: linear-gradient(180deg, #EEF5FF 0%, #F6FAFF 100%); }
.cta { background: linear-gradient(120deg, #1D4ED8 0%, #2563EB 40%, #0EA5E9 100%); }
.pbtn { background: linear-gradient(135deg, #2563EB, #1D4ED8); border-color: #1D4ED8; }
.pbtn:hover { background: linear-gradient(135deg, #1D4ED8, #1E40AF); }
.pbtn.ghost { background: rgba(255,255,255,.1); } .pbtn.light { background: #fff; } .pbtn.outline { background: transparent; }
.steps .n, .feat-ic { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.sc-hero, .ar-hero, .rep-hero { background: radial-gradient(ellipse at 80% 0, #2D6CD3 0, #123E7E 40%, #081C3D 100%); }
.auth-side { position: relative; overflow: hidden; background: radial-gradient(ellipse at 30% 20%, #2D6CD3 0, #123E7E 45%, #081C3D 100%); }
.auth-side .auth-in { position: relative; z-index: 1; }
.auth-main { background: linear-gradient(160deg, #EEF5FF, #F8FBFF); }
@media (max-width: 980px) { .hero::before { right: 50%; transform: translate(50%, -50%); } .hero-earth { right: 0; width: 100%; } }
.feat-ic { color: #fff !important; }
.sc-cover { width: 64px; height: 88px; object-fit: cover; border-radius: 6px; box-shadow: 0 4px 12px rgba(11,27,38,.18); background: #fff; }
.sc-cover.logo { height: 64px; object-fit: contain; padding: 4px; border: 1px solid var(--line); }
.sc-doi img, .sc-oa img { vertical-align: -3px; }
.sc-doi { display: inline-flex; align-items: center; gap: 5px; }
.sc-oa { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; color: #C2410C; background: #FFF7ED; border: 1px solid #FED7AA; padding: 2px 8px; border-radius: 6px; }
.sc-isbn { font-size: .74rem; color: var(--ink2); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; font-family: Consolas, monospace; }
.ar-top { display: flex; gap: 26px; align-items: flex-start; margin-top: 10px; }
.ar-cover { width: 170px; border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.4); flex: none; background: #fff; }
.ar-top-t { min-width: 0; flex: 1; }
.ar-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ar-badges .sc-doi { background: #fff; }
@media (max-width: 700px) { .ar-top { flex-direction: column; } .ar-cover { width: 130px; } }
/* Página de fuente y directorio */
.src-hero { position: relative; overflow: hidden; color: #fff; padding: 46px 0 36px; background: radial-gradient(ellipse at 80% 0, #2D6CD3 0, #123E7E 42%, #081C3D 100%); }
.src-hero > .wrap { position: relative; z-index: 1; }
.src-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 26px; align-items: center; }
.src-logo img { max-width: 220px; max-height: 110px; background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.src-logo .sc-av { width: 90px; height: 90px; font-size: 1.6rem; border-radius: 18px; }
.src-info h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 4px 0; }
.src-meta { color: #D6E6FA; margin: 0 0 10px; } .src-meta a { color: #BFDBFE; }
.src-tags, .dir-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.src-tags span { font-size: .78rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 3px 10px; border-radius: 999px; }
.src-tags .ix, .dir-tags .ix { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.src-kpis { display: grid; grid-template-columns: repeat(2, 120px); gap: 10px; }
.src-kpis div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 10px 12px; }
.src-kpis b { display: block; font-size: 1.3rem; } .src-kpis span { font-size: .74rem; color: #D6E6FA; display: inline-flex; gap: 6px; align-items: center; }
.src-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.src-search { display: flex; gap: 8px; } .src-search input { font: .92rem var(--font); padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; min-width: 260px; }
.src-list { display: grid; gap: 14px; }
.dir-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; } .dir-filter select { font: .95rem var(--font); padding: 10px 12px; border-radius: 10px; border: 0; min-width: 220px; }
.dir-country { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin: 26px 0 12px; } .dir-country .fi { font-size: 1.4rem; } .dir-country small { color: var(--ink2); font-weight: 400; font-size: .9rem; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
.dir-card { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); background: #fff; transition: transform .15s, box-shadow .2s; }
.dir-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.dir-logo { width: 84px; height: 64px; display: grid; place-items: center; } .dir-logo img { max-width: 84px; max-height: 64px; object-fit: contain; }
.dir-body { min-width: 0; display: grid; gap: 3px; } .dir-body b { font-size: 1rem; } .dir-body small { color: var(--ink2); font-size: .78rem; }
.dir-tags span { font-size: .7rem; border: 1px solid var(--line); padding: 1px 8px; border-radius: 999px; color: var(--ink2); }
.dir-n { text-align: right; } .dir-n b { display: block; font-size: 1.2rem; color: var(--primary); } .dir-n small { font-size: .7rem; color: var(--ink2); }
@media (max-width: 900px) { .src-top { grid-template-columns: 1fr; } .src-charts { grid-template-columns: 1fr; } .dir-grid { grid-template-columns: 1fr; } }
.ar-chart { position: relative; height: 260px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.chbox { position: relative; height: 260px; }
.sc-au a { color: #1E3A5F; text-decoration: none; border-bottom: 1px dotted #93C5FD; } .sc-au a:hover { color: var(--primary); }
/* Búsqueda del índice a ancho completo */
.sc-hero .sc-search { max-width: none; width: 100%; }
.sc-hero .sc-search input { padding: 18px 22px; font-size: 1.15rem; border-radius: 14px; }
.sc-hero .sc-search .pbtn { padding: 0 32px; font-size: 1.05rem; border-radius: 14px; }
.issues { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.issue { display: grid; gap: 6px; text-decoration: none; color: var(--ink); padding: 10px; border-radius: 14px; border: 1px solid transparent; transition: transform .15s, box-shadow .2s; }
.issue:hover, .issue.on { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line); background: #fff; }
.issue img, .issue-ph { width: 100%; aspect-ratio: 3 / 4.2; object-fit: cover; border-radius: 10px; box-shadow: 0 10px 24px rgba(11,27,38,.18); }
.issue-ph { display: grid; place-items: center; text-align: center; padding: 12px; color: #fff; font-weight: 700; background: linear-gradient(160deg, #2563EB, #0E7490); }
.issue b { font-size: 1rem; } .issue small { color: var(--ink2); }
.ods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ods { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-content: start; min-height: 150px; padding: 14px; border-radius: 6px; background: var(--c); color: #fff; text-decoration: none; overflow: hidden; transition: transform .15s; }
.ods:hover { transform: translateY(-3px) scale(1.01); }
.ods-n { font-size: 2.6rem; font-weight: 700; line-height: .9; } .ods-t { font-size: .78rem; font-weight: 700; line-height: 1.15; align-self: center; }
.ods-v { grid-column: 1 / -1; font-size: .78rem; margin-top: auto; } .ods-v b { font-size: 1.15rem; }
.ods i { position: absolute; left: 0; bottom: 0; height: 5px; background: rgba(255,255,255,.75); }
/* Planeta en modo horizonte (lado a lado, mitad superior girando) */
.hero.has-earth .hero-earth { left: 0; right: 0; width: 100%; top: 0; bottom: 0; }
.hero.has-earth .hero-shade { background: linear-gradient(180deg, rgba(8,28,61,.15) 0, rgba(8,28,61,.35) 40%, rgba(8,28,61,0) 70%), linear-gradient(90deg, rgba(8,28,61,.75) 0, rgba(8,28,61,.2) 45%, rgba(8,28,61,0) 70%); }
.hero::before { right: 50%; top: 92%; width: 120vmin; height: 70vmin; transform: translate(50%, -50%); background: radial-gradient(ellipse, rgba(255,236,190,.6) 0%, rgba(255,190,110,.25) 30%, rgba(96,165,250,.14) 55%, rgba(0,0,0,0) 72%); }
@keyframes sunpulse { 50% { opacity: .75; transform: translate(50%, -50%) scale(1.06); } }
.hero.has-earth .hero-in { align-items: start; padding-top: 56px; padding-bottom: 38vh; }
.hero { min-height: min(900px, 96vh); }
/* Íconos de funciones */
.feat-ic svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feats article:hover .feat-ic { transform: rotate(-6deg) scale(1.08); } .feat-ic { transition: transform .2s; box-shadow: 0 10px 22px rgba(37,99,235,.3); }
/* Llamado final animado */
.cta { position: relative; overflow: hidden; background: linear-gradient(120deg, #1D4ED8, #2563EB, #0EA5E9, #1D4ED8); background-size: 300% 300%; animation: ctaflow 12s ease infinite; }
.cta > .wrap { position: relative; z-index: 1; } .cta-map { position: absolute; inset: 0; opacity: .6; }
@keyframes ctaflow { 50% { background-position: 100% 50%; } }
@media (max-width: 980px) { .hero.has-earth .hero-in { padding-bottom: 30vh; } }
.sc-isbn { display: inline-flex; align-items: center; gap: 5px; background: #F0FDF4; border-color: #BBF7D0; color: #166534; }
.idtag { display: inline-flex; align-items: center; gap: 5px; } .idtag img { vertical-align: -2px; background: #fff; border-radius: 3px; }
/* ===== Interactividad ===== */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rv.rv-in { opacity: 1; transform: none; }
.read-bar { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 2000; background: linear-gradient(90deg, #22D3EE, #3B82F6, #A78BFA); transform-origin: left; transform: scaleX(0); }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 1500; width: 44px; height: 44px; border-radius: 50%; border: 0; background: linear-gradient(135deg, #3B82F6, #1D4ED8); color: #fff; font-size: 1.2rem; cursor: pointer; box-shadow: 0 10px 24px rgba(29,78,216,.4); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.pnav { transition: background .3s, box-shadow .3s; } .pnav.scrolled { box-shadow: 0 8px 28px rgba(3,12,28,.35); }
.pbtn { position: relative; overflow: hidden; }
.ripple { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: rgba(255,255,255,.55); animation: ripple .6s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(30); opacity: 0; } }
.feats article, .dir-card, .sc-src-card, .issue, .steps li { transition: transform .18s ease, box-shadow .2s ease; will-change: transform; background-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(59,130,246,.08), transparent 55%); }
.feats article:hover, .steps li:hover { box-shadow: 0 18px 40px rgba(29,78,216,.14); }
.hero h1 .grad { background-size: 200% auto; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.pill { animation: floaty 4s ease-in-out infinite; } @keyframes floaty { 50% { transform: translateY(-4px); } }
.sc-search input { transition: box-shadow .2s, transform .2s; } .sc-search input:focus { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } .hero h1 .grad, .pill { animation: none; } }
.sc-bnp { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; color: #7F1D1D; background: #FEF2F2; border: 1px solid #FECACA; padding: 2px 8px; border-radius: 6px; text-decoration: none; }
html { background: #081C3D; }
.pnav { padding-top: env(safe-area-inset-top); }
/* Sliders */
.slider-wrap { position: relative; }
.auto-slider { display: grid !important; grid-auto-flow: column; grid-template-columns: none !important; grid-auto-columns: minmax(200px, 220px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 4px 14px; gap: 18px; }
.auto-slider::-webkit-scrollbar { display: none; }
.auto-slider > * { scroll-snap-align: start; }
.sc-src.auto-slider { grid-auto-columns: minmax(300px, 340px); }
.sl-btn { position: absolute; top: 40%; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); box-shadow: 0 6px 18px rgba(11,27,38,.2); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--primary); }
.sl-btn.prev { left: -8px; } .sl-btn.next { right: -8px; } .sl-btn:hover { background: var(--primary); color: #fff; }
/* ===== Portada estilo "analítica global en tiempo real" ===== */
.nic { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pnav-links a:not(.pbtn) { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 10px; transition: background .15s; }
.pnav-links a:not(.pbtn):hover, .pnav-links a.nav-home { background: rgba(59,130,246,.18); color: #fff; }
.pnav-links { gap: 4px; }
.hero.has-earth .hero-earth { left: auto; right: -14%; width: 74%; }
.hero::before { right: 6%; left: auto; top: 18%; width: 46vmin; height: 46vmin; transform: translate(0, -50%); background: radial-gradient(circle, rgba(255,250,235,.95) 0%, rgba(255,214,140,.5) 12%, rgba(120,180,255,.18) 40%, rgba(0,0,0,0) 68%); filter: blur(4px); }
@keyframes sunpulse { 50% { opacity: .8; transform: translate(0, -50%) scale(1.08); } }
.hero.has-earth .hero-shade { background: linear-gradient(90deg, rgba(5,16,38,.95) 0, rgba(5,16,38,.75) 34%, rgba(5,16,38,0) 58%); }
.hero.has-earth .hero-in { grid-template-columns: minmax(0, 1fr); padding-bottom: 60px; padding-top: 70px; }
.hero.has-earth .hero-copy { max-width: 760px; }
.hero.has-earth .hero-stats { grid-template-columns: repeat(3, minmax(0, 220px)); gap: 16px; margin-top: 10px; max-width: 760px; }
.hs { position: relative; overflow: hidden; padding: 16px 18px 46px; background: rgba(10,30,62,.72); border: 1px solid rgba(120,170,255,.22); }
.hs-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: color-mix(in srgb, var(--c) 18%, transparent); margin-bottom: 10px; }
.hs-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hs-spark { position: absolute; left: 18px; right: 18px; bottom: 12px; height: 26px; background: repeating-linear-gradient(90deg, var(--c) 0 6px, transparent 6px 10px); -webkit-mask: linear-gradient(0deg, #000, transparent); mask: linear-gradient(0deg, #000, transparent); clip-path: polygon(0 70%, 8% 40%, 16% 60%, 24% 20%, 32% 50%, 40% 10%, 48% 45%, 56% 25%, 64% 55%, 72% 30%, 80% 60%, 88% 35%, 100% 50%, 100% 100%, 0 100%); opacity: .8; animation: spark 3s ease-in-out infinite alternate; }
@keyframes spark { to { opacity: .45; } }
.hero .hs-note { grid-column: 1 / -1; }
@media (max-width: 980px) { .hero.has-earth .hero-earth { right: -30%; width: 120%; opacity: .5; } .hero.has-earth .hero-stats { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 600px) { .hero.has-earth .hero-stats { grid-template-columns: 1fr; } }
.pnav .wrap { width: min(1680px, 97vw); }
.pnav-links a:not(.pbtn) { font-size: .86rem; padding: 7px 8px; }
.logo span { font-size: .92rem; }
.hero.has-earth .hero-earth { right: -6%; width: 64%; }
@media (max-width: 1440px) { .pnav-links a:not(.pbtn) .nic { display: none; } }
/* v1.8: espacios más compactos, logos de fuentes, celular */
.sec { padding: 50px 0; }
.sec-head { margin-bottom: 22px; }
.sc-src-logo { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); padding: 3px; }
.q-logo { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; background: #fff; vertical-align: -4px; margin-right: 4px; }
@media (max-width: 760px) {
  .sec { padding: 32px 0; }
  .sc-hero .sc-search { flex-direction: row; gap: 8px; }
  .sc-hero .sc-search input { padding: 13px 14px; font-size: 1rem; }
  .sc-hero .sc-search .pbtn { padding: 0 16px; font-size: .95rem; min-height: 48px; flex: none; }
  .hero::before { display: none; }
  .hero.has-earth .hero-earth { top: auto; bottom: -22vh; height: 62vh; left: -10%; right: auto; width: 120%; opacity: .55; }
  .hero.has-earth .hero-shade { background: linear-gradient(180deg, rgba(5,16,38,.9) 0, rgba(5,16,38,.6) 55%, rgba(5,16,38,.2) 100%); }
  .hero.has-earth .hero-in { padding-bottom: 30px; }
}

/* v1.9: el planeta se funde con el fondo (sin borde vertical) y leyenda de colores */
.hero-earth canvas { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%); mask-image: linear-gradient(90deg, transparent 0, #000 16%); }
@media (max-width: 980px) { .hero-earth canvas { -webkit-mask-image: none; mask-image: none; } }
.earth-legend { position: absolute; right: 24px; bottom: 18px; z-index: 3; display: flex; gap: 14px; flex-wrap: wrap; padding: 7px 12px; border-radius: 999px; background: rgba(7,23,34,.55); color: #E2E8F0; font: 12px Arial, Helvetica, sans-serif; backdrop-filter: blur(6px); }
.earth-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; box-shadow: 0 0 8px currentColor; }
@media (max-width: 760px) { .earth-legend { left: 12px; right: 12px; bottom: 10px; justify-content: center; font-size: 11px; gap: 10px; } }
/* v1.9: predicción propia de cada fuente */
.fc-card { grid-column: 1 / -1; }
.fc-head { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.fc-head h2 { margin-bottom: 4px; }
.fc-kpis { display: flex; gap: 10px; flex-wrap: wrap; }
.fc-kpis div { min-width: 120px; padding: 10px 14px; border-radius: 12px; background: linear-gradient(135deg, #EFF6FF, #F5F3FF); border: 1px solid #DBEAFE; }
.fc-kpis b { display: block; font: 700 1.35rem/1.15 Arial, Helvetica, sans-serif; color: #1E3A8A; font-variant-numeric: tabular-nums; }
.fc-kpis b.up { color: #15803D; } .fc-kpis b.down { color: #B91C1C; }
.fc-kpis span { font-size: .74rem; color: #475569; }
.chbox.tall { height: 340px; }
@media (max-width: 760px) { .fc-kpis div { min-width: 0; flex: 1 1 45%; } .chbox.tall { height: 280px; } }
/* v1.9: /ods — selector de fuentes como carrusel ancho con logos */
.ods-pick { background: linear-gradient(180deg, #EEF4FF, #fff); padding: 26px 0 8px; border-bottom: 1px solid #E2E8F0; }
.ods-pick-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ods-pick-head h2 { margin: 0; font-size: 1.25rem; } .ods-pick-head span { color: #475569; font-size: .92rem; }
.ods-src.auto-slider { grid-auto-columns: minmax(230px, 250px); }
.ods-sc { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 18px 14px 16px; border-radius: 16px; background: #fff; border: 2px solid #E2E8F0;
  color: #0F172A; text-decoration: none; box-shadow: 0 6px 18px rgba(15,23,42,.06); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; min-height: 168px; }
.ods-sc:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(37,99,235,.16); border-color: #93C5FD; }
.ods-sc.on { border-color: #2563EB; box-shadow: 0 0 0 4px rgba(37,99,235,.15), 0 12px 26px rgba(37,99,235,.18); }
.ods-sc-logo { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 14px; background: #F8FAFC; border: 1px solid #E2E8F0; overflow: hidden; flex: none; }
.ods-sc-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.ods-sc-logo .sc-av { width: 60px; height: 60px; font-size: 1.2rem; }
.ods-sc.all .ods-sc-logo { background: linear-gradient(135deg, #2563EB, #0EA5E9); color: #fff; border: 0; }
.ods-sc b { font-size: .95rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ods-sc small { color: #64748B; font-size: .78rem; }
@media (max-width: 760px) { .ods-src.auto-slider { grid-auto-columns: minmax(170px, 190px); } .ods-sc { min-height: 150px; padding: 14px 10px; } .ods-sc-logo { width: 64px; height: 64px; } }
.ods-find { display: flex; align-items: center; gap: 10px; max-width: 560px; margin: 0 0 12px; padding: 0 14px; border-radius: 12px; background: #fff; border: 1.5px solid #CBD5E1; color: #64748B; transition: border-color .15s, box-shadow .15s; }
.ods-find:focus-within { border-color: #2563EB; box-shadow: 0 0 0 4px rgba(37,99,235,.14); }
.ods-find input { flex: 1; border: 0; outline: 0; background: transparent; padding: 12px 0; font: 1rem Arial, Helvetica, sans-serif; color: #0F172A; min-width: 0; }
.ods-find span { white-space: nowrap; }
.ods-sc[hidden] { display: none !important; }
/* v1.10: nube de palabras clave en el encabezado del Índice (solo en pantallas anchas; no tapa el buscador) */
.sc-hero { position: relative; }
.sc-hero .wrap { position: relative; z-index: 2; }
.kw-cloud { position: absolute; z-index: 1; top: 34px; right: 3%; width: min(44%, 660px); height: 330px; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.kw-cloud.ready { opacity: 1; }
.kw-cloud a { position: absolute; left: 0; top: 0; white-space: nowrap; font-family: Arial, Helvetica, sans-serif; line-height: 1; text-decoration: none; pointer-events: auto;
  color: rgba(236, 244, 255, var(--o, .6)); text-shadow: 0 1px 8px rgba(8, 20, 45, .45); transition: color .2s ease, text-shadow .2s ease;
  animation: kwFloat var(--d, 7s) ease-in-out var(--dl, 0s) infinite alternate; }
.kw-cloud a:hover, .kw-cloud a:focus-visible { color: #fff; text-shadow: 0 0 14px rgba(147, 197, 253, .9); outline: none; }
@keyframes kwFloat { from { translate: 0 0; } to { translate: var(--fx, 0px) var(--fy, -5px); } }
@media (max-width: 1180px) { .kw-cloud { display: none; } }
@media (prefers-reduced-motion: reduce) { .kw-cloud a { animation: none; } }
/* v1.10: pie de página centrado (logo + texto breve) */
.pfoot.pfoot-c { padding: 34px 0 30px; text-align: center; background: radial-gradient(ellipse at 50% 0, #0F2A47 0, var(--abyss) 70%); border-top: 1px solid rgba(147,197,253,.12); }
.pfoot-c .pfoot-logo { display: inline-flex; align-items: center; gap: 10px; margin: 0 auto 8px; color: #fff; text-decoration: none; }
.pfoot-c .pfoot-logo img { height: 34px; width: auto; max-width: 160px; object-fit: contain; }
.pfoot-c .pfoot-logo b { display: inline; margin: 0; font-size: 1.02rem; color: #fff; }
.pfoot-c .pfoot-logo:hover b { color: #BFDBFE; }
.pfoot-c p { margin: 0 auto; max-width: 90ch; color: #94A3B8; font-size: .86rem; }
/* v1.10: llamado final más oscuro y con más movimiento (auroras, barrido de luz y red animada) */
.cta { background: linear-gradient(125deg, #020617 0%, #0B1F44 35%, #10306B 65%, #050B1E 100%) !important; background-size: 260% 260% !important; animation: ctaflow 14s ease infinite !important; padding: 86px 0 !important; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: -40%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(37,99,235,.55), transparent 70%) 18% 30% / 46% 46% no-repeat,
              radial-gradient(closest-side, rgba(14,165,233,.45), transparent 70%) 78% 64% / 42% 42% no-repeat,
              radial-gradient(closest-side, rgba(124,58,237,.38), transparent 70%) 55% 12% / 36% 36% no-repeat;
  filter: blur(18px); animation: ctaAurora 16s ease-in-out infinite alternate; }
.cta::after { content: ""; position: absolute; top: 0; bottom: 0; width: 38%; left: -45%; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(147,197,253,.16), transparent); transform: skewX(-18deg); animation: ctaSweep 7s ease-in-out infinite; }
@keyframes ctaAurora { 0% { transform: translate(0, 0) rotate(0deg) scale(1); } 50% { transform: translate(4%, -3%) rotate(8deg) scale(1.08); } 100% { transform: translate(-5%, 4%) rotate(-6deg) scale(.96); } }
@keyframes ctaSweep { 0% { left: -45%; } 60%, 100% { left: 120%; } }
.cta .cta-map { opacity: .35 !important; z-index: 0; }
.cta-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.cta h2 { text-shadow: 0 4px 30px rgba(37,99,235,.55); }
.cta .pbtn.light { box-shadow: 0 0 0 0 rgba(147,197,253,.6); animation: ctaPulse 2.6s ease-out infinite; }
@keyframes ctaPulse { 0% { box-shadow: 0 0 0 0 rgba(147,197,253,.55); } 80%, 100% { box-shadow: 0 0 0 18px rgba(147,197,253,0); } }
@media (prefers-reduced-motion: reduce) { .cta, .cta::before, .cta::after, .cta .pbtn.light { animation: none !important; } }
