/* =========================================================
   Symfonet360 · landing
   Colores y tipografías según docs/guia-ui-ux.md (Symfonet).
   Sin degradados (MAR-6). Fuentes servidas localmente (OFL).
   ========================================================= */

/* ---------- Fuentes ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  /* Sólo tema oscuro (decisión de Edgar, 2026-11-04). */
  --lienzo: #0B0F1D;
  --superficie: #161C2C;
  --superficie-2: #1D2436;
  --texto: #EEF1F6;
  --texto-2: #A6AEC0;
  --borde: #262E42;
  --borde-fuerte: #36405A;
  --acento: #59B265;          /* verde del logotipo: fondos de botón y marcas */
  --sobre-acento: #0B0F1D;    /* texto encima del acento */
  --verde-texto: #7CC487;     /* verde para texto y enlaces */
  --acento-suave: #17301F;
  --turquesa: #00A87D;
  --invertido-fondo: #111626;
  --invertido-texto: #F3F5F9;
  --invertido-texto-2: #B4BBCB;
  --invertido-borde: #2B3449;
  --placa: #FFFFFF;           /* placa clara para los logotipos de otros productos */
  --sombra: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --foco: #7CC487;

  --f-titulo: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-texto: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radio: 14px;
  --radio-chico: 10px;
  --ancho: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--lienzo);
  color: var(--texto);
  font-family: var(--f-texto);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3 { font-family: var(--f-titulo); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.8vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--verde-texto); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
svg { display: block; }

.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;
}
.saltar {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--acento); color: var(--sobre-acento); padding: .7rem 1rem; border-radius: var(--radio-chico);
  font-weight: 600; text-decoration: none;
}
.saltar:focus { top: 12px; }

.contenedor { width: 100%; max-width: calc(var(--ancho) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.icono { width: 24px; height: 24px; flex: none; }
.icono--externo { display: inline-block; width: .95em; height: .95em; margin-left: .25em; vertical-align: -.1em; }

.etiqueta {
  display: inline-block; margin: 0 0 .9rem;
  font-family: var(--f-mono); font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--verde-texto);
}
.etiqueta--invertida { color: #7CC487; }
.resalte { color: var(--verde-texto); }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px;
  font-family: var(--f-texto); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, transform .15s;
}
.boton--primario { background: var(--acento); color: var(--sobre-acento); }
.boton--primario:hover { background: #6BC077; }
.boton--secundario { background: transparent; color: var(--texto); border-color: var(--borde-fuerte); }
.boton--secundario:hover { border-color: var(--texto); }
.boton--chico { min-height: 40px; padding: .5rem 1.1rem; font-size: .9375rem; }
@media (prefers-reduced-motion: no-preference) { .boton:active { transform: translateY(1px); } }

.icono-boton {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border-radius: 999px; border: 1px solid var(--borde); background: var(--superficie); color: var(--texto); cursor: pointer;
}
.icono-boton:hover { border-color: var(--borde-fuerte); }
.icono-boton .icono { width: 20px; height: 20px; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: var(--lienzo);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.cabecera--elevada { border-bottom-color: var(--borde); box-shadow: var(--sombra); }
.cabecera__fila { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.marca { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--texto); margin-right: auto; padding: 4px 0; }
.marca { gap: 2px; border-radius: 6px; }
.marca__logo { display: block; height: 36px; width: auto; }
.eslogan { font-family: var(--f-titulo); font-weight: 500; font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem); color: var(--verde-texto); margin: 0 0 1rem; }
.marca__sub { font-family: var(--f-texto); font-weight: 500; font-size: .75rem; line-height: 1.2; color: var(--texto-2); }



.nav__lista { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.nav__lista a:not(.boton) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem;
  color: var(--texto); text-decoration: none; font-weight: 500; border-radius: 999px;
}
.nav__lista a:not(.boton):hover { background: var(--superficie-2); }
.nav__lista li:last-child { margin-left: .5rem; }
.cabecera__acciones { display: flex; gap: .5rem; }
.nav__abrir { display: none; }
.icono--cerrar { display: none; }
.nav__abrir[aria-expanded="true"] .icono--menu { display: none; }
.nav__abrir[aria-expanded="true"] .icono--cerrar { display: block; }

@media (max-width: 1179.98px) {
  .nav__abrir { display: inline-grid; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--superficie); border-bottom: 1px solid var(--borde); box-shadow: var(--sombra);
    padding: .75rem var(--gutter) 1.25rem;
  }
  .nav--abierta { display: block; }
  .nav__lista { flex-direction: column; align-items: stretch; gap: .25rem; }
  .nav__lista a:not(.boton) { width: 100%; padding: 0 .75rem; border-radius: var(--radio-chico); }
  .nav__lista li:last-child { margin: .5rem 0 0; }
  .nav__lista .boton { width: 100%; min-height: 48px; }
  .cabecera { position: sticky; }
  .cabecera__fila { position: relative; }
}

/* ---------- Portada ---------- */
.portada { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 7vw, 6rem); }
.portada__rejilla { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .portada__rejilla { grid-template-columns: 1.15fr .85fr; } }
.portada__intro { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--texto-2); max-width: 38em; }
.portada__acciones { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 2.5rem; }
.portada__datos {
  list-style: none; margin: 0; padding: 1.5rem 0 0; border-top: 1px solid var(--borde);
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  color: var(--texto-2); font-size: .9375rem; line-height: 1.4;
}
.dato { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 1.75rem; color: var(--texto); line-height: 1.2; margin-bottom: .2rem; }

.portada__ilustracion { margin: 0; justify-self: center; width: min(100%, 460px); }
.orbita { width: 100%; height: auto; overflow: visible; }
.orbita__anillo { fill: none; stroke: var(--borde-fuerte); stroke-width: 1.5; stroke-dasharray: 3 7; }
.orbita__anillo--interno { stroke: var(--borde); stroke-dasharray: none; }
.orbita__rayos path { stroke: var(--borde-fuerte); stroke-width: 1.25; }
.orbita__centro { fill: var(--acento); }
.orbita__centro-texto { font-family: var(--f-titulo); font-weight: 600; font-size: 17px; fill: var(--sobre-acento); }
.orbita__centro-num { font-family: var(--f-mono); font-weight: 500; font-size: 20px; fill: var(--sobre-acento); }
.orbita__nodos circle { fill: var(--superficie); stroke: var(--borde-fuerte); stroke-width: 1.25; }
.orbita__nodos use { color: var(--verde-texto); }
.orbita__pulso { fill: none; stroke: var(--turquesa); stroke-width: 2; opacity: 0; transform-origin: 240px 240px; }
@media (prefers-reduced-motion: no-preference) {
  .orbita__pulso { animation: pulso 4.5s ease-out infinite; }
  @keyframes pulso {
    0% { transform: scale(.5); opacity: .55; }
    80%, 100% { transform: scale(1.55); opacity: 0; }
  }
}

/* ---------- Secciones ---------- */
.seccion { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.seccion--superficie { background: var(--superficie); border-block: 1px solid var(--borde); }
.seccion__cabecera { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.seccion__intro { color: var(--texto-2); font-size: 1.0625rem; margin: 0; }

/* ---------- Sistemas ---------- */
.sistemas { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.sistema {
  background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 1.5rem; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s;
}
.sistema:hover { border-color: var(--borde-fuerte); box-shadow: var(--sombra); }
.sistema > p { color: var(--texto-2); font-size: .9688rem; }
.sistema__icono {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1.1rem;
  border-radius: 12px; background: var(--acento-suave); color: var(--verde-texto);
}
.sistema__nombre { font-size: 1.1875rem; margin-bottom: .45rem; }
.sistema__alias { display: block; font-family: var(--f-mono); font-size: .8125rem; font-weight: 400; color: var(--texto-2); margin-top: .15rem; letter-spacing: 0; }

.lista-check { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: .5rem; font-size: .9375rem; }
.lista-check li { position: relative; padding-left: 1.6rem; line-height: 1.45; }
.lista-check li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--acento-suave);
}
.lista-check li::after {
  content: ""; position: absolute; left: .34rem; top: .43em; width: .38rem; height: .2rem;
  border-left: 2px solid var(--verde-texto); border-bottom: 2px solid var(--verde-texto); transform: rotate(-45deg);
}

/* ---------- Plataforma común ---------- */
.rasgos { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 2.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.rasgo { padding-top: 1.25rem; border-top: 2px solid var(--acento); }
.rasgo__icono { color: var(--verde-texto); margin-bottom: .9rem; width: 28px; height: 28px; }
.rasgo p { color: var(--texto-2); margin: 0; }

/* ---------- Conexiones ---------- */
.diagrama {
  margin: 0 0 clamp(2rem, 4vw, 3rem); padding: clamp(1rem, 3vw, 2rem);
  background: var(--superficie); border: 1px solid var(--borde); border-radius: calc(var(--radio) + 4px);
}
.diagrama__svg { width: 100%; height: auto; margin: 0 auto; }
.diagrama__svg--angosto { display: none; max-width: 420px; }
@media (max-width: 899.98px) {
  .diagrama__svg--ancho { display: none; }
  .diagrama__svg--angosto { display: block; }
}
.dg-grupo { font-family: var(--f-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; fill: var(--texto-2); }
.dg-lineas path { fill: none; stroke: var(--turquesa); stroke-width: 2; stroke-dasharray: 5 6; }
@media (prefers-reduced-motion: no-preference) {
  .dg-lineas path { animation: flujo 1.6s linear infinite; }
  @keyframes flujo { to { stroke-dashoffset: -22; } }
}
.dg-puntos circle { fill: var(--turquesa); }
.dg-nodo rect { fill: var(--lienzo); stroke: var(--borde-fuerte); stroke-width: 1.25; }
.dg-titulo { font-family: var(--f-titulo); font-weight: 600; font-size: 16.5px; fill: var(--texto); }
.dg-sub { font-family: var(--f-texto); font-size: 13.5px; fill: var(--texto-2); }
.dg-centro rect { fill: var(--acento); }
.dg-centro-titulo { font-family: var(--f-titulo); font-weight: 700; font-size: 24px; fill: var(--sobre-acento); }
.dg-centro-sub { font-family: var(--f-mono); font-size: 12.5px; fill: var(--sobre-acento); }

.conexiones { display: grid; gap: 2rem; }
@media (min-width: 900px) { .conexiones { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.conexiones__grupo h3 { font-size: 1rem; font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--texto-2); margin-bottom: 1rem; }
.conexiones__lista { margin: 0; display: grid; gap: 1.25rem; }
.conexiones__lista dt { font-family: var(--f-titulo); font-weight: 600; font-size: 1.0625rem; }
.conexiones__lista dd { margin: .2rem 0 0; color: var(--texto-2); }

/* ---------- Seguridad (bloque invertido) ---------- */
.seccion--invertida { background: var(--invertido-fondo); color: var(--invertido-texto); }
.seguridad { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .seguridad { grid-template-columns: .9fr 1.1fr; gap: 4rem; } }
.seguridad__texto p:not(.etiqueta) { color: var(--invertido-texto-2); font-size: 1.0625rem; }
.seguridad__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.seguridad__lista li { display: flex; gap: 1rem; padding: 1.25rem; border: 1px solid var(--invertido-borde); border-radius: var(--radio); }
.seguridad__lista .icono { color: #7CC487; margin-top: .1rem; }
.seguridad__lista h3 { font-size: 1.0625rem; margin-bottom: .25rem; }
.seguridad__lista p { color: var(--invertido-texto-2); margin: 0; font-size: .9375rem; }

/* ---------- Contacto ---------- */
.contacto { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .contacto { grid-template-columns: .9fr 1.1fr; gap: 4rem; } }
.contacto__texto > p:not(.etiqueta) { color: var(--texto-2); font-size: 1.0625rem; }
.contacto__texto .lista-check { margin-top: 1.5rem; font-size: 1rem; }
.contacto__formulario {
  background: var(--superficie); border: 1px solid var(--borde); border-radius: calc(var(--radio) + 4px);
  padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--sombra);
}
/* Contenedor del formulario de Tally */
.tally { min-height: 360px; display: grid; }
.tally iframe { width: 100%; border: 0; min-height: 360px; }
.tally__aviso {
  display: grid; place-items: center; text-align: center; margin: 0; padding: 2rem;
  border: 1.5px dashed var(--borde-fuerte); border-radius: var(--radio); color: var(--texto-2);
}
.aviso-privacidad { margin: 1.25rem 0 0; font-size: .875rem; color: var(--texto-2); }

/* ---------- Pie ---------- */
.pie { border-top: 1px solid var(--borde); padding: 2.5rem 0; font-size: .9375rem; }
.pie__fila { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .pie__fila { grid-template-columns: 1fr auto; align-items: center; } }
.pie__zublime { display: inline-flex; padding: 6px 0; margin-bottom: .5rem; border-radius: 4px; }
.pie__zublime img { height: 20px; width: auto; }
.pie__marca p:last-child { margin: 0; color: var(--texto-2); }
.pie__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.pie__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--texto); }
.pie__nav a:hover { color: var(--verde-texto); }
.pie__legal { grid-column: 1 / -1; margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--borde); color: var(--texto-2); font-size: .8125rem; }

@media print {
  .cabecera, .portada__ilustracion, .diagrama { display: none; }
  .seccion--invertida { background: none; color: #000; }
}
.dg-titulo--chico { font-size: 14.5px; }

/* ---------- Logotipos de otros productos (sobre placa clara, MAR-1) ---------- */
.placa {
  display: flex; align-items: center; justify-content: flex-start;
  min-height: 64px; padding: 12px 16px; margin-bottom: 1rem;
  background: var(--placa); border-radius: var(--radio-chico); width: fit-content;
}
.placa img { display: block; height: 36px; width: auto; }
.placa--sqp { background: #F8FDFE; }
.placa--sqp img { height: 40px; }
.placa--texto { background: var(--superficie-2); border: 1px solid var(--borde-fuerte); }
.placa--texto { gap: .75rem; }
.placa--texto img { height: 40px; width: 40px; }
.placa--texto span { font-family: var(--f-titulo); font-weight: 600; font-size: 1.0625rem; color: var(--texto); }
.productos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.producto p { margin: 0; color: var(--texto-2); }
.producto strong { color: var(--texto); font-weight: 600; }
.nav__clientes { margin-left: .5rem; }
@media (max-width: 1179.98px) { .nav__clientes { margin: .5rem 0 0; } }
/* El formulario de Tally se muestra con su propio fondo claro hasta que tenga un tema oscuro en Tally. */
.tally iframe { background: #FFFFFF; border-radius: var(--radio-chico); }

/* Enlace discreto al Symfonet360 del personal de Zublime (backoffice interno). */
.pie__interno { color: var(--texto-2); text-decoration-color: var(--borde-fuerte); }
.pie__interno:hover { color: var(--texto); }
