/* Sitio público NADKOR (28/09/2026): lo que agregan la carátula de la marca,
   la pestaña de soluciones y las páginas de producto sobre caratula.css.
   Colores de producto: los del catálogo de submarcas
   (marca/catalogo_submarcas_20260925/GUIA_USO.md). DISTINGUEN aplicaciones;
   no reemplazan la paleta de la marca madre: van en el filete de las
   fichas, la barra del producto, sus botones y sus chips -- nunca en el
   logotipo, que son los archivos del catálogo tal cual. */
.producto-erp { --producto: #2B84A1; --producto-oscuro: #1F6780; --producto-suave: #E4F1F6; }
.producto-fiscal { --producto: #76639A; --producto-oscuro: #5C4C7C; --producto-suave: #EFEBF6; }
.producto-contabilidad { --producto: #53856C; --producto-oscuro: #3F6A55; --producto-suave: #E6F0EA; }

main { display: block; }
main section[id] { scroll-margin-top: 72px; }
body[class*="producto-"] main section[id] { scroll-margin-top: 130px; }
.centrado { text-align: center; margin: 2.2rem 0 0; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.boton svg { width: 1rem; height: 1rem; }

/* --- Barra: menú de soluciones, acceso y menú del celular ------------------ */
.barra-enlaces { align-items: center; }
.barra-enlaces a { white-space: nowrap; }
.barra-contenido { gap: 1.5rem; }
.barra-enlaces a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.barra-enlaces > .menu-soluciones > a svg { width: 0.8rem; height: 0.8rem; vertical-align: -0.1rem; }
.menu-soluciones { position: relative; }
.menu-panel { position: absolute; top: calc(100% + 0.9rem); left: 50%; width: 21rem; padding: 0.6rem; border-radius: 16px;
  background: var(--superficie); border: 1px solid var(--borde); box-shadow: var(--sombra-flotante);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity 0.16s, transform 0.16s, visibility 0.16s; }
.menu-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -1rem; height: 1rem; }
.menu-soluciones:hover .menu-panel, .menu-soluciones:focus-within .menu-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.menu-producto { display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 0.7rem; border-radius: 12px; }
.menu-producto:hover, .menu-producto:focus-visible { background: var(--producto-suave); }
.menu-producto img { flex: none; width: 2.5rem; height: 2.5rem; }
.menu-producto strong { display: block; color: var(--navy); font-size: 0.92rem; }
.menu-producto small { display: block; color: var(--texto-secundario); font-size: 0.78rem; font-weight: 500; }
.barra-enlaces .menu-todas { display: flex; align-items: center; justify-content: space-between; margin-top: 0.3rem;
  padding: 0.65rem 0.8rem 0.4rem; border-top: 1px solid var(--borde); font-size: 0.84rem; font-weight: 600; color: var(--azul-hover); }

.acceso, .menu-movil { position: relative; }
.acceso summary, .menu-movil summary { list-style: none; }
.acceso summary::-webkit-details-marker, .menu-movil summary::-webkit-details-marker { display: none; }
.acceso-panel, .menu-movil-panel { position: absolute; right: 0; top: calc(100% + 0.6rem); z-index: 30; min-width: 15rem;
  display: flex; flex-direction: column; padding: 0.5rem; border-radius: 14px; background: var(--superficie);
  border: 1px solid var(--borde); box-shadow: var(--sombra-flotante); }
.acceso-panel a, .menu-movil-panel a { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.75rem; border-radius: 10px;
  text-decoration: none; font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.acceso-panel a:hover, .menu-movil-panel a:hover { background: var(--azul-suave); }
.acceso-panel img { width: 1.75rem; height: 1.75rem; }
.menu-movil-panel a.sangria { padding-left: 1.6rem; font-weight: 500; color: var(--texto-secundario); }
.menu-movil { display: none; }
.boton-icono { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--borde); background: var(--superficie); color: var(--navy); }
.boton-icono svg { width: 1.2rem; height: 1.2rem; }

/* --- Barra del producto (bajo la de NADKOR) -------------------------------- */
.subbarra { position: sticky; top: 72px; z-index: 19; background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--borde); box-shadow: inset 0 3px 0 var(--producto); }
.subbarra-contenido { display: flex; align-items: center; gap: 1.6rem; height: 58px; }
.subbarra-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.subbarra-logo img { display: block; width: 2.1rem; height: 2.1rem; }
.subbarra-logo span { font-weight: 800; font-size: 1rem; color: var(--navy); white-space: nowrap; letter-spacing: -0.01em; }
.subbarra-enlaces { display: flex; gap: 1.3rem; }
.subbarra-enlaces a { text-decoration: none; font-size: 0.86rem; font-weight: 500; color: var(--texto-secundario); }
.subbarra-enlaces a:hover { color: var(--producto-oscuro); }
.subbarra-acciones { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.enlace-acceso { font-size: 0.86rem; font-weight: 600; color: var(--producto-oscuro); text-decoration: none; }
.enlace-acceso:hover { text-decoration: underline; }
.boton-producto { background: var(--producto); color: #FFFFFF; padding: 0.5rem 1rem; font-size: 0.84rem; }
.boton-producto:hover { background: var(--producto-oscuro); }
.hero-garantias svg { color: var(--producto, #2FAE70); }

/* --- Chips de estado ------------------------------------------------------- */
.chip-estado { display: inline-flex; align-items: center; gap: 0.35rem; flex: none; padding: 0.22rem 0.6rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; color: #1E7A4C; background: #E1F4EA; white-space: nowrap; }
.chip-estado::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-estado.chip-piloto { color: #7A5410; background: #FFF1D9; }

/* --- Carátula: la pila de productos del hero ------------------------------- */
.pila-productos { display: flex; flex-direction: column; gap: 1rem; padding-right: 4.4rem; }
.pila-tarjeta { display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.25rem; text-decoration: none; border-radius: 18px;
  background: var(--superficie); border: 1px solid var(--borde); border-left: 5px solid var(--producto);
  box-shadow: var(--sombra); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.pila-tarjeta:nth-child(2) { margin: 0 -2.2rem 0 2.2rem; }
.pila-tarjeta:nth-child(3) { margin: 0 -4.4rem 0 4.4rem; }
.pila-tarjeta:hover { transform: translateX(-4px); box-shadow: var(--sombra-flotante); }
.pila-icono { flex: none; width: 4rem; height: 4rem; }
.pila-texto { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pila-texto strong { font-size: 1.12rem; color: var(--navy); }
.pila-texto span { font-size: 0.86rem; color: var(--texto-secundario); }
.pila-texto .pila-para { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--producto-oscuro); }

/* --- Fichas de producto ---------------------------------------------------- */
.productos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; align-items: stretch; }
.productos-anclas > div { display: flex; scroll-margin-top: 90px; }
.ficha-producto { display: flex; flex-direction: column; width: 100%; padding: 1.7rem 1.6rem; border-radius: 18px;
  background: var(--superficie); border: 1px solid var(--borde); border-top: 5px solid var(--producto); box-shadow: var(--sombra); }
.ficha-producto-cab { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.ficha-producto-cab img { display: block; flex: none; width: 3.25rem; height: 3.25rem; }
.ficha-nombre { flex: 1 1 calc(100% - 4.1rem); min-width: 0; }
.ficha-nombre strong { display: block; font-size: 1.15rem; line-height: 1.2; color: var(--navy); }
.ficha-nombre span { display: block; font-size: 0.76rem; color: var(--texto-secundario); }
.ficha-producto-cab .chip-estado { order: 3; margin-left: 4.05rem; }
.ficha-para { margin: 1.3rem 0 0.3rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--producto-oscuro); }
.ficha-producto h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; color: var(--navy); }
.ficha-resumen { margin: 0.7rem 0 1.1rem; font-size: 0.92rem; color: var(--texto-secundario); }
.ficha-producto ul { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.ficha-producto li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.9rem; }
.ficha-producto li svg { flex: none; width: 1rem; height: 1rem; margin-top: 0.22rem; color: var(--producto); }
.ficha-acciones { display: grid; gap: 0.6rem; }
.ficha-acciones .boton-primario { background: var(--producto); box-shadow: none; }
.ficha-acciones .boton-primario:hover { background: var(--producto-oscuro); }

/* --- Soluciones ------------------------------------------------------------ */
.hero-simple { padding: 4rem 0 3.5rem; text-align: center; }
.hero-simple .envoltura { position: relative; }
.hero-simple h1 { max-width: 46rem; margin: 0 auto; }
.hero-simple .hero-bajada { margin: 1.2rem auto 0; max-width: 42rem; }
.saltos { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.salto { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 1.1rem 0.6rem 0.6rem; border-radius: 999px; text-decoration: none; text-align: left;
  background: var(--superficie); border: 1px solid var(--borde); box-shadow: var(--sombra); }
.salto:hover { border-color: var(--producto); }
.salto img { width: 2.75rem; height: 2.75rem; }
.salto strong { display: block; font-size: 0.92rem; color: var(--navy); }
.salto small { display: block; font-size: 0.76rem; color: var(--texto-secundario); }

.tabla-envoltura { overflow-x: auto; border-radius: 18px; border: 1px solid var(--borde); background: var(--superficie); box-shadow: var(--sombra); }
.comparativo { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.9rem; }
.comparativo th, .comparativo td { padding: 0.85rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid #E6EEF0; }
.comparativo tbody tr:last-child > * { border-bottom: 0; }
.comparativo thead th { background: #F3F8F9; border-bottom: 1px solid var(--borde); }
.comparativo thead th.producto-erp, .comparativo thead th.producto-fiscal, .comparativo thead th.producto-contabilidad { box-shadow: inset 0 4px 0 var(--producto); }
.comparativo thead th img { display: block; width: 2.25rem; height: 2.25rem; margin-bottom: 0.4rem; }
.comparativo thead th span { color: var(--navy); font-size: 0.95rem; }
.comparativo tbody th { width: 22%; font-weight: 600; color: var(--navy); }
.comparativo td { color: var(--texto-secundario); }
.comparativo td.si { color: #1E7A4C; font-weight: 600; }
.comparativo td.no { color: #8B9AA0; }
.comparativo td.parcial { color: #8A5A10; }
.comparativo td.si::before { content: "✓ "; }
.comparativo td.no::before { content: "— "; }

.casos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.caso { padding: 1.6rem 1.5rem; border-radius: var(--radio); background: var(--superficie); border: 1px solid var(--borde);
  border-left: 4px solid var(--producto); box-shadow: var(--sombra); }
.caso h3 { margin: 1rem 0 0.4rem; font-size: 1.05rem; color: var(--navy); }
.caso p { margin: 0 0 1rem; font-size: 0.9rem; color: var(--texto-secundario); }
.caso a { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; font-size: 0.9rem; text-decoration: none; color: var(--producto-oscuro); }

/* --- Maquetas de producto -------------------------------------------------- */
.maqueta-kpis .medio { font-size: 0.68rem; font-weight: 700; margin-top: 0.1rem; color: #A26A12; }
.estado.alerta { background: #FBE3E1; color: #9E322C; }
.maqueta-solo { min-height: 330px; padding-bottom: 2.4rem; }
.maqueta-matriz { width: 100%; border-collapse: collapse; background: #FFFFFF; border: 1px solid var(--borde); border-radius: 10px; font-size: 0.72rem; }
.maqueta-matriz th { padding: 0.5rem 0.4rem; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--texto-secundario); text-align: center; border-bottom: 1px solid var(--borde); }
.maqueta-matriz th:first-child, .maqueta-matriz td:first-child { text-align: left; padding-left: 0.7rem; }
.maqueta-matriz td { padding: 0.48rem 0.4rem; text-align: center; border-top: 1px solid #EDF2F3; white-space: nowrap; }
.luz { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; }
.luz.ok { background: #2FAE70; box-shadow: 0 0 0 3px #DDF3E7; }
.luz.medio { background: #E3A33B; box-shadow: 0 0 0 3px #FCEBCD; }
.luz.alerta { background: #D2564E; box-shadow: 0 0 0 3px #F8DCD9; }
.luz.vacio { background: transparent; border: 2px solid #CCD9DD; }

/* --- Cifras ------------------------------------------------------------------ */
.cifras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 2.6rem; border-radius: 18px; overflow: hidden;
  background: var(--marca-navy); box-shadow: var(--sombra); }
.cifra { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.5rem 1.4rem; }
.cifra + .cifra { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.cifra strong { font-size: 2rem; line-height: 1; font-weight: 800; color: #FFFFFF; }
.cifra span { font-size: 0.86rem; color: #B9CDD3; }
.producto-fiscal .cifra strong, .producto-contabilidad .cifra strong, .producto-erp .cifra strong { color: #FFFFFF; }
.cifras { box-shadow: inset 0 4px 0 var(--producto, var(--marca-teal)), var(--sombra); }

.pasos.pasos-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
[class*="producto-"] .paso-num { background: linear-gradient(145deg, var(--producto), var(--marca-navy)); }

/* --- Programa piloto --------------------------------------------------------- */
.piloto { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: center; }
.piloto .seccion-titulo { margin-bottom: 0; }
.piloto-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; grid-row: span 2; }
.piloto-lista li { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.1rem 1.2rem; border-radius: var(--radio);
  background: var(--superficie); border: 1px solid var(--borde); box-shadow: var(--sombra); }
.piloto-lista strong { display: block; color: var(--navy); }
.piloto-lista span { font-size: 0.9rem; color: var(--texto-secundario); }
.piloto > .boton { justify-self: start; background: var(--producto); }
.piloto > .boton:hover { background: var(--producto-oscuro); }

/* --- Sol alto ----------------------------------------------------------------- */
html[data-theme="sol-alto"] .subbarra { background: rgba(255, 255, 255, 0.96); }
html[data-theme="sol-alto"] .comparativo thead th { background: #F4FAFB; }

/* --- Responsivo --------------------------------------------------------------- */
@media (max-width: 1240px) {
  .barra-enlaces { gap: 1.2rem; }
  .tema-sol-alto span, .barra-enlaces .ocultar-estrecho { display: none; }
}
@media (max-width: 1080px) {
  .barra-acciones > .boton-primario { display: none; }
  .productos, .casos { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-left: auto; margin-right: auto; }
  .pila-productos { max-width: 560px; margin: 0 auto; width: 100%; }
  .subbarra-enlaces { display: none; }
  .cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cifra:nth-child(3) { border-left: 0; }
  .cifra:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .pasos.pasos-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .piloto { grid-template-columns: minmax(0, 1fr); }
  .piloto-lista { grid-row: auto; }
}
@media (max-width: 860px) {
  .menu-movil { display: block; }
  .pasos.pasos-4 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .subbarra { top: 64px; }
  .subbarra-contenido { height: 52px; gap: 0.8rem; }
  .subbarra-logo img { width: 1.75rem; height: 1.75rem; }
  .subbarra-logo span { font-size: 0.9rem; }
  .enlace-acceso { display: none; }
  .pila-productos { padding-right: 0; }
  .pila-tarjeta:nth-child(2), .pila-tarjeta:nth-child(3) { margin: 0; }
  .pila-tarjeta { flex-wrap: wrap; }
  .pila-icono { width: 3.2rem; height: 3.2rem; }
  .acceso summary { padding: 0 0.7rem; height: 2.5rem; }
  .acceso-texto { display: none; }
  .barra-acciones { gap: 0.45rem; }
  .tema-sol-alto { padding: 0.4rem 0.6rem; }
  .cifras { grid-template-columns: minmax(0, 1fr); }
  .cifra + .cifra { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .maqueta-matriz th:nth-child(5), .maqueta-matriz td:nth-child(5) { display: none; }
  .hero-simple { padding: 3rem 0 2.5rem; }
}
