:root{
  --bg:#f5f8fc;
  --ink:#0b1728;
  --muted:#5d6d83;
  --line:#dce6f1;
  --navy:#0d2b45;
  --blue:#1673e6;
  --gold:#f2a014;
  --green:#18a060;
  --violet:#6d5dfc;
  --red:#df5d6c;
  --shadow:0 18px 50px rgba(10,34,58,.10);
  --radius:22px}

*{
  box-sizing:border-box}

html{
  scroll-behavior:smooth}

body{
  margin:0;
  font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--ink);
  background:radial-gradient(circle at 12% 0%,rgba(22,115,230,.12),transparent 30rem),radial-gradient(circle at 95% 12%,rgba(242,160,20,.10),transparent 24rem),var(--bg)}

a{
  color:inherit}

.page{
  width:min(1240px,calc(100% - 28px));
  margin:14px auto 10px}

.topbar{
  height:68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:10px 16px;
  border:1px solid rgba(220,230,241,.95);
  border-radius:22px;
  background:rgba(255,255,255,.90);
  backdrop-filter:blur(16px);
  box-shadow:0 8px 28px rgba(10,34,58,.07)}

.brand{
  display:flex;
  align-items:center;
  min-width:250px}

.brand img{
  display:block;
  height:48px;
  width:auto;
  max-height:48px}

.nav{
  display:flex;
  align-items:center;
  gap:4px;
  font-size:13.5px;
  color:#41526a;
  white-space:nowrap}

.nav a{
  text-decoration:none;
  padding:9px 11px;
  border-radius:999px}

.nav a:hover{
  background:#eef5fc;
  color:var(--navy)}

.contact-btn{
  background:var(--navy);
  color:#fff!important;
  padding-inline:15px!important}

.layout{
  display:grid;
  gap:14px;
  margin-top:14px}

.panel,.obs-card{
  border:1px solid rgba(220,230,241,.95);
  background:rgba(255,255,255,.92);
  border-radius:var(--radius);
  box-shadow:var(--shadow)}

.hero{
  min-height:310px;
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:14px;
  padding:22px;
  overflow:hidden}

.hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:4px 8px}

.kicker{
  margin:0 0 9px;
  color:var(--blue);
  font-size:11px;
  font-weight:850;
  letter-spacing:.11em;
  text-transform:uppercase}

h1,h2,h3,p{
  margin-top:0}

h1,h2,h3{
  color:var(--ink);
  letter-spacing:-.025em}

h1{
  max-width:650px;
  margin-bottom:14px;
  font-size:clamp(34px,4.2vw,52px);
  line-height:1.02}

h2{
  margin-bottom:0;
  font-size:clamp(22px,2.2vw,30px);
  line-height:1.1}

h3{
  margin-bottom:8px;
  font-size:19px;
  line-height:1.16}

.lead{
  max-width:660px;
  margin-bottom:20px;
  color:var(--muted);
  font-size:15.5px;
  line-height:1.55}

.hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:10px 16px;
  border-radius:999px;
  text-decoration:none;
  font-size:14px;
  font-weight:800}

.btn.primary{
  background:var(--blue);
  color:white}

.btn.ghost{
  color:var(--navy);
  background:white;
  border:1px solid var(--line)}

.hero-visual{
  position:relative;
  min-height:260px;
  border-radius:20px;
  background:linear-gradient(135deg,rgba(13,43,69,.96),rgba(20,91,142,.92));
  overflow:hidden;
  padding:18px;
  color:#fff}

.map-dot{
  position:absolute;
  width:220px;
  height:220px;
  right:18px;
  top:14px;
  opacity:.28;
  background:radial-gradient(circle,rgba(255,255,255,.95) 2px,transparent 3px);
  background-size:15px 15px;
  clip-path:polygon(35% 0,72% 4%,91% 24%,83% 53%,96% 82%,64% 100%,31% 87%,12% 58%,3% 27%)}

.stats{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:14px}

.stats div{
  padding:14px;
  border-radius:17px;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.08)}

.stats span{
  display:block;
  color:#cfe5f7;
  font-size:12px}

.stats strong{
  display:block;
  margin-top:4px;
  font-size:32px}

.chart-card{
  position:absolute;
  left:18px;
  right:18px;
  bottom:18px;
  z-index:1;
  padding:14px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:18px;
  background:rgba(255,255,255,.09)}

.chart-title{
  display:flex;
  justify-content:space-between;
  margin-bottom:12px;
  font-size:13px}

.chart-title small{
  color:#cfe5f7}

.bars{
  height:92px;
  display:flex;
  align-items:end;
  gap:10px}

.bars i{
  flex:1;
  height:var(--h);
  border-radius:999px 999px 6px 6px;
  background:linear-gradient(180deg,#fff,#f2a014)}

.section-title{
  display:flex;
  align-items:end;
  justify-content:space-between;
  padding:0 4px;
  margin-bottom:9px}

.observatorios{
  scroll-margin-top:90px}

.cards{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px}

.obs-card{
  min-height:235px;
  padding:17px;
  display:flex;
  flex-direction:column;
  box-shadow:0 12px 34px rgba(10,34,58,.08)}

.card-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-bottom:12px}

.icon{
  width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  font-size:22px;
  font-weight:900}

.energy .icon{
  background:#fff3d7;
  color:#d78300}

.housing .icon{
  background:#e7f8ef;
  color:#098750}

.telecom .icon{
  background:#eeeefe;
  color:#5247dc}

.health .icon{
  background:#fff0f2;
  color:#c94255}

.badge{
  display:inline-flex;
  padding:6px 9px;
  border-radius:999px;
  font-size:10.5px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.06em}

.badge.active{
  background:#eaf8f0;
  color:#0b7a48}

.badge.soon{
  background:#f2f5f8;
  color:#6a7483}

.obs-card p{
  margin-bottom:14px;
  color:var(--muted);
  font-size:13.5px;
  line-height:1.47}

.obs-card a{
  margin-top:auto;
  display:inline-flex;
  width:max-content;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:9px 14px;
  border-radius:999px;
  text-decoration:none;
  font-size:13px;
  font-weight:850;
  background:var(--navy);
  color:white}

.obs-card.housing a{
  background:var(--green)}

.obs-card .disabled{
  color:#748095;
  background:#eef2f6;
  pointer-events:none}

.mini-graph{
  display:grid;
  gap:6px;
  margin:auto 0 14px}

.mini-graph span{
  display:block;
  width:var(--w);
  height:8px;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(22,115,230,.18),rgba(22,115,230,.90))}

.energy .mini-graph span{
  background:linear-gradient(90deg,rgba(242,160,20,.20),rgba(242,160,20,.95))}

.telecom .mini-graph span{
  background:linear-gradient(90deg,rgba(109,93,252,.16),rgba(109,93,252,.85))}

.mini-line{
  height:54px;
  margin:auto 0 14px;
  padding:6px;
  border-radius:14px;
  background:#f6fbf8;
  border:1px solid #dfefe6}

.mini-line svg{
  width:100%;
  height:100%}

.mini-line path{
  fill:none;
  stroke:var(--green);
  stroke-width:4;
  stroke-linecap:round}

.mini-line.muted{
  background:#fff7f8;
  border-color:#f4dfe2}

.mini-line.muted path{
  stroke:var(--red)}

.bottom-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px}

.method,.partners{
  min-height:160px;
  padding:18px}

.method h2,.partners h2{
  font-size:24px;
  margin-bottom:16px}

.steps{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px}

.steps div{
  min-height:66px;
  padding:11px;
  border:1px solid var(--line);
  border-radius:16px;
  background:linear-gradient(180deg,#f8fbff,#fff);
  display:flex;
  flex-direction:column;
  justify-content:space-between}

.steps strong{
  color:var(--gold);
  font-size:19px}

.steps span{
  color:var(--navy);
  font-size:12.5px;
  font-weight:800}

/* =========================================================
   INSTITUCIONES Y AUSPICIANTES - VERSION PREMIUM
   Compatible con el nuevo index.html
   ========================================================= */

.partner-logos-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:1.25rem;
  align-items:stretch}

.partner-item{
  display:none;
  min-height:124px;
  padding:16px;
  border:1px solid rgba(220,230,241,.95);
  border-radius:20px;
  background:linear-gradient(180deg,#ffffff 0%,#f9fcff 100%);
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  box-shadow:0 10px 28px rgba(10,34,58,.055);
  overflow:hidden;
  isolation:isolate;
  transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease,background .24s ease}

.partner-item.visible{
  display:flex}

.partner-item a{
  display:flex;
  width:100%;
  min-height:66px;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  outline:none}

.partner-item img{
  display:block;
  width:auto;
  max-width:min(185px,100%);
  max-height:62px;
  object-fit:contain;
  filter:grayscale(100%) opacity(.86);
  transform:translateZ(0);
  transition:filter .24s ease,transform .24s ease}

.partner-title{
  min-height:18px;
  margin-bottom:9px;
  color:var(--muted);
  font-size:11px;
  font-weight:850;
  line-height:1.2;
  letter-spacing:.11em;
  text-align:center;
  text-transform:uppercase}

@media(hover:hover){
  .partner-item:hover{
    transform:translateY(-4px);
    border-color:rgba(22,115,230,.26);
    background:#ffffff;
    box-shadow:0 16px 36px rgba(10,34,58,.095)}

  .partner-item:hover img{
    filter:grayscale(0%) opacity(1);
    transform:scale(1.045)}
}

.partner-item a:focus-visible{
  border-radius:14px;
  box-shadow:0 0 0 3px rgba(22,115,230,.18)}

.footer{
  min-height:46px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  padding:10px 4px 0;
  color:#637187;
  font-size:13px}

.footer a{
  color:var(--blue);
  font-weight:750;
  text-decoration:none}


@media(max-width:1080px){
  .hero{
  grid-template-columns:1fr}

.hero-visual{
  min-height:230px}

.cards{
  grid-template-columns:repeat(2,1fr)}
}


@media(max-width:820px){
  .topbar{
  height:auto;
  align-items:flex-start;
  flex-direction:column}

.brand img{
  width:230px;
  max-width:82vw}

.nav{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  padding-bottom:4px}

.hero{
  padding:16px}

h1{
  font-size:34px}

.bottom-grid,.cards{
  grid-template-columns:1fr}

.steps{
  grid-template-columns:1fr 1fr}

.partner-logos-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px}

.partner-item{
  min-height:116px}
}


@media(max-width:520px){
  .page{
  width:min(100% - 16px,1240px);
  margin-top:8px}

.hero-visual{
  display:none}

.steps,.partner-logos-grid{
  grid-template-columns:1fr}

.partner-item{
  min-height:104px;
  padding:14px}

.partner-item img{
  max-height:54px}
}

@media(max-width:380px){
  .partner-item{
  padding:12px}

.partner-item img{
  max-height:50px}
}
