:root{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  color:#f6f5ff;
  background:#080c1d;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  min-height:100%;
}

body{
  overflow-x:hidden;
  background:
    radial-gradient(circle at 58% 32%,#33256744 0%,transparent 28%),
    radial-gradient(circle at 50% 0%,#202347 0%,#10142d 32%,#080c1d 70%);
}

a{
  color:inherit;
  text-decoration:none;
}

button{font:inherit}

.skip{
  position:absolute;
  left:0;
  top:-100px;
}

.skip:focus{
  top:0;
  z-index:100;
  background:white;
  color:black;
  padding:8px;
}

.page{
  min-height:100svh;
  display:grid;
  grid-template-rows:60px 1fr 170px 48px;
  width:min(1500px,94vw);
  margin:auto;
}


/* HEADER */

.header{
  display:grid;
  grid-template-columns:250px 1fr 250px;
  align-items:center;
  border-bottom:1px solid #ffffff10;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
}

.brand-mark{
  width:35px;
  height:35px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:linear-gradient(145deg,#ad91ff,#684bc3);
  box-shadow:0 0 22px #7860da55;
  font-size:20px;
}

.brand-text{
  display:flex;
  flex-direction:column;
}

.brand-text strong{
  font-size:18px;
  line-height:.9;
}

.brand-text strong span{
  color:#b397ff;
}

.brand-text small{
  margin-top:5px;
  font-size:6px;
  letter-spacing:.26em;
  color:#a7aac3;
}

.header nav{
  display:flex;
  justify-content:center;
  gap:40px;
  font-size:11px;
  color:#cacce2;
}

.header nav a:hover{
  color:white;
}

.nav-cta{
  justify-self:end;
  border:1px solid #8583ba;
  padding:9px 17px;
  border-radius:30px;
  font-size:11px;
}


/* SUPERIOR */

main{
  min-height:0;
}

.top-layout{
  min-height:0;
  height:100%;
  display:grid;
  grid-template-columns:42% 58%;
  align-items:center;
}

.hero-copy{
  padding-left:24px;
  padding-right:40px;
}

.eyebrow{
  font-size:9px;
  font-weight:800;
  letter-spacing:.22em;
  color:#c4b6ff;
  margin-bottom:20px;
}

.eyebrow span{
  display:inline-block;
  width:7px;
  height:7px;
  background:#74d8ca;
  box-shadow:0 0 12px #74d8ca;
  border-radius:50%;
  margin-right:8px;
}

h1{
  margin:0;
  max-width:600px;
  font-size:clamp(45px,4.25vw,68px);
  line-height:.98;
  letter-spacing:-.052em;
  font-weight:800;
}

h1 em{
  display:block;
  font-style:normal;
  background:linear-gradient(100deg,#ad91ff,#7dbde9);
  color:transparent;
  -webkit-background-clip:text;
  background-clip:text;
}

.lead{
  max-width:465px;
  margin:20px 0 0;
  color:#bdc1d8;
  font-size:14px;
  line-height:1.55;
}

.primary-button{
  margin-top:24px;
  display:inline-flex;
  justify-content:space-between;
  align-items:center;
  gap:30px;
  min-width:290px;
  padding:13px 24px;
  border-radius:30px;
  background:linear-gradient(90deg,#a386ef,#b39aff);
  color:#17112f;
  font-weight:800;
  font-size:13px;
  box-shadow:0 8px 30px #7d63da25;
}

.primary-button:hover{
  transform:translateY(-1px);
}

.benefits{
  display:flex;
  gap:28px;
  margin-top:25px;
}

.benefits>div{
  display:flex;
  align-items:center;
  gap:10px;
}

.benefits p{
  margin:0;
  font-size:10px;
  line-height:1.35;
  color:#b9bdd4;
}

.benefit-icon{
  width:34px;
  height:34px;
  border-radius:50%;
  border:1px solid #74729d55;
  display:grid;
  place-items:center;
  background:#272b51;
  color:#c9c2ff;
}


/* UNIVERSO */

.universe-wrap{
  min-width:0;
  height:100%;
  display:grid;
  place-items:center;
}

.universe{
  position:relative;
  width:100%;
  height:min(54vh,465px);
  isolation:isolate;
}

.universe:before{
  content:"";
  position:absolute;
  inset:7% 3%;
  background:radial-gradient(ellipse,#745ed52b 0%,transparent 65%);
  filter:blur(28px);
  z-index:-1;
}

.orbit-ring{
  position:absolute;
  left:9%;
  top:18%;
  width:82%;
  height:64%;
  border:1px solid #a9a6ff1c;
  border-radius:50%;
  transform:rotate(-13deg);
}

.ring-two{
  left:24%;
  top:4%;
  width:54%;
  height:91%;
  transform:rotate(48deg);
  border-style:dashed;
}

.universe-core{
  position:absolute;
  left:50%;
  top:51%;
  transform:translate(-50%,-50%);
  width:145px;
  height:145px;
  border-radius:50%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:4px;
  background:radial-gradient(circle at 28% 20%,#baa3ff,#7555c6 54%,#292252 100%);
  border:1px solid #e3d7ff55;
  box-shadow:
    0 0 65px #7456d55c,
    inset -15px -20px 25px #17114240;
}

.core-star{
  font-size:23px;
}

.universe-core b{
  font-size:22px;
  letter-spacing:.1em;
}

.universe-core small{
  font-size:8px;
  color:#e2daff;
}

.orb{
  position:absolute;
  width:calc(var(--orb-size) * .78);
  height:calc(var(--orb-size) * .78);
  transform:translate(-50%,-50%);
  border-radius:50%;
  border:1px solid #ffffff60;
  background:
    radial-gradient(circle at 28% 20%,#edf0ffaa,var(--orb) 37%,#171d47 105%);
  box-shadow:
    inset -10px -15px 22px #10142755,
    0 10px 25px #0007,
    0 0 25px color-mix(in srgb,var(--orb) 30%,transparent);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:3px;
  cursor:pointer;
  z-index:3;
  transition:transform .25s ease;
}

.orb:hover{
  transform:translate(-50%,-50%) scale(1.09);
}

.orb strong{
  font-size:10px;
  letter-spacing:.04em;
}

.orb span{
  font-size:7px;
}

.constellation{
  position:absolute;
  color:#8890ea;
  font-size:19px;
}

.c1{left:28%;top:22%}
.c2{left:70%;top:67%}
.c3{left:74%;top:20%;font-size:10px;color:#71dacb}


/* FRANJA INFERIOR */

.info-strip{
  display:grid;
  grid-template-columns:31% 29% 40%;
  border:1px solid #6662ab45;
  border-radius:22px;
  background:linear-gradient(135deg,#11162d,#171c3a);
  overflow:hidden;
  margin:0 0 10px;
}

.info-title,
.info-copy,
.project-card{
  min-width:0;
  padding:25px 28px;
}

.info-title{
  border-right:1px solid #ffffff0c;
}

.kicker{
  font-size:8px;
  letter-spacing:.27em;
  font-weight:850;
  color:#bcaeff;
}

.info-title h2{
  margin:13px 0 0;
  font-size:clamp(26px,2.2vw,38px);
  line-height:1.06;
  letter-spacing:-.04em;
}

.info-title h2 span{
  display:block;
  background:linear-gradient(90deg,#ae91ff,#81c1ed);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.info-copy{
  display:flex;
  align-items:center;
}

.info-copy p{
  margin:0;
  color:#bcc0d8;
  font-size:11px;
  line-height:1.65;
}

.project-card{
  margin:15px;
  padding:18px 22px;
  border-radius:18px;
  background:
    radial-gradient(circle at 75% 30%,#56429360,transparent 45%),
    linear-gradient(135deg,#302857,#212649);
  display:grid;
  grid-template-columns:1fr auto;
  gap:18px;
  align-items:center;
}

.project-card h3{
  margin:0;
  font-size:17px;
}

.project-card h4{
  margin:3px 0 8px;
  font-size:22px;
  background:linear-gradient(90deg,#ba9dff,#76c3eb);
  color:transparent;
  -webkit-background-clip:text;
  background-clip:text;
}

.project-card p{
  margin:0;
  font-size:10px;
  line-height:1.5;
  color:#c3c6dc;
}

.project-card>a{
  width:46px;
  height:46px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#8b6cdc;
  border:1px solid #b79ef7;
  font-size:22px;
}


/* FOOTER */

footer{
  border-top:1px solid #ffffff12;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  font-size:9px;
  color:#9fa4bf;
}

.footer-brand{
  display:flex;
  align-items:center;
  gap:8px;
}

.footer-brand>span:last-child{
  display:flex;
  flex-direction:column;
}

.footer-brand b{
  color:white;
  font-size:11px;
}

.footer-brand b span{
  color:#aa91ff;
}

.footer-brand small{
  font-size:5px;
  letter-spacing:.23em;
}

.brand-mark.mini{
  width:25px;
  height:25px;
  border-radius:7px;
  font-size:13px;
}

.footer-message{
  justify-self:center;
}

.footer-meta{
  justify-self:end;
  display:flex;
  gap:25px;
}


/* DIALOG */

dialog{
  max-width:min(450px,90vw);
  border:1px solid #aaa0e24b;
  border-radius:22px;
  padding:35px;
  background:#191b36;
  color:#f3f2ff;
  box-shadow:0 28px 100px #0009;
  text-align:center;
}

dialog::backdrop{
  background:#03050cbb;
  backdrop-filter:blur(5px);
}

.close-dialog{
  position:absolute;
  right:15px;
  top:10px;
  border:0;
  background:none;
  color:white;
  font-size:26px;
}

.dialog-icon{
  width:50px;
  height:50px;
  display:grid;
  place-items:center;
  margin:auto;
}

dialog h2{
  font-size:27px;
}

dialog p{
  color:#c0c2dd;
}

.status{
  display:block;
  color:#bcb1fa;
  margin-bottom:17px;
}

.dialog-button{
  display:inline-block;
  background:#a58cf1;
  color:#17102e;
  font-weight:800;
  padding:13px 22px;
  border-radius:30px;
}


/* 1366x768 y laptops similares */

@media(min-width:901px) and (max-height:800px){

  .page{
    grid-template-rows:54px 1fr 158px 40px;
  }

  .hero-copy{
    padding-left:15px;
  }

  .eyebrow{
    margin-bottom:14px;
  }

  h1{
    font-size:clamp(41px,3.75vw,56px);
  }

  .lead{
    margin-top:13px;
    font-size:12px;
  }

  .primary-button{
    margin-top:17px;
    padding:11px 20px;
  }

  .benefits{
    margin-top:17px;
  }

  .universe{
    height:min(51vh,400px);
  }

  .universe-core{
    width:125px;
    height:125px;
  }

  .orb{
    width:calc(var(--orb-size) * .68);
    height:calc(var(--orb-size) * .68);
  }

  .info-title,
  .info-copy{
    padding:19px 24px;
  }

  .project-card{
    margin:11px;
    padding:14px 18px;
  }

  .info-title h2{
    font-size:29px;
  }
}


/* RESPONSIVE */

@media(max-width:900px){

  body{overflow-y:auto}

  .page{
    display:block;
    width:90%;
  }

  .header{
    min-height:64px;
    grid-template-columns:1fr auto;
  }

  .header nav{
    display:none;
  }

  .nav-cta{
    grid-column:2;
  }

  .top-layout{
    display:block;
    padding:45px 0 20px;
  }

  .hero-copy{
    padding:0;
    text-align:center;
  }

  h1{
    margin:auto;
  }

  .lead{
    margin:20px auto 0;
  }

  .benefits{
    justify-content:center;
  }

  .universe{
    height:400px;
    margin-top:25px;
  }

  .info-strip{
    display:block;
  }

  .info-title{
    border-right:0;
  }

  .project-card{
    margin:0 20px 20px;
  }

  footer{
    padding:20px 0;
    display:flex;
    flex-direction:column;
    gap:15px;
  }

  .footer-meta{
    display:flex;
  }
}

@media(max-width:550px){

  .benefits{
    flex-direction:column;
    align-items:center;
  }

  .universe{
    height:340px;
  }

  .universe-core{
    width:110px;
    height:110px;
  }

  .orb{
    width:calc(var(--orb-size) * .6);
    height:calc(var(--orb-size) * .6);
  }
}

@media(prefers-reduced-motion:reduce){
  *{
    transition:none!important;
  }
}

/* =========================================================
   HUBNC - AJUSTE FINAL PROPUESTA 1
   ancho completo + footer sin superposición
   2026-10-13
   ========================================================= */

@media (min-width:901px){

  /* Aprovechar prácticamente todo el ancho del monitor */
  .page{
    width:min(1740px,98vw);
    min-height:100svh;
    height:100svh;
    margin:0 auto;

    display:grid;
    grid-template-rows:58px minmax(0,1fr) 44px;
  }

  /* MAIN ahora controla correctamente sus dos niveles */
  main{
    min-height:0;
    display:grid;
    grid-template-rows:minmax(0,1fr) 158px;
    gap:10px;
    overflow:hidden;
  }

  /* HERO */
  .top-layout{
    min-height:0;
    height:auto;
    grid-template-columns:39% 61%;
    align-items:center;
  }

  .hero-copy{
    padding-left:28px;
    padding-right:20px;
  }

  h1{
    max-width:650px;
    font-size:clamp(43px,4vw,67px);
  }

  .lead{
    max-width:500px;
  }

  /* El universo utiliza más espacio horizontal */
  .universe-wrap{
    width:100%;
    min-width:0;
  }

  .universe{
    width:100%;
    height:min(53vh,475px);
  }

  .orbit-ring{
    left:5%;
    width:90%;
  }

  .ring-two{
    left:21%;
    width:60%;
  }

  /* Franja inferior: ocupa casi todo el ancho útil */
  .info-strip{
    width:100%;
    height:158px;
    margin:0;
    grid-template-columns:31% 29% 40%;
  }

  .info-title,
  .info-copy{
    padding:20px 26px;
  }

  .info-title h2{
    margin-top:10px;
    font-size:clamp(27px,2vw,36px);
  }

  .project-card{
    height:calc(100% - 20px);
    margin:10px;
    padding:14px 20px;
  }

  .project-card h3{
    font-size:16px;
  }

  .project-card h4{
    font-size:21px;
    margin:2px 0 7px;
  }

  /* FOOTER independiente, nunca encima del contenido */
  footer{
    position:relative;
    width:100%;
    height:44px;
    min-height:44px;

    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;

    border-top:1px solid #ffffff14;
    padding:0 5px;
    margin:0;

    font-size:9px;
    overflow:visible;
  }

  .footer-brand{
    position:static;
  }

  .footer-message{
    position:static;
    justify-self:center;
  }

  .footer-meta{
    position:static;
    justify-self:end;
    display:flex;
    align-items:center;
    gap:24px;
    white-space:nowrap;
  }
}

/* Pantallas grandes */
@media (min-width:1500px) and (min-height:820px){

  .page{
    width:98.5vw;
  }

  .top-layout{
    grid-template-columns:38% 62%;
  }

  .hero-copy{
    padding-left:42px;
  }

  .universe{
    height:min(55vh,500px);
  }
}

/* Laptop 1366x768 */
@media (min-width:901px) and (max-height:800px){

  .page{
    grid-template-rows:52px minmax(0,1fr) 38px;
  }

  main{
    grid-template-rows:minmax(0,1fr) 142px;
    gap:7px;
  }

  .top-layout{
    grid-template-columns:40% 60%;
  }

  h1{
    font-size:clamp(40px,3.65vw,53px);
  }

  .universe{
    height:min(49vh,380px);
  }

  .info-strip{
    height:142px;
  }

  .project-card{
    height:calc(100% - 16px);
    margin:8px;
  }

  footer{
    height:38px;
    min-height:38px;
  }
}


/* =========================================================
   HUBNC - ajuste final de órbitas y textos
   2026-10-13
   ========================================================= */

@media (min-width:901px){

  /* Agrandar las órbitas secundarias */
  .orb{
    width:calc(var(--orb-size) * 1.08) !important;
    height:calc(var(--orb-size) * 1.08) !important;
    padding:10px;
  }

  /* Título dentro de cada esfera */
  .orb strong{
    font-size:15px !important;
    line-height:1.1;
    letter-spacing:.03em;
  }

  /* Subtítulo dentro de cada esfera */
  .orb span{
    font-size:10px !important;
    line-height:1.2;
    max-width:90%;
    text-align:center;
  }
}

/* Laptop / pantallas no tan altas */
@media (min-width:901px) and (max-height:800px){

  .orb{
    width:calc(var(--orb-size) * 0.98) !important;
    height:calc(var(--orb-size) * 0.98) !important;
  }

  .orb strong{
    font-size:13px !important;
  }

  .orb span{
    font-size:9px !important;
  }
}


/* =========================================================
   HUBNC - beneficios ampliados + iconos MD3
   ========================================================= */

@media (min-width:901px){

  .benefits{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    max-width:540px;
    margin-top:28px;
  }

  .benefits>div{
    min-height:68px;
    display:flex;
    align-items:center;
    gap:11px;
    padding:10px 12px;
    border:1px solid #8c85c52b;
    border-radius:16px;
    background:linear-gradient(
      145deg,
      rgba(61,58,111,.28),
      rgba(20,25,52,.18)
    );
  }

  .benefit-icon{
    flex:0 0 auto;
    width:42px;
    height:42px;
    border-radius:14px;
    font-size:17px;
    border:1px solid #9489dd52;
    background:linear-gradient(145deg,#343566,#202648);
    color:#d8d1ff;
    box-shadow:inset 0 1px 0 #ffffff16;
  }

  .benefits p{
    font-size:12px;
    line-height:1.3;
    font-weight:550;
    color:#d5d7e8;
  }

  /* Botón principal */
  .primary-button{
    min-width:315px;
    padding:8px 9px 8px 22px;
    gap:20px;
  }

  .primary-button .md3-arrow{
    margin-left:auto;
    flex:0 0 auto;
    width:36px;
    height:36px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#251d45;
    color:#fff;
    box-shadow:
      inset 0 1px 0 #ffffff1f,
      0 4px 12px #412e8430;
  }

  .primary-button .md3-arrow svg{
    width:18px;
    height:18px;
  }

  .primary-button .md3-arrow path{
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
  }

  .primary-button:hover .md3-arrow{
    transform:translate(2px,-2px);
  }

  /* Botón circular de la tarjeta inferior */
  .project-card>a{
    width:54px;
    height:54px;
    border-radius:18px;
    background:linear-gradient(145deg,#a183f2,#7553d0);
    border:1px solid #c1adff80;
    box-shadow:
      inset 0 1px 0 #ffffff30,
      0 7px 22px #6042bc3d;
    transition:
      transform .2s ease,
      box-shadow .2s ease,
      background .2s ease;
  }

  .project-card>a:hover{
    transform:translateX(3px);
    background:linear-gradient(145deg,#b29af8,#8666dc);
    box-shadow:
      inset 0 1px 0 #ffffff38,
      0 9px 26px #7454d54d;
  }

  .md3-forward{
    width:24px;
    height:24px;
  }

  .md3-forward path{
    fill:none;
    stroke:#fff;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
  }
}

/* Evitar que se aprieten demasiado en laptops bajas */
@media (min-width:901px) and (max-height:800px){

  .benefits{
    margin-top:19px;
    gap:9px;
  }

  .benefits>div{
    min-height:58px;
    padding:8px 9px;
  }

  .benefit-icon{
    width:37px;
    height:37px;
    border-radius:12px;
  }

  .benefits p{
    font-size:11px;
  }
}


/* HUBNC - dialogos descriptivos de aplicaciones */

#app-dialog{
  width:min(520px,92vw);
  padding:38px 38px 34px;
}

#app-dialog h2{
  margin:14px 0 8px;
  font-size:32px;
  letter-spacing:-.035em;
}

.dialog-summary{
  margin:0 auto 17px !important;
  max-width:390px;
  color:#d5cbff !important;
  font-size:15px !important;
  line-height:1.45 !important;
  font-weight:700;
}

#dialog-text{
  margin:0 auto 20px;
  max-width:430px;
  color:#bec2da;
  font-size:13px;
  line-height:1.7;
}

#dialog-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:5px 12px;
  margin:0 auto 18px;
  border:1px solid #9f91df45;
  border-radius:999px;
  background:#ffffff08;
  color:#c9bcff;
  font-size:11px;
  font-weight:700;
}

.dialog-icon{
  width:58px;
  height:58px;
  border-radius:18px;
  box-shadow:
    inset 0 1px 0 #ffffff30,
    0 8px 28px #0004;
}

