/* Rektiva — rektiva.mx. Las variables de :root las genera build.mjs desde site.config.json. */
:root {
  --fondo: #000000;
  --franja: rgba(5,10,8,0.82);
  --borde: #12302A;
  --texto: #F2F4F3;
  --parrafo: #A3ABA7;
  --verde: #008264;
  --verde-claro: #3CC99A;
  --destello: #7FE0BD;
  --destello-claro: #BEFFE6;
  --blanco: #FFFFFF;
  --eslogan: #DCE2DF;
  --lista: #9AA39F;
  --pie: #8C9590;
  --linea: #E6E6E6;
  --pantalla: #070908;
  --bloque: #0E2A21;
  --trazo: #2FBF8F;
  --verde-rgb: 0,130,100;
  --verde-claro-rgb: 60,201,154;
  --negro-rgb: 0,0,0;
}

/* Jost auto-alojada (latin y latin-ext) */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/jost-latin-ext-300-normal.dabbc44534.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/jost-latin-300-normal.4755701d1a.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/jost-latin-ext-400-normal.470fd71614.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/jost-latin-400-normal.f94cffda16.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/jost-latin-ext-500-normal.a8b3af72a0.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/jost-latin-500-normal.98dce4f076.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.5;
  text-align: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
strong { font-weight: 500; color: var(--verde-claro); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--texto); outline-offset: 6px; }

/* Fondo: red neuronal y brillos */
#red { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.brillos {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 45% at 50% 100%, rgba(var(--verde-rgb), 0.35), transparent 70%),
    radial-gradient(ellipse 80% 35% at 50% 0%, rgba(var(--verde-rgb), 0.22), transparent 70%);
}
.contenido { position: relative; z-index: 1; }

/* Texto común */
.etiqueta {
  font-size: 12px; font-weight: 400; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--verde-claro); padding-left: 0.32em;
}
.titulo {
  margin-top: 22px;
  font-size: clamp(32px, 4vw, 54px); font-weight: 300; line-height: 1.15;
  text-wrap: balance;
}
.linea { font-size: 18px; color: var(--parrafo); }

/* 1. Portada */
.portada {
  position: relative; isolation: isolate;
  height: 100vh; min-height: 700px; max-height: 1000px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 16px;
}
.portada::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 42% 30% at 50% 50%, rgba(var(--negro-rgb), 0.78), rgba(var(--negro-rgb), 0.4) 55%, transparent);
}
.menu { position: absolute; top: 16px; right: 16px; display: flex; gap: 8px; }
.menu a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: 12px; font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--texto);
}
.menu a.menu-contacto { color: var(--verde-claro); }
.portada h1 { line-height: 0; }
.logo-portada { width: min(380px, 64vw); height: auto; aspect-ratio: 8384 / 2524; margin: 0 auto; }
.eslogan {
  margin-top: 36px;
  font-size: clamp(20px, 1.9vw, 26px); font-weight: 300; color: var(--eslogan);
  text-wrap: balance;
}
.eslogan .p { display: inline-block; }
.servicios-lista {
  margin-top: 18px;
  font-size: 12px; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--lista); padding-left: 0.3em;
}
.desliza {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  min-width: 44px; min-height: 44px; padding: 6px 8px;
  font-size: 11px; font-weight: 400; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--verde-claro);
}
.desliza span { padding-left: 0.32em; }
.desliza svg { animation: flota 2.4s ease-in-out infinite; }

/* Entrada (único momento orquestado) */
.logo-portada { animation: aclara 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.eslogan .p { animation: sube 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.eslogan .r1 { animation-delay: 0.9s; }
.eslogan .r2 { animation-delay: 1s; }
.eslogan .r3 { animation-delay: 1.1s; }
.eslogan .r4 { animation-delay: 1.2s; }
.eslogan .r5 { animation-delay: 1.3s; }
.eslogan .r6 { animation-delay: 1.4s; }
.eslogan .r7 { animation-delay: 1.5s; }
.funde-menu { animation: funde 1.2s ease both 1s; }
.funde-lista { animation: funde 1.2s ease both 1.9s; }
.funde-desliza { animation: funde 1.2s ease both 2.2s; }

@keyframes aclara { from { opacity: 0; transform: scale(0.94); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes sube { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes funde { from { opacity: 0; } to { opacity: 1; } }
@keyframes flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* 2. Lo que hacemos */
.servicios { max-width: 1240px; margin: 0 auto; padding: 150px 16px 0; }
.columnas { display: grid; grid-template-columns: 1fr; gap: 96px; margin-top: 88px; }
.servicio { display: flex; flex-direction: column; align-items: center; }
.servicio h3 { margin-top: 36px; font-size: 27px; font-weight: 400; line-height: 1.2; }
.servicio .linea { margin-top: 14px; max-width: 360px; }
.enlace {
  display: inline-block; margin-top: 18px; padding: 14px 0 12px;
  font-size: 12px; font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--texto);
  text-decoration: underline; text-decoration-color: var(--verde);
  text-decoration-thickness: 2px; text-underline-offset: 8px;
}

/* Ilustraciones de línea */
.ilus { height: 260px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 22px; }
.marco { position: relative; overflow: hidden; border: 2px solid var(--linea); background: var(--pantalla); }
.ventana { width: 300px; height: 204px; border-radius: 14px; }
.barra { display: flex; align-items: center; gap: 6px; height: 28px; padding-left: 12px; border-bottom: 2px solid var(--linea); }
.barra i { width: 8px; height: 8px; border: 2px solid var(--linea); border-radius: 50%; }
.barra .direccion { width: 150px; height: 12px; margin-left: 14px; border-radius: 6px; }
.raya { display: block; height: 3px; border-radius: 2px; background: var(--linea); }

.v-menu { position: absolute; left: 12px; top: 40px; width: 56px; height: 148px; padding: 14px 10px; border-radius: 6px; background: var(--bloque); display: flex; flex-direction: column; gap: 10px; }
.v-menu .raya { width: 100%; }
.v-menu .raya:nth-child(2) { width: 70%; }
.v-menu .raya:nth-child(3) { width: 85%; }
.v-tarjetas { position: absolute; left: 80px; top: 40px; width: 204px; display: flex; gap: 8px; }
.v-tarjeta { flex: 1; height: 40px; border: 2px solid var(--linea); border-radius: 6px; }
.v-tarjeta.llena { border-color: var(--verde); background: var(--verde); }
.v-grafica { position: absolute; left: 80px; top: 90px; width: 204px; height: 98px; border: 2px solid var(--linea); border-radius: 6px; padding: 8px 10px; }
.v-grafica svg, .t-grafica svg { width: 100%; height: 100%; }

.pagina { position: absolute; left: 38px; right: 38px; top: 44px; display: flex; flex-direction: column; align-items: center; }
.n-menu { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.n-logo { width: 24px; height: 8px; border-radius: 2px; background: var(--verde); }
.n-rayas { display: flex; gap: 6px; }
.n-rayas .raya { width: 16px; }
.n-hero { width: 100%; height: 64px; margin-top: 12px; border-radius: 6px; background: var(--bloque); }
.n-texto { width: 100%; margin-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.n-texto .raya { width: 72%; height: 4px; }
.n-texto .raya + .raya { width: 50%; }
.n-boton { width: 70px; height: 16px; margin-top: 12px; border-radius: 4px; background: var(--verde); }

.telefono { width: 118px; border-radius: 22px; padding: 16px 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.telefono.alto { height: 232px; }
.telefono.bajo { height: 200px; }
.t-bloque { height: 50px; border-radius: 8px; background: var(--bloque); }
.t-tarjetas { display: flex; gap: 6px; }
.t-tarjetas i { flex: 1; height: 38px; border: 2px solid var(--linea); border-radius: 6px; }
.t-lineas { display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.t-lineas .raya { width: 82%; height: 4px; }
.t-lineas .raya + .raya { width: 56%; }
.t-nav { margin-top: auto; padding-top: 10px; border-top: 2px solid var(--linea); display: flex; justify-content: space-around; }
.t-nav i { width: 8px; height: 8px; border-radius: 50%; background: var(--linea); }
.t-nav i:first-child { background: var(--verde-claro); }
.t-titulo { width: 60%; height: 6px; margin-top: 4px; }
.t-grafica { height: 86px; margin-top: 6px; border: 2px solid var(--linea); border-radius: 6px; padding: 8px 6px; }
.t-boton { margin-top: auto; height: 18px; border-radius: 4px; background: var(--verde); }

.trazo { fill: none; stroke: var(--trazo); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }

/* Secuencia en bucle de 10 s */
.p1 { transform-origin: left center; animation: p1 10s ease infinite; }
.p2 { animation: p2 10s ease infinite; }
.p3 { animation: p3 10s ease infinite; }
.p4 { animation: p4 10s ease infinite; }
.trazo { animation: trazo 10s ease infinite; }
@keyframes p1 { 0%, 5% { opacity: 0; transform: scaleX(0); } 12%, 90% { opacity: 1; transform: scaleX(1); } 96%, 100% { opacity: 0; transform: scaleX(1); } }
@keyframes p2 { 0%, 16% { opacity: 0; transform: translateY(8px); } 23%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes p3 { 0%, 28% { opacity: 0; transform: translateY(8px); } 35%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes p4 { 0%, 40% { opacity: 0; transform: translateY(8px); } 47%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes trazo { 0%, 52% { stroke-dashoffset: 1; opacity: 1; } 70%, 90% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }

/* Próximamente */
.proximamente { margin-top: 120px; }
.pronto {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--verde-claro);
}
.punto { width: 9px; height: 9px; border-radius: 50%; background: var(--verde-claro); animation: late 2s ease-out infinite; }
@keyframes late { 0% { box-shadow: 0 0 0 0 rgba(var(--verde-claro-rgb), 0.6); } 100% { box-shadow: 0 0 0 12px rgba(var(--verde-claro-rgb), 0); } }
.proximamente .descripcion { margin: 16px auto 0; max-width: 640px; font-size: 20px; color: var(--eslogan); text-wrap: balance; }

/* 3. Así se siente */
.franja {
  margin-top: 150px; padding: 104px 16px;
  background: var(--franja);
  border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde);
}
.franja .columnas { max-width: 1240px; margin: 56px auto 0; gap: 64px; }
.franja h3 { font-size: 44px; font-weight: 300; line-height: 1.1; }
.franja .linea { margin: 14px auto 0; max-width: 320px; }

/* 4. Contacto */
.contacto { position: relative; isolation: isolate; padding: 140px 16px; }
.contacto::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 45% at 50% 50%, rgba(var(--negro-rgb), 0.78), rgba(var(--negro-rgb), 0.4) 55%, transparent);
}
.contacto .titulo { margin-top: 0; }
.contacto .linea { margin-top: 16px; }
.correo {
  display: inline-block; margin-top: 44px; padding: 6px 0;
  font-size: clamp(28px, 3.4vw, 44px); font-weight: 300; color: var(--blanco);
}
.linea-viva { position: relative; display: block; height: 2px; margin-top: 12px; overflow: hidden; background: rgba(var(--verde-claro-rgb), 0.35); }
.linea-viva::after {
  content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--destello), transparent);
  animation: corre 3.2s ease-in-out infinite;
}
@keyframes corre { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* 5. Pie */
.pie { background: rgba(var(--negro-rgb), 0.9); border-top: 1px solid var(--borde); padding: 56px 16px 44px; font-size: 14px; color: var(--pie); }
.logo-pie { width: 93px; height: 28px; margin: 0 auto; }
.pie-enlaces { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 6px; }
.pie-enlaces a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
.pie-enlaces a:hover, .enlace:hover { color: var(--verde-claro); }
.pie-enlaces .sep { color: var(--pie); }
.derechos { margin-top: 10px; }

/* 404 */
.p404 { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 16px; position: relative; isolation: isolate; }
.p404::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 40% at 50% 50%, rgba(var(--negro-rgb), 0.78), rgba(var(--negro-rgb), 0.4) 55%, transparent);
}
.logo-404 { width: min(360px, 70vw); height: auto; aspect-ratio: 8384 / 2524; }
.p404 h1 { margin-top: 40px; font-size: clamp(26px, 3vw, 38px); font-weight: 300; }

/* Celular */
@media (max-width: 600px) {
  .portada { height: 100svh; }
  .logo-portada { width: 230px; }
  .eslogan { margin-top: 28px; }
  .servicios-lista span { display: block; }
  .servicios-lista .sep { display: none; }
  .servicios-lista span + .sep + span { margin-top: 6px; }
  .servicios { padding-top: 120px; }
  .proximamente { margin-top: 104px; }
  .franja { margin-top: 120px; }
}

/* Tableta y escritorio */
@media (min-width: 768px) {
  .franja { padding: 130px 24px; }
  .franja .columnas { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .franja h3 { font-size: 54px; }
  .contacto { padding: 170px 24px; }
  .servicios { padding-left: 24px; padding-right: 24px; }
  .menu { top: 20px; right: 24px; }
}
@media (min-width: 1000px) {
  .servicios .columnas { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .servicio h3 { font-size: 30px; }
}

/* Reducir movimiento: todo quieto en su estado final */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .linea-viva::after { display: none; }
}
