/* Hadeon: carta de presentación. Diseño propio, sin kit. Paleta de la marca. */
:root {
  --noche: #021024; --marino: #052659; --acero: #5483B3; --cielo: #7DA0CA; --hielo: #C1E8FF;
  --circuito: #1B8BE0; --circuito-claro: #4FA8F0;
  --fondo: #F5F9FE; --papel: #FFFFFF; --linea: rgb(2 16 36 / .12); --texto: #0B1B33; --suave: #4A5F7E;
  --serif: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tecnica: "Michroma", "Montserrat", system-ui, sans-serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ancho: 1200px; --pad: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.7; color: var(--texto); background: var(--fondo); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.025em; line-height: 1.12; margin: 0; }
p { margin: 0; }
.contenedor { width: 100%; max-width: calc(var(--ancho) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.etiqueta { font-family: var(--tecnica); font-size: 11px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--acero); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--marino); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--circuito); outline-offset: 3px; border-radius: 4px; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); white-space: nowrap; }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--claro { background: #fff; color: var(--noche); }
.btn--claro:hover { background: var(--hielo); }
.btn--oscuro { background: var(--marino); color: #fff; }
.btn--oscuro:hover { background: var(--noche); }
.btn--borde { border-color: rgb(255 255 255 / .32); color: #fff; }
.btn--borde:hover { border-color: #fff; background: rgb(255 255 255 / .08); }
.btn--borde-oscuro { border-color: var(--linea); color: var(--texto); }
.btn--borde-oscuro:hover { border-color: var(--marino); }

/* encabezado */
.cab { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s var(--ease), box-shadow .3s var(--ease); color: #fff; }
.cab.es-claro, .cab.abierto { background: rgb(2 16 36 / .92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgb(255 255 255 / .08); }
.cab__barra { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.marca { display: inline-block; text-decoration: none; font: 700 26px/1.2 var(--sans); letter-spacing: -.01em; white-space: nowrap; flex: none; }
/* La H del logo es la H de la palabra. Su caja mide exactamente el cuerpo de la letra (0.95 em de alto) y apoya en la línea del texto;
   el dibujo completo (con las líneas de circuito) se coloca dentro y puede sobresalir sin mover el texto. */
.marca .hh { display: inline-block; position: relative; width: 0.7792em; height: 0.95em; margin-right: .08em; vertical-align: baseline; }
.marca .hh img { position: absolute; left: -0.0886em; top: -0.1297em; height: 1.2295em; width: auto; max-width: none; }
.menu { display: flex; align-items: center; gap: 34px; }
.menu a { text-decoration: none; font-size: 15px; font-weight: 500; opacity: .86; position: relative; padding: 6px 0; }
.menu a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.menu a:not(.btn):hover { opacity: 1; }
.menu a:not(.btn):hover::after { transform: scaleX(1); }
.menu .btn { height: 44px; padding: 0 20px; font-size: 15px; opacity: 1; }
.cab__toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgb(255 255 255 / .3); background: transparent; color: #fff; cursor: pointer; }
.cab__toggle svg { width: 20px; height: 20px; }

/* hero */
.hero { position: relative; background: var(--noche); color: #fff; overflow: hidden; padding: 150px 0 0; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(60% 55% at 85% 20%, rgb(27 139 224 / .28), transparent 70%),
  radial-gradient(50% 60% at 0% 100%, rgb(5 38 89 / .9), transparent 70%); }
.hero__rejilla { position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(rgb(125 160 202 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(125 160 202 / .07) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent); }
.circuito { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.circuito path { fill: none; stroke: var(--circuito-claro); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .55; stroke-dasharray: 1; stroke-dashoffset: 1; animation: trazo 2.6s var(--ease) .5s forwards; }
.circuito path:nth-child(2) { animation-delay: .9s; }
.circuito path:nth-child(3) { animation-delay: 1.3s; }
.circuito circle { fill: var(--circuito-claro); opacity: 0; animation: aparece .6s ease 2.4s forwards; }
@keyframes trazo { to { stroke-dashoffset: 0; } }
@keyframes aparece { to { opacity: 1; } }
.hero__cuerpo { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-bottom: 96px; }
.hero h1 { font-size: clamp(36px, 4.7vw, 64px); margin: 18px 0 24px; }
.hero h1 em { font-style: normal; color: var(--hielo); }
.hero__sub { font-size: clamp(16px, 1.35vw, 18px); color: rgb(255 255 255 / .8); max-width: 54ch; }
.hero__acciones { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__clientes { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .14); font-size: 14px; color: rgb(255 255 255 / .62); display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero__clientes b { color: rgb(255 255 255 / .9); font-weight: 600; }
.ventana { background: #fff; border-radius: 16px; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .7), 0 0 0 1px rgb(255 255 255 / .1); overflow: hidden; }
.ventana__barra { display: flex; gap: 7px; padding: 12px 14px; background: #E8EFF8; }
.ventana__barra i { width: 10px; height: 10px; border-radius: 50%; background: #BCC9DC; }
.ventana img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.hero .ventana { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.hero__visual { position: relative; }
.hero__visual::after { content: ""; position: absolute; inset: -30px -40px -30px 10%; z-index: -1; background: radial-gradient(closest-side, rgb(27 139 224 / .35), transparent); filter: blur(30px); }

/* secciones */
.seccion { padding: clamp(80px, 10vw, 140px) 0; }
.seccion__cab { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.seccion__cab h2 { font-size: clamp(30px, 3.6vw, 46px); margin-top: 14px; }
.seccion__cab p { margin-top: 18px; font-size: 17px; color: var(--suave); }
.oscura { background: var(--noche); color: #fff; }
.oscura .seccion__cab p { color: rgb(255 255 255 / .72); }
.oscura .etiqueta { color: var(--cielo); }

/* qué hacemos */
.servicios { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.servicio { background: var(--papel); border: 1px solid var(--linea); border-radius: 20px; padding: 32px 28px 34px; display: flex; flex-direction: column; gap: 14px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.servicio:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgb(5 38 89 / .5); border-color: rgb(84 131 179 / .5); }
.servicio__num { font: 400 13px/1 var(--tecnica); color: var(--acero); letter-spacing: .1em; }
.servicio svg { width: 40px; height: 40px; stroke: var(--marino); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin: 6px 0 4px; }
.servicio h3 { font-size: 22px; }
.servicio p { color: var(--suave); font-size: 16px; }

/* Nodus */
.nodus { position: relative; background: linear-gradient(180deg, var(--noche), var(--marino) 160%); }
.nodus__layout { display: grid; grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.pestanas { display: flex; flex-direction: column; margin-top: 28px; }
.pestana { text-align: left; background: none; border: 0; border-top: 1px solid rgb(255 255 255 / .14); color: rgb(255 255 255 / .62); padding: 18px 0; cursor: pointer; font: inherit; transition: color .25s var(--ease); }
.pestana:last-child { border-bottom: 1px solid rgb(255 255 255 / .14); }
.pestana strong { display: block; font: 600 20px/1.25 var(--serif); color: inherit; }
.pestana span { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease), margin .4s var(--ease); font-size: 16px; color: rgb(255 255 255 / .78); }
.pestana span > em { font-style: normal; overflow: hidden; }
.pestana[aria-selected="true"] { color: #fff; }
.pestana[aria-selected="true"] span { grid-template-rows: 1fr; margin-top: 10px; }
.pestana:hover { color: #fff; }
.nodus__pantallas { position: relative; }
.nodus__pantallas .ventana { position: relative; }
.pantalla { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease); }
.pantalla.activa { opacity: 1; }
.pantalla img { height: 100%; }
.ventana--nodus .marco { position: relative; aspect-ratio: 16 / 10; }
.hechos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: clamp(48px, 6vw, 80px); padding-top: 36px; border-top: 1px solid rgb(255 255 255 / .14); }
.hechos h3 { font-size: 19px; margin-bottom: 8px; }
.hechos p { color: rgb(255 255 255 / .72); font-size: 16px; }
.pronto { margin-top: 36px; font-size: 14px; color: rgb(255 255 255 / .55); }

/* clientes */
.clientes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.cliente { display: flex; flex-direction: column; text-decoration: none; }
.cliente__img { overflow: hidden; border-radius: 16px; border: 1px solid var(--linea); background: #fff; aspect-ratio: 16 / 10; position: relative; }
.cliente__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a.cliente:hover .cliente__img img { transform: scale(1.03); }
.cliente__etiqueta { position: absolute; left: 12px; top: 12px; background: rgb(2 16 36 / .85); color: #fff; font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 8px 11px; border-radius: 999px; }
.cliente h3 { font-size: 22px; margin: 18px 0 6px; }
.cliente p { color: var(--suave); font-size: 16px; }
.cliente__enlace { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--marino); display: inline-flex; gap: 8px; align-items: center; }
.cliente__enlace svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
a.cliente:hover .cliente__enlace svg { transform: translate(3px, -3px); }
.vivo { margin-top: clamp(56px, 7vw, 96px); }
.vivo__cab { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.vivo__cab h3 { font-size: clamp(24px, 2.6vw, 32px); }
.vivo__cab p { color: var(--suave); }
.vivo__rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.vivo__item { position: relative; display: block; border-radius: 20px; overflow: hidden; text-decoration: none; color: #fff; background: var(--noche); aspect-ratio: 16 / 9; isolation: isolate; }
.vivo__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .7s var(--ease), opacity .4s; z-index: -1; }
.vivo__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(2 16 36 / .85), rgb(2 16 36 / 0) 55%); z-index: -1; }
.vivo__item:hover img { transform: scale(1.04); opacity: 1; }
.vivo__texto { position: absolute; left: 28px; right: 28px; bottom: 24px; }
.vivo__texto h4 { margin: 0 0 6px; font: 600 22px/1.2 var(--serif); }
.vivo__texto span { font-size: 15px; color: rgb(255 255 255 / .8); display: inline-flex; align-items: center; gap: 8px; }
.punto { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 4px rgb(61 220 132 / .25); }

/* proceso */
.proceso { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; position: relative; counter-reset: paso; }
.proceso::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: linear-gradient(90deg, var(--acero), rgb(84 131 179 / .1)); }
.paso { position: relative; padding-top: 70px; }
.paso::before { counter-increment: paso; content: counter(paso); position: absolute; top: 0; left: 0; width: 47px; height: 47px; display: grid; place-items: center; border-radius: 50%; background: var(--fondo); border: 1px solid var(--acero); font: 400 15px/1 var(--tecnica); color: var(--marino); }
.paso h3 { font-size: 21px; margin-bottom: 10px; }
.paso p { color: var(--suave); font-size: 16px; }

/* preguntas */
.preguntas { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq details { border-top: 1px solid var(--linea); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--linea); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; font: 600 19px/1.35 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 30px/1 var(--sans); color: var(--acero); transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--suave); max-width: 62ch; }

/* cierre y pie */
.cierre { background: var(--marino); color: #fff; position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.cierre::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 50% 120%, rgb(27 139 224 / .45), transparent), radial-gradient(40% 60% at 0% 0%, rgb(2 16 36 / .6), transparent); }
.cierre h2 { font-size: clamp(34px, 4.6vw, 62px); max-width: 18ch; margin: 0 auto; }
.cierre p { margin: 22px auto 0; color: rgb(255 255 255 / .78); max-width: 48ch; font-size: 18px; }
.cierre .hero__acciones { justify-content: center; }
.pie { background: var(--noche); color: rgb(255 255 255 / .7); padding: 64px 0 36px; font-size: 15px; }
.pie__rejilla { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
.pie .marca { color: #fff; }
.pie p { margin-top: 18px; max-width: 34ch; }
.pie .pie__legal { max-width: none; }
.pie h3 { font: 400 11px/1 var(--tecnica); letter-spacing: .14em; text-transform: uppercase; color: var(--cielo); margin-bottom: 18px; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pie a { text-decoration: none; }
.pie a:hover { color: #fff; }
.pie__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .12); font-size: 14px; }

/* entrada suave al bajar */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.rv.dentro { opacity: 1; transform: none; }
.entra { opacity: 0; transform: translateY(14px); animation: entra .9s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes entra { to { opacity: 1; transform: none; } }
html:not(.js) .rv, html:not(.js) .entra { opacity: 1; transform: none; animation: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .entra { opacity: 1; transform: none; animation: none; transition: none; }
  .circuito path { animation: none; stroke-dashoffset: 0; } .circuito circle { animation: none; opacity: 1; }
  .hero .ventana { transform: none; }
}

/* tablet y teléfono */
@media (max-width: 1023px) {
  .hero__cuerpo, .nodus__layout, .preguntas { grid-template-columns: minmax(0, 1fr); }
  .hero .ventana { transform: none; }
  .servicios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clientes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proceso { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .proceso::before { display: none; }
  .pie__rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cab__toggle { display: grid; place-items: center; }
  .menu { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad) 24px; background: var(--noche); border-top: 1px solid rgb(255 255 255 / .1); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; }
  .cab.abierto .menu { opacity: 1; transform: none; visibility: visible; }
  .menu a:not(.btn) { padding: 16px 0; font-size: 18px; border-bottom: 1px solid rgb(255 255 255 / .1); }
  .menu .btn { margin-top: 20px; height: 52px; }
}
@media (max-width: 639px) {
  body { font-size: 16px; }
  .hero { padding-top: 112px; }
  .hero__cuerpo { padding-bottom: 64px; }
  .hero__acciones .btn, .cierre .btn { width: 100%; }
  .servicios, .clientes, .vivo__rejilla, .hechos, .pie__rejilla { grid-template-columns: minmax(0, 1fr); }
  .proceso { grid-template-columns: minmax(0, 1fr); }
  .vivo__item { aspect-ratio: 4 / 3; }
  .vivo__texto { left: 20px; right: 20px; }
  .marca { font-size: 23px; }
  .pestana strong { font-size: 19px; }
}

/* páginas legales */
.legal { max-width: 820px; padding-top: 140px; padding-bottom: 96px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); margin: 14px 0 10px; }
.legal__vigencia { color: var(--suave); font-size: 15px; margin-bottom: 36px; }
.legal h2 { font-size: 21px; margin: 40px 0 12px; }
.legal p, .legal li { color: #24344f; max-width: 70ch; }
.legal ul { padding-left: 20px; display: grid; gap: 10px; margin: 12px 0 0; }
.legal a { color: var(--marino); text-underline-offset: 3px; }
.cab--legal .menu--simple { display: flex; }
.menu--simple a { opacity: .9; }
@media (max-width: 1023px) { .menu--simple { position: static; flex-direction: row; padding: 0; background: none; border: 0; transform: none; opacity: 1; visibility: visible; } .menu--simple a:not(.btn) { padding: 6px 0; font-size: 15px; border: 0; } }
@media (max-width: 639px) { .legal { padding-top: 112px; } }
