:root{
  --bg:#020817;
  --bg-2:#040d1f;
  --panel:#071326;
  --panel-2:#0b1830;
  --line:rgba(150,178,225,.14);
  --line-strong:rgba(104,145,224,.30);
  --text:#f7f9ff;
  --muted:#9aa9c2;
  --blue:#4d7cff;
  --blue-2:#2f6df6;
  --cyan:#75c9ff;
  --green:#55e7a3;
  --shadow:0 24px 70px rgba(0,0,0,.32);
  --radius:22px;
  --shell:1240px;
  --hero-image:none;
  --community-image:none;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:
    radial-gradient(circle at 85% 5%,rgba(37,99,235,.10),transparent 28rem),
    linear-gradient(180deg,#020817 0%,#030a17 100%);
  color:var(--text);
  font-family:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.012) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.012) 1px,transparent 1px);
  background-size:48px 48px;
  mask-image:linear-gradient(to bottom,black,transparent 70%);
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button{color:inherit}
.shell{width:min(calc(100% - 48px),var(--shell));margin-inline:auto}
.section{padding:56px 0}
.sr-only{
  position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0
}
.skip-link{
  position:fixed;left:16px;top:10px;z-index:2000;transform:translateY(-150%);
  background:#fff;color:#071326;padding:9px 14px;border-radius:10px;font-weight:800
}
.skip-link:focus{transform:none}
.eyebrow{
  display:inline-flex;
  color:#7ba5ff;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}

/* HEADER */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  border-bottom:1px solid rgba(117,149,215,.12);
  background:
    linear-gradient(180deg,rgba(2,8,23,.96),rgba(2,8,23,.88));
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  box-shadow:0 1px 0 rgba(255,255,255,.018);
  transition:
    border-color .22s ease,
    box-shadow .22s ease,
    background .22s ease
}

.site-header.scrolled{
  border-bottom-color:rgba(118,157,238,.20);
  background:rgba(2,8,23,.94);
  box-shadow:0 14px 38px rgba(0,0,0,.30)
}

.header-inner{
  min-height:112px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px
}

/* LOGO
   azul.png es cuadrado. Este encuadre recorta visualmente la zona central
   donde está la marca para que el logotipo se vea notablemente más grande.
*/
.brand{
  position:relative;
  width:330px;
  height:104px;
  flex:0 0 330px;
  display:flex;
  align-items:center;
  overflow:hidden;
  border-radius:12px
}

.brand img{
  display:block;
  width:315px;
  height:102px;
  max-width:none;
  max-height:none;
  object-fit:cover;
  object-position:center 50%;
  border-radius:0;
  filter:saturate(1.08) contrast(1.04);
  transition:transform .22s ease,filter .22s ease
}

.brand:hover img{
  transform:none;
  filter:saturate(1.12) brightness(1.05)
}

.desktop-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:32px;
  margin-left:auto
}

.desktop-nav a{
  position:relative;
  min-height:112px;
  display:flex;
  align-items:center;
  padding:0;
  color:#c8d2e5;
  font-size:.92rem;
  font-weight:650;
  white-space:nowrap;
  transition:color .2s ease,transform .2s ease
}

.desktop-nav a:hover{
  color:#fff;
  transform:translateY(-1px)
}

.desktop-nav a.active{
  color:#fff
}

.desktop-nav a::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:23px;
  width:0;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--blue),var(--cyan));
  box-shadow:0 0 12px rgba(77,124,255,.45);
  transform:translateX(-50%);
  transition:width .22s ease
}

.desktop-nav a:hover::after{
  width:42%
}

.desktop-nav a.active::after{
  width:100%
}

.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto
}

.icon-button{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border:1px solid rgba(133,161,221,.18);
  border-radius:50%;
  background:rgba(255,255,255,.025);
  color:#edf3ff;
  cursor:pointer;
  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease
}

.icon-button:hover{
  transform:translateY(-2px);
  border-color:rgba(103,148,255,.48);
  background:rgba(77,124,255,.11);
  box-shadow:0 8px 22px rgba(0,0,0,.18),0 0 20px rgba(77,124,255,.08)
}

.menu-button{display:none}

.mobile-panel{
  display:none;
  border-top:1px solid rgba(116,148,215,.14);
  background:rgba(3,11,27,.98);
  box-shadow:0 18px 34px rgba(0,0,0,.28)
}

.mobile-panel.open{display:block}

.mobile-panel-inner{
  padding:12px 0 20px;
  display:grid;
  gap:3px
}

.mobile-panel a{
  position:relative;
  padding:13px 12px;
  border-radius:10px;
  color:#d8e1f1;
  font-size:.88rem;
  font-weight:650;
  border-bottom:0;
  transition:background .18s ease,color .18s ease,padding-left .18s ease
}

.mobile-panel a:hover,
.mobile-panel a.active{
  color:#fff;
  padding-left:16px;
  background:rgba(77,124,255,.10)
}

.mobile-panel a.active::before{
  content:"";
  position:absolute;
  left:0;
  top:11px;
  bottom:11px;
  width:3px;
  border-radius:999px;
  background:linear-gradient(180deg,var(--blue),var(--cyan))
}

/* HERO */
.hero{
  position:relative;
  isolation:isolate;
  min-height:580px;
  overflow:hidden;
  border-bottom:1px solid var(--line);
  background:
    linear-gradient(90deg,rgba(2,8,23,.97) 0%,rgba(2,8,23,.76) 43%,rgba(2,8,23,.28) 72%,rgba(2,8,23,.78) 100%),
    linear-gradient(180deg,transparent 48%,rgba(2,8,23,.94) 100%),
    var(--hero-image),
    radial-gradient(circle at 72% 50%,rgba(47,109,246,.32),transparent 32rem),
    linear-gradient(135deg,#061126 0%,#0b2447 50%,#06101f 100%);
  background-size:cover;
  background-position:center
}
.hero::after{
  content:"";
  position:absolute;inset:0;z-index:-1;
  background:
    linear-gradient(90deg,transparent 49.8%,rgba(133,182,255,.12) 50%,transparent 50.2%),
    linear-gradient(0deg,transparent 49.8%,rgba(133,182,255,.08) 50%,transparent 50.2%);
  background-size:180px 180px;
  opacity:.24
}
.hero-grid{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);
  align-items:center;
  min-height:580px;
  gap:60px
}
.hero-copy{max-width:700px;padding:48px 0}
.hero-copy h1{
  margin:18px 0 18px;
  max-width:760px;
  font-size:clamp(2.5rem,5vw,5rem);
  line-height:1.02;
  letter-spacing:-.045em
}
.hero-copy h1::first-letter{color:#fff}
.hero-copy p{max-width:660px;margin:0;color:#bdc8da;font-size:1.08rem}
.hero-actions{display:flex;align-items:center;gap:14px;margin-top:30px;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  min-height:48px;padding:0 20px;border-radius:14px;
  font-weight:800;font-size:.9rem;border:1px solid transparent;transition:.2s ease
}
.btn-primary{
  background:linear-gradient(135deg,#4d7cff,#2e6cf6);
  color:#fff;
  box-shadow:0 12px 30px rgba(49,103,246,.32)
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(49,103,246,.42)}
.btn-secondary{
  background:rgba(4,13,31,.58);
  border-color:rgba(206,221,250,.42);
  color:#fff
}
.btn-secondary:hover{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.68)}
.hero-radar{
  position:absolute;
  width:520px;height:520px;
  left:-155px;top:-120px;
  border:1px solid rgba(78,129,246,.12);
  border-radius:50%;
  box-shadow:
    0 0 0 70px rgba(78,129,246,.045),
    0 0 0 140px rgba(78,129,246,.03),
    0 0 0 210px rgba(78,129,246,.02)
}
/* CATEGORIES */
.categories-section{
  padding-top:38px;
  padding-bottom:22px
}
.categories-layout{
  display:grid;
  grid-template-columns:minmax(190px,225px) minmax(0,1fr);
  gap:28px;
  align-items:start;
  padding-bottom:28px;
  border-bottom:1px solid var(--line)
}
.categories-section .section-intro{padding-top:8px}
.categories-section .section-intro h2{
  margin-top:8px;
  font-size:clamp(1.55rem,2.3vw,2.18rem);
  line-height:1.06
}
.categories-section .section-intro p{
  max-width:220px;
  margin:12px 0 0;
  color:#7f90ad;
  font-size:.72rem;
  line-height:1.58
}
.category-rail{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
  align-items:stretch
}
.category-card{
  position:relative;
  isolation:isolate;
  min-width:0;
  min-height:128px;
  padding:14px 13px 13px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  text-align:left;
  overflow:hidden;
  border:1px solid rgba(116,142,196,.20);
  border-radius:16px;
  background:
    radial-gradient(circle at 0 0,rgba(86,126,255,.085),transparent 46%),
    linear-gradient(160deg,rgba(255,255,255,.038),rgba(255,255,255,.012)),
    #071225;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 10px 26px rgba(0,0,0,.11);
  transition:border-color .22s ease,transform .22s ease,background .22s ease,box-shadow .22s ease
}
.category-card::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  opacity:0;
  background:linear-gradient(135deg,rgba(78,124,255,.14),transparent 52%);
  transition:opacity .22s ease
}
.category-card::after{
  content:"";
  position:absolute;
  left:13px;
  right:13px;
  bottom:0;
  height:2px;
  border-radius:10px 10px 0 0;
  opacity:0;
  background:linear-gradient(90deg,transparent,#5f85ff,#72d7ff,transparent);
  box-shadow:0 0 12px rgba(82,135,255,.65);
  transform:scaleX(.55);
  transition:.22s ease
}
.category-card:hover,.category-card.active{
  transform:translateY(-3px);
  border-color:rgba(101,145,255,.48);
  background:
    radial-gradient(circle at 0 0,rgba(77,124,255,.16),transparent 48%),
    linear-gradient(160deg,rgba(255,255,255,.048),rgba(255,255,255,.014)),
    #08162c;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 14px 32px rgba(0,0,0,.18),
    0 0 0 1px rgba(75,122,255,.04)
}
.category-card:hover::before,.category-card.active::before,
.category-card:hover::after,.category-card.active::after{opacity:1}
.category-card:hover::after,.category-card.active::after{transform:scaleX(1)}
.category-icon{
  position:relative;
  width:44px;
  height:44px;
  flex:0 0 44px;
  display:grid;
  place-items:center;
  margin-bottom:10px;
  color:#82a6ff;
  border:1px solid rgba(108,147,255,.27);
  border-radius:13px;
  background:
    linear-gradient(145deg,rgba(92,132,255,.16),rgba(75,114,220,.07)),
    rgba(13,28,57,.86);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    0 7px 16px rgba(0,0,0,.14);
  transition:color .22s ease,border-color .22s ease,transform .22s ease,box-shadow .22s ease
}
.category-icon-glow{
  position:absolute;
  inset:8px;
  border-radius:9px;
  background:radial-gradient(circle,rgba(83,137,255,.24),transparent 68%);
  filter:blur(4px);
  opacity:.42;
  pointer-events:none
}
.category-icon svg{position:relative;z-index:1;width:24px;height:24px}
.category-card:hover .category-icon,.category-card.active .category-icon{
  color:#a9c1ff;
  border-color:rgba(116,159,255,.48);
  transform:translateY(-1px) scale(1.025);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 8px 22px rgba(41,82,180,.22),
    0 0 20px rgba(66,117,255,.09)
}
.category-card strong{
  width:100%;
  padding-right:23px;
  color:#f6f8ff;
  font-size:.76rem;
  line-height:1.18;
  letter-spacing:-.012em
}
.category-card small{
  display:block;
  margin-top:5px;
  padding-right:20px;
  color:#8494b0;
  font-size:.62rem;
  line-height:1.35
}
.category-arrow{
  position:absolute;
  right:11px;
  bottom:11px;
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  color:#6f8fd2;
  border:1px solid rgba(109,145,218,.16);
  border-radius:999px;
  background:rgba(255,255,255,.018);
  opacity:.62;
  transform:translateX(-2px);
  transition:.22s ease
}
.category-arrow svg{width:14px;height:14px}
.category-card:hover .category-arrow,.category-card.active .category-arrow{
  color:#b5c8ff;
  border-color:rgba(109,153,255,.30);
  background:rgba(77,124,255,.10);
  opacity:1;
  transform:translateX(0)
}

/* PUBLICATIONS */
.publications-section{padding-top:30px}
.section-heading{
  display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:26px
}
.outline-link{
  flex:0 0 auto;
  padding:10px 17px;
  border:1px solid rgba(101,145,246,.56);
  border-radius:999px;
  color:#8fb0ff;
  font-size:.78rem;
  font-weight:800;
  transition:.2s ease
}
.outline-link:hover{background:rgba(77,124,255,.10);color:#fff}
.publication-viewport{position:relative}
.publication-rail{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  overflow:hidden
}
.publication-card{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(180deg,#0a162a,#071122);
  box-shadow:0 14px 36px rgba(0,0,0,.22);
  min-width:0;
  transition:.22s ease
}
.publication-card:hover{transform:translateY(-5px);border-color:rgba(105,149,245,.35);box-shadow:0 20px 44px rgba(0,0,0,.32)}
.publication-image{
  position:relative;
  display:block;
  aspect-ratio:16/9;
  overflow:hidden;
  background:#0b1830
}
.publication-image img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.publication-card:hover .publication-image img{transform:scale(1.035)}
.category-pill{
  position:absolute;left:12px;bottom:12px;
  max-width:calc(100% - 24px);
  padding:5px 8px;
  border-radius:7px;
  background:rgba(5,13,30,.82);
  border:1px solid rgba(145,174,235,.22);
  backdrop-filter:blur(8px);
  color:#dbe6fa;
  font-size:.54rem;
  font-weight:800;
  letter-spacing:.04em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.publication-fallback{
  position:absolute;inset:0;
  display:grid;place-items:center;
  overflow:hidden;
  background:
    radial-gradient(circle at 75% 35%,rgba(86,137,255,.30),transparent 24%),
    linear-gradient(135deg,#071225,#16305d)
}
.publication-fallback::before{
  content:"";position:absolute;width:190px;height:190px;border:1px solid rgba(108,157,255,.20);border-radius:50%;
  box-shadow:0 0 0 38px rgba(80,128,239,.06),0 0 0 76px rgba(80,128,239,.035)
}
.fallback-2{background:radial-gradient(circle at 60% 22%,rgba(56,189,248,.22),transparent 26%),linear-gradient(135deg,#091225,#14294f)}
.fallback-3{background:radial-gradient(circle at 30% 30%,rgba(127,90,240,.20),transparent 30%),linear-gradient(135deg,#081022,#17223e)}
.fallback-4{background:radial-gradient(circle at 70% 28%,rgba(245,158,11,.18),transparent 25%),linear-gradient(135deg,#071225,#273043)}
.fallback-plane{position:relative;z-index:2;font-size:2.2rem;opacity:.85;transform:rotate(-18deg)}
.publication-body{padding:17px 16px 16px}
.publication-body h3{margin:0;min-height:54px;font-size:.95rem;line-height:1.42}
.publication-body h3 a:hover{color:#92b2ff}
.publication-body p{
  min-height:61px;
  margin:10px 0 15px;
  color:#8495b2;
  font-size:.76rem;
  line-height:1.6;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden
}
.publication-meta{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  color:#6f819e;
  font-size:.66rem
}
.publication-meta span{display:inline-flex;align-items:center;gap:5px}
.rail-control{
  position:absolute;top:50%;z-index:3;
  width:42px;height:42px;border:1px solid rgba(125,164,245,.35);
  border-radius:50%;background:rgba(4,12,28,.88);
  display:none;place-items:center;
  font-size:1.45rem;cursor:pointer
}
.rail-prev{left:-14px}.rail-next{right:-14px}
.carousel-dots{display:flex;justify-content:center;gap:8px;margin-top:24px}
.carousel-dots span{width:6px;height:6px;border-radius:50%;background:#263551}
.carousel-dots span.active{background:var(--blue);box-shadow:0 0 0 3px rgba(77,124,255,.12)}
.publications-embed{
  border:1px solid var(--line-strong);
  border-radius:22px;
  overflow:hidden;
  background:#f5f7fb;
  box-shadow:var(--shadow)
}
.embed-toolbar{
  min-height:76px;padding:14px 18px;
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  background:linear-gradient(180deg,#08152b,#071225);
  border-bottom:1px solid var(--line)
}
.embed-toolbar div{display:grid;gap:3px}.embed-toolbar span{color:var(--muted);font-size:.8rem}
.publications-embed iframe{display:block;width:100%;height:720px;border:0;background:#fff}

/* STATS */
.stats-section{padding-top:40px;padding-bottom:20px}
.stats-card{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border:1px solid var(--line);
  border-radius:22px;
  background:
    radial-gradient(circle at 50% -30%,rgba(77,124,255,.12),transparent 40%),
    linear-gradient(180deg,#08152a,#061123);
  box-shadow:0 20px 45px rgba(0,0,0,.20);
  overflow:hidden
}
.stat-item{
  min-height:150px;
  padding:30px 34px;
  display:flex;align-items:center;gap:20px;
  position:relative
}
.stat-item:not(:last-child)::after{content:"";position:absolute;right:0;top:24px;bottom:24px;width:1px;background:var(--line)}
.stat-icon{
  width:64px;height:64px;flex:0 0 auto;
  display:grid;place-items:center;
  border-radius:50%;
  color:#77a1ff;
  background:linear-gradient(180deg,rgba(93,139,250,.18),rgba(93,139,250,.08));
  border:1px solid rgba(113,153,241,.24)
}
.stat-item div{display:grid;gap:2px}
.stat-item strong{font-size:2rem;line-height:1;color:#6794ff}
.stat-item span{font-weight:700}
.stat-item small{color:#7485a1;font-size:.72rem}

/* COMMUNITY */
.community-section{padding-top:46px;padding-bottom:76px}
.community-card{
  position:relative;
  min-height:420px;
  overflow:hidden;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  border:1px solid rgba(96,142,238,.28);
  border-radius:24px;
  background:
    linear-gradient(90deg,rgba(8,30,70,.96) 0%,rgba(8,31,78,.80) 52%,rgba(8,34,86,.34) 100%),
    var(--community-image),
    linear-gradient(135deg,#082554,#0a3778);
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
  box-shadow:0 24px 60px rgba(0,0,0,.28)
}
.community-card::before{
  content:"";position:absolute;inset:0;
  background:
    radial-gradient(circle at 70% 50%,rgba(47,109,246,.18),transparent 38%),
    linear-gradient(90deg,rgba(0,0,0,.10),transparent 60%);
  pointer-events:none
}
.community-copy{position:relative;z-index:2;padding:50px 56px}
.community-copy h2{
  margin:13px 0 24px;
  font-size:clamp(2rem,3.3vw,3.25rem);
  line-height:1.05;
  letter-spacing:-.04em
}
.community-copy h2 span{color:#5f8cff}
.community-copy ul{list-style:none;margin:0;padding:0;display:grid;gap:16px;max-width:690px}
.community-copy li{display:grid;grid-template-columns:22px 1fr;gap:12px;align-items:start}
.community-copy li p{margin:0;color:#d4dcef;font-size:.89rem}
.check{
  width:20px;height:20px;display:grid;place-items:center;margin-top:1px;
  border-radius:50%;color:#88c6ff;background:rgba(93,148,255,.12)
}
.community-actions{display:flex;align-items:center;gap:20px;margin-top:28px;flex-wrap:wrap}
.member-stack{display:flex;align-items:center;padding-left:9px}
.member-stack>span{
  width:32px;height:32px;margin-left:-9px;
  display:grid;place-items:center;
  border:2px solid #0c2a5f;border-radius:50%;
  background:#d9e6ff;color:#133368;font-size:.55rem;font-weight:900
}
.member-stack small{margin-left:10px;color:#a9b8cf;font-size:.72rem}

/* DISPOSITIVOS CONECTADOS EN TIEMPO REAL */
.member-stack .active-devices-info{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-left:10px;
  color:#a9b8cf;
  font-size:.72rem;
  font-weight:500;
  white-space:nowrap
}
.active-devices-number{
  color:#f7f9ff;
  font-weight:800;
  font-variant-numeric:tabular-nums
}
.active-device-dot{
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 0 4px rgba(85,231,163,.08),0 0 12px rgba(85,231,163,.72);
  animation:activeDevicePulse 1.8s ease-in-out infinite
}
@keyframes activeDevicePulse{
  0%,100%{opacity:.62;transform:scale(.86)}
  50%{opacity:1;transform:scale(1.14)}
}

.community-visual{position:relative;z-index:1;min-height:420px;pointer-events:none}
.community-radar{
  position:absolute;width:400px;height:400px;right:5%;top:50%;transform:translateY(-50%);
  border:1px solid rgba(117,201,255,.22);border-radius:50%;
  filter:drop-shadow(0 0 18px rgba(47,109,246,.10))
}
.community-radar::before,.community-radar::after{
  content:"";position:absolute;background:rgba(117,201,255,.16)
}
.community-radar::before{width:1px;top:0;bottom:0;left:50%}
.community-radar::after{height:1px;left:0;right:0;top:50%}
.community-radar i{
  position:absolute;inset:12.5%;border:1px solid rgba(117,201,255,.18);border-radius:50%
}
.community-radar i:nth-child(2){inset:25%}.community-radar i:nth-child(3){inset:37.5%}.community-radar i:nth-child(4){inset:49%}
.radar-sweep{
  position:absolute;left:50%;top:50%;width:47%;height:2px;transform-origin:left center;
  background:linear-gradient(90deg,#93d5ff,transparent);
  animation:sweep 7s linear infinite
}
@keyframes sweep{to{transform:rotate(360deg)}}

/* FOOTER */
.site-footer{
  border-top:1px solid var(--line);
  background:
    radial-gradient(circle at 8% 18%,rgba(77,124,255,.06),transparent 22rem),
    #020714;
  padding-top:52px
}
.footer-grid{
  display:grid;
  grid-template-columns:1.25fr .7fr .9fr 1.25fr;
  gap:52px;
  padding-bottom:46px
}
.footer-logo-link{
  display:inline-flex;
  width:250px;
  height:88px;
  align-items:center;
  overflow:hidden;
  border-radius:12px
}
.footer-brand img{
  width:245px;
  height:86px;
  max-width:none;
  max-height:none;
  object-fit:cover;
  object-position:center 50%;
  border-radius:0;
  filter:saturate(1.08) contrast(1.04)
}
.footer-brand p{max-width:330px;margin:18px 0 0;color:#8c9bb6;font-size:.82rem;line-height:1.7}
.socials{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}
.socials a{
  width:38px;height:38px;display:grid;place-items:center;
  border:1px solid rgba(126,157,221,.20);border-radius:50%;
  color:#dbe6fa;background:rgba(255,255,255,.025);
  transition:transform .2s ease,border-color .2s ease,background .2s ease,color .2s ease,box-shadow .2s ease
}
.socials a svg{width:17px;height:17px;fill:currentColor}
.socials a:hover{
  transform:translateY(-2px);
  color:#fff;
  border-color:rgba(103,148,255,.52);
  background:linear-gradient(135deg,rgba(77,124,255,.22),rgba(117,201,255,.10));
  box-shadow:0 10px 24px rgba(0,0,0,.22),0 0 18px rgba(77,124,255,.10)
}
.footer-column,.footer-contact{display:grid;align-content:start;gap:10px}
.footer-column h3,.footer-contact h3{margin:0 0 8px;color:#7aa4ff;font-size:.70rem;letter-spacing:.14em}
.footer-column a{color:#a8b5c9;font-size:.78rem;transition:color .18s ease,transform .18s ease}
.footer-column a:hover{color:#fff;transform:translateX(2px)}
.footer-contact p{margin:0 0 10px;color:#93a2ba;font-size:.8rem;line-height:1.65}
.footer-email-cta{
  min-height:68px;
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:9px 9px 9px 16px;
  overflow:hidden;
  border:1px solid rgba(116,156,240,.38);
  border-radius:16px;
  background:linear-gradient(145deg,#071124,#09152c);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease
}
.footer-email-cta:hover{
  transform:translateY(-2px);
  border-color:rgba(117,201,255,.60);
  box-shadow:0 14px 34px rgba(0,0,0,.22),0 0 22px rgba(77,124,255,.08)
}
.footer-email-copy{min-width:0;display:grid;gap:2px}
.footer-email-copy small{color:#6f82a4;font-size:.62rem;text-transform:uppercase;letter-spacing:.09em}
.footer-email-copy strong{color:#f5f8ff;font-size:.76rem;line-height:1.25;overflow-wrap:anywhere}
.footer-email-icon{
  flex:0 0 48px;width:48px;height:48px;display:grid;place-items:center;
  border-radius:13px;color:#fff;background:linear-gradient(135deg,#5d82ff,#4a70ee);
  box-shadow:0 8px 22px rgba(47,109,246,.22)
}
.footer-email-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.footer-contact>small{color:#63738f;font-size:.68rem;line-height:1.5}
.footer-bottom{
  min-height:78px;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  border-top:1px solid var(--line);
  color:#65738c;
  font-size:.7rem
}
.footer-bottom div{display:flex;gap:24px;flex-wrap:wrap}
.footer-bottom a{transition:color .18s ease}.footer-bottom a:hover{color:#fff}
.back-to-top{
  position:fixed;right:22px;bottom:22px;z-index:500;
  width:46px;height:46px;display:grid;place-items:center;
  border:1px solid rgba(132,164,232,.26);
  border-radius:50%;
  background:rgba(16,28,52,.92);
  backdrop-filter:blur(10px);
  box-shadow:0 12px 28px rgba(0,0,0,.3);
  opacity:0;pointer-events:none;transform:translateY(8px);transition:.2s ease
}
.back-to-top.visible{opacity:1;pointer-events:auto;transform:none}

/* LEGAL · PRIVACIDAD / TÉRMINOS */
.legal-main{padding:0 0 72px}
.legal-hero{padding:70px 0 42px;position:relative;overflow:hidden}
.legal-hero::before{
  content:"";position:absolute;inset:auto -10% 0 40%;height:420px;pointer-events:none;
  background:radial-gradient(circle,rgba(77,124,255,.11),transparent 66%);filter:blur(4px)
}
.legal-hero-inner{position:relative;z-index:1;max-width:900px}
.legal-hero .eyebrow{margin-bottom:14px}
.legal-hero h1{margin:0;max-width:820px;font-size:clamp(2.35rem,5vw,4.4rem);line-height:.98;letter-spacing:-.055em}
.legal-hero p{max-width:760px;margin:24px 0 0;color:var(--muted);font-size:1rem;line-height:1.75}
.legal-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}
.legal-meta span{
  display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid rgba(120,156,228,.18);
  border-radius:999px;background:rgba(77,124,255,.05);color:#8fa6cc;font-size:.68rem
}
.legal-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:28px;align-items:start}
.legal-toc{
  position:sticky;top:138px;padding:20px;border:1px solid var(--line);border-radius:18px;background:rgba(7,19,38,.72);
  box-shadow:0 16px 42px rgba(0,0,0,.14)
}
.legal-toc strong{display:block;margin-bottom:12px;color:#7aa4ff;font-size:.68rem;letter-spacing:.12em;text-transform:uppercase}
.legal-toc nav{display:grid;gap:4px}
.legal-toc a{padding:8px 9px;border-radius:9px;color:#8fa0bb;font-size:.74rem;line-height:1.35;transition:.18s ease}
.legal-toc a:hover{color:#fff;background:rgba(77,124,255,.09)}
.legal-card{
  padding:34px 38px;border:1px solid var(--line);border-radius:22px;
  background:linear-gradient(180deg,rgba(10,24,48,.78),rgba(6,16,34,.90));box-shadow:var(--shadow)
}
.legal-card section{scroll-margin-top:140px;padding:0 0 28px;margin:0 0 28px;border-bottom:1px solid rgba(150,178,225,.10)}
.legal-card section:last-child{padding-bottom:0;margin-bottom:0;border-bottom:0}
.legal-card h2{margin:0 0 12px;color:#f7f9ff;font-size:1.18rem;letter-spacing:-.02em}
.legal-card h3{margin:20px 0 8px;color:#dce8ff;font-size:.92rem}
.legal-card p,.legal-card li{color:#9aa9c2;font-size:.84rem;line-height:1.78}
.legal-card p{margin:0 0 12px}
.legal-card ul{margin:10px 0 0;padding-left:20px}
.legal-card li+li{margin-top:7px}
.legal-card a{color:#86bcff}.legal-card a:hover{color:#fff;text-decoration:underline}
.legal-note{
  margin-top:26px;padding:18px 20px;border:1px solid rgba(85,231,163,.18);border-radius:16px;
  background:rgba(85,231,163,.045);color:#9db9ad;font-size:.76rem;line-height:1.65
}
.legal-switch{display:flex;gap:10px;flex-wrap:wrap;margin-top:28px}
.legal-switch a{
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 15px;border-radius:12px;
  border:1px solid rgba(126,157,221,.22);background:rgba(255,255,255,.025);color:#dfe8f8;font-size:.76rem;font-weight:700
}
.legal-switch a.primary{border-color:transparent;background:linear-gradient(135deg,#4d7cff,#2f6df6);color:#fff}
.legal-switch a:hover{transform:translateY(-1px)}

/* REVEAL */
.reveal{opacity:0;transform:translateY(14px);transition:opacity .6s ease,transform .6s ease;transition-delay:var(--reveal-delay,0ms)}
.reveal.in-view{opacity:1;transform:none}

/* TABLET */
@media (max-width:1180px){
  .category-rail{grid-template-columns:repeat(4,minmax(0,1fr))}
  .brand{width:285px;height:94px;flex-basis:285px}
  .brand img{width:275px;height:90px}
  .desktop-nav{gap:22px}
  .desktop-nav a{font-size:.84rem}
  .header-inner{gap:22px}
}

@media (max-width:1080px){
  .desktop-nav{gap:20px}.desktop-nav a{font-size:.82rem}
  .hero-grid{grid-template-columns:1.05fr .75fr;gap:30px}
  .categories-layout{grid-template-columns:1fr;gap:18px}
  .categories-section .section-intro p{max-width:560px}
  .category-rail{grid-template-columns:repeat(4,minmax(0,1fr))}
  .publication-rail{
    display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:5px
  }
  .publication-rail::-webkit-scrollbar{display:none}
  .publication-card{flex:0 0 calc(50% - 9px);scroll-snap-align:start}
  .rail-control{display:grid}
  .stats-card{grid-template-columns:1fr}
  .stat-item{min-height:112px}
  .stat-item:not(:last-child)::after{left:24px;right:24px;top:auto;bottom:0;width:auto;height:1px}
  .community-card{grid-template-columns:1.15fr .85fr}
  .community-copy{padding:42px 36px}
  .footer-grid{grid-template-columns:1.2fr 1fr 1fr;gap:34px}
  .footer-contact{grid-column:1/-1;max-width:620px}
}

/* MOBILE */
@media (max-width:900px){
  .category-rail{grid-template-columns:repeat(3,minmax(0,1fr))}
  .desktop-nav{display:none}
  .menu-button{display:grid}
  .brand{width:250px;height:82px;flex-basis:250px}
  .brand img{width:242px;height:80px}
  .header-inner{min-height:94px}
}

@media (max-width:760px){
  .shell{width:min(calc(100% - 28px),var(--shell))}
  .section{padding:38px 0}
  .header-inner{min-height:88px}
  .brand{width:220px;height:74px;flex-basis:220px}
  .brand img{width:214px;height:72px}
  .desktop-nav{display:none}
  .menu-button{display:grid}
  .hero{min-height:600px;background-position:62% center}
  .hero-grid{grid-template-columns:1fr;min-height:600px;align-content:center}
  .hero-copy{padding:56px 0 80px;max-width:100%}
  .hero-copy h1{font-size:clamp(2.45rem,12vw,4rem)}
  .hero-copy p{font-size:.98rem}
  .categories-section{padding-top:28px}
  .categories-layout{padding-bottom:22px}
  .category-rail{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;padding:2px 2px 10px}
  .category-rail::-webkit-scrollbar{display:none}
  .category-card{flex:0 0 146px;min-width:146px;min-height:126px;scroll-snap-align:start;padding:13px 12px 12px}
  .category-icon{width:42px;height:42px;flex-basis:42px;margin-bottom:9px;border-radius:12px}
  .category-card strong{font-size:.73rem}
  .category-card small{font-size:.60rem}
  .section-heading{align-items:start;flex-direction:column}
  .outline-link{align-self:flex-start}
  .publication-card{flex-basis:86%}
  .rail-control{width:38px;height:38px}
  .rail-prev{left:-7px}.rail-next{right:-7px}
  .publication-body h3{font-size:.93rem}
  .stats-card{border-radius:18px}
  .stat-item{padding:22px 20px}
  .stat-icon{width:54px;height:54px}
  .stat-item strong{font-size:1.7rem}
  .community-card{grid-template-columns:1fr;min-height:auto}
  .community-copy{padding:34px 24px 30px}
  .community-copy li p{text-align:left}
  .community-visual{min-height:260px}
  .community-radar{width:300px;height:300px;right:-15px}
  .footer-grid{grid-template-columns:1fr 1fr;gap:32px}
  .footer-brand{grid-column:1/-1}
  .footer-contact{grid-column:1/-1}
  .footer-bottom{padding:18px 0;align-items:flex-start;flex-direction:column}
  .footer-bottom div{flex-wrap:wrap;gap:12px 20px}
  .publications-embed iframe{height:640px}
  .embed-toolbar{align-items:flex-start;flex-direction:column}
}
@media (max-width:480px){
  .brand{width:190px;height:66px;flex-basis:190px}
  .brand img{width:184px;height:64px}
  .header-actions{gap:7px}
  .icon-button{width:42px;height:42px}
  .hero-actions .btn{width:100%}
  .publication-card{flex-basis:92%}
  .footer-grid{grid-template-columns:1fr}
  .footer-brand,.footer-contact{grid-column:auto}
  .community-actions{align-items:flex-start;flex-direction:column}
  .member-stack{padding-left:9px}
  .member-stack .active-devices-info{margin-left:8px;font-size:.68rem;white-space:normal}
  .active-device-dot{width:7px;height:7px;flex-basis:7px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
  .reveal{opacity:1;transform:none}
}

/* ==========================================================
   FIX 2026 · PUBLICACIONES — LAYOUT + BUSCADOR + PAGINACIÓN
   Este bloque debe permanecer AL FINAL de app.css.
   ========================================================== */
.publications-heading{margin-bottom:20px}

.publication-tools{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
  margin:0 0 20px;
  padding:12px;
  border:1px solid rgba(125,164,245,.17);
  border-radius:20px;
  background:
    radial-gradient(circle at 10% 0%,rgba(77,124,255,.10),transparent 30%),
    linear-gradient(180deg,rgba(12,24,46,.82),rgba(7,17,34,.84));
  box-shadow:0 14px 36px rgba(0,0,0,.16);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px)
}

.publication-search{
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto;
  gap:10px;
  align-items:center;
  min-width:0;
  margin:0
}

.publication-search-box{
  position:relative;
  display:flex;
  align-items:center;
  min-width:0;
  height:50px;
  border:1px solid rgba(130,158,218,.18);
  border-radius:14px;
  background:rgba(2,9,23,.56);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease
}
.publication-search-box:focus-within{
  border-color:rgba(97,144,255,.68);
  background:rgba(4,13,30,.82);
  box-shadow:0 0 0 4px rgba(77,124,255,.10),0 10px 24px rgba(0,0,0,.14)
}
.publication-search-icon{
  width:48px;
  height:48px;
  flex:0 0 48px;
  display:grid;
  place-items:center;
  color:#759cff
}
.publication-search-icon svg{display:block;width:21px;height:21px}
.publication-search-box input{
  width:100%;
  min-width:0;
  height:48px;
  padding:0 46px 0 0;
  border:0;
  outline:0;
  background:transparent;
  color:#f4f7ff;
  font:600 .82rem/1.2 Inter,system-ui,sans-serif;
  appearance:none;
  -webkit-appearance:none
}
.publication-search-box input::placeholder{color:#70819d;font-weight:500}
.publication-search-box input::-webkit-search-cancel-button{display:none}
.publication-search-clear{
  position:absolute;
  right:9px;
  top:50%;
  transform:translateY(-50%);
  width:31px;
  height:31px;
  display:grid;
  place-items:center;
  border:1px solid rgba(139,166,224,.16);
  border-radius:9px;
  background:rgba(255,255,255,.025);
  color:#8fa2c2;
  font-size:1.25rem;
  line-height:1;
  text-decoration:none;
  transition:.18s ease
}
.publication-search-clear:hover{color:#fff;border-color:rgba(119,155,246,.38);background:rgba(77,124,255,.12)}

.publication-search-button{
  height:50px;
  padding:0 20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  border:1px solid rgba(112,151,255,.58);
  border-radius:14px;
  background:linear-gradient(135deg,#6686ff,#3d6ff0);
  color:#fff;
  box-shadow:0 10px 24px rgba(45,99,235,.24),inset 0 1px 0 rgba(255,255,255,.16);
  font:800 .76rem/1 Inter,system-ui,sans-serif;
  cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease
}
.publication-search-button svg{display:block}
.publication-search-button:hover{
  transform:translateY(-1px);
  filter:brightness(1.06);
  box-shadow:0 14px 28px rgba(45,99,235,.30),inset 0 1px 0 rgba(255,255,255,.18)
}

.publication-results-summary{
  min-height:46px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 8px;
  color:#8191ad;
  white-space:nowrap;
  font-size:.70rem
}
.publication-results-summary strong{color:#c9d6ef;font-weight:800}
.results-dot{
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:#4d7cff;
  box-shadow:0 0 0 4px rgba(77,124,255,.10),0 0 16px rgba(77,124,255,.45)
}

.active-search{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin:-4px 0 18px;
  color:#70819d;
  font-size:.72rem
}
.active-search strong{
  max-width:min(520px,100%);
  color:#b9caf0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.active-search a{margin-left:4px;color:#7ea2ff;font-weight:800;text-decoration:none}
.active-search a:hover{color:#fff}

/* IMPORTANTE: la vista con búsqueda usa publication-grid, no publication-rail. */
.publication-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  align-items:stretch;
  width:100%;
  overflow:visible
}
.publication-grid .publication-card{
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  height:100%;
  flex:none!important;
  display:flex;
  flex-direction:column
}
.publication-grid .publication-image{width:100%;flex:0 0 auto}
.publication-grid .publication-body{display:flex;flex:1 1 auto;flex-direction:column}
.publication-grid .publication-body h3{min-height:54px}
.publication-grid .publication-body p{min-height:61px}
.publication-grid .publication-meta{margin-top:auto}

.publication-empty{
  min-height:330px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:48px 24px;
  border:1px dashed rgba(120,157,238,.26);
  border-radius:22px;
  background:
    radial-gradient(circle at 50% 10%,rgba(77,124,255,.10),transparent 34%),
    rgba(7,17,34,.52)
}
.publication-empty-icon{
  width:72px;
  height:72px;
  display:grid;
  place-items:center;
  margin-bottom:18px;
  border:1px solid rgba(120,157,238,.24);
  border-radius:20px;
  background:rgba(77,124,255,.08);
  color:#7da1ff;
  box-shadow:0 16px 34px rgba(0,0,0,.18)
}
.publication-empty h3{margin:0 0 8px;font-size:1.18rem}
.publication-empty p{margin:0 0 20px;color:#7d8ca7;font-size:.82rem}

.publication-pagination{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:16px;
  margin-top:28px;
  padding-top:22px;
  border-top:1px solid rgba(122,151,211,.12)
}
.page-numbers{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0}
.page-number,.page-nav{
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(129,158,220,.18);
  background:rgba(9,20,39,.72);
  color:#8496b5;
  text-decoration:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
  transition:transform .18s ease,border-color .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease
}
.page-number{width:42px;border-radius:12px;font-size:.72rem;font-weight:800}
.page-number:hover,.page-nav:hover:not(.disabled){transform:translateY(-1px);border-color:rgba(103,148,255,.46);background:rgba(77,124,255,.10);color:#fff}
.page-number.active{border-color:rgba(103,148,255,.68);background:linear-gradient(135deg,rgba(94,130,255,.95),rgba(53,108,241,.95));color:#fff;box-shadow:0 8px 20px rgba(45,99,235,.24)}
.page-nav{min-width:116px;padding:0 15px;gap:8px;border-radius:13px;font-size:.72rem;font-weight:800}
.page-nav.disabled{opacity:.35;cursor:not-allowed}
.page-ellipsis{padding:0 3px;color:#4f607d;font-weight:800}

@media (max-width:1080px){
  .publication-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .publication-tools{grid-template-columns:1fr}
  .publication-results-summary{padding:0 4px}
}

@media (max-width:760px){
  .publication-tools{padding:10px;border-radius:17px}
  .publication-search{grid-template-columns:1fr}
  .publication-search-button{width:100%}
  .publication-results-summary{min-height:28px;white-space:normal}
  .publication-grid{grid-template-columns:1fr;gap:14px}
  .publication-grid .publication-card{width:100%!important;flex-basis:auto!important}
  .publication-pagination{grid-template-columns:1fr 1fr;gap:12px}
  .page-numbers{grid-column:1/-1;grid-row:1;overflow-x:auto;justify-content:flex-start;padding:2px 1px 6px;scrollbar-width:none}
  .page-numbers::-webkit-scrollbar{display:none}
  .page-prev{grid-column:1;grid-row:2}
  .page-next{grid-column:2;grid-row:2}
  .page-nav{width:100%;min-width:0}
}

@media (max-width:480px){
  .publication-search-box{height:46px}
  .publication-search-icon{width:43px;height:46px;flex-basis:43px}
  .publication-search-box input{height:44px;font-size:.76rem}
  .page-number{width:40px;height:40px;flex:0 0 40px}
  .page-nav{height:40px;font-size:.68rem}
}


@media (max-width:980px){
  .legal-layout{grid-template-columns:1fr}
  .legal-toc{position:static}
  .legal-toc nav{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:620px){
  .footer-logo-link{width:235px;height:82px}
  .footer-brand img{width:230px;height:80px}
  .footer-bottom{align-items:flex-start;flex-direction:column;padding:20px 0}
  .footer-bottom div{gap:14px}
  .footer-email-cta{min-height:64px}
  .legal-hero{padding:52px 0 32px}
  .legal-card{padding:24px 20px;border-radius:18px}
  .legal-toc nav{grid-template-columns:1fr}
  .legal-hero h1{font-size:clamp(2.1rem,12vw,3.15rem)}
}
