/* =====================================================================
   GEXIA — Portada (todo lo que sigue al hero)
   Tokens y componentes base en gexia.css.
   Ritmo: oscuro (hero) → claro → oscuro → claro → oscuro (foto) → claro
   → oscuro → claro → pie oscuro. Cada sección sube como una hoja sobre
   la anterior (.sheet) para que el paso entre fondos sea continuo.
   ===================================================================== */

/* El hero deja sitio para la hoja que se superpone */
.gx-hero { padding-bottom: var(--sheet-r); }

/* ---------- Encabezados de sección en dos columnas ---------- */
.platform-head, .pipe-head {
  display: grid; gap: 1.25rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 64rem) {
  .platform-head, .pipe-head { grid-template-columns: 1.1fr 0.9fr; }
}

/* =====================================================================
   1. El problema · comparación "Sistemas aislados" / "Con GEXIA"
   ===================================================================== */
.problem-top { display: grid; gap: 2rem; align-items: center; grid-template-areas: "intro" "compare" "more"; }
.problem-intro { grid-area: intro; }
.compare { grid-area: compare; }
.problem-more { grid-area: more; display: grid; gap: 1.25rem; max-width: 34rem; }
.problem-intro { display: grid; gap: 1rem; max-width: 34rem; }
@media (min-width: 64rem) { .problem-top { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); grid-template-areas: "intro compare" "more compare"; column-gap: clamp(2.5rem, 5vw, 5rem); row-gap: 1.25rem; } .compare { grid-row: 1 / span 2; } }

.compare { display: grid; gap: 1rem; justify-items: start; }
.compare-switch { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1px var(--hair); }
.compare-switch button {
  min-height: 40px; padding: 0 1.1rem; border: 0; border-radius: 999px; cursor: pointer; background: none;
  font: 600 0.875rem/1 var(--font); color: var(--fg-2); transition: background-color 250ms, color 250ms;
}
.compare-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.compare-stage {
  width: 100%; position: relative; border-radius: var(--r-l); padding: 1.25rem;
  background: transparent; box-shadow: 0 0 0 1px transparent;
  transition: background-color 600ms var(--ease), box-shadow 600ms var(--ease), padding 600ms var(--ease);
}
.compare-bar {
  display: flex; align-items: center; justify-content: space-between; height: 0; overflow: hidden; opacity: 0;
  margin: 0 0 0; padding: 0 1rem; border-radius: 12px; background: #0c1f4d;
  transition: height 600ms var(--ease), opacity 400ms, margin 600ms var(--ease);
}
.compare-bar img { height: 16px; width: auto; }
.compare-bar span { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--snow); }
.compare-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--action); box-shadow: 0 0 0 3px rgba(60, 207, 122, 0.25); }

.compare-mods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; transition: gap 600ms var(--ease); }
@media (min-width: 40rem) { .compare-mods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.compare-mods li {
  display: grid; gap: 0.5rem; padding: 1rem; border-radius: 14px; background: var(--paper);
  border: 1.5px dashed rgba(10, 16, 34, 0.22);
  transition: transform 600ms var(--ease), border-color 500ms, border-style 0s 300ms;
}
.compare-mods li:nth-child(1) { transform: rotate(-2.5deg) translateY(4px); }
.compare-mods li:nth-child(2) { transform: rotate(2deg) translateY(-6px); }
.compare-mods li:nth-child(3) { transform: rotate(-1.5deg) translateY(8px); }
.compare-mods li:nth-child(4) { transform: rotate(2.5deg) translateY(2px); }
.compare-mods li:nth-child(5) { transform: rotate(-2deg) translateY(-4px); grid-column: span 2; }
.compare-mods svg { width: 22px; height: 22px; fill: none; stroke: var(--fg-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cm-name { font-size: 0.9375rem; font-weight: 600; color: var(--fg); letter-spacing: -0.01em; }
.cm-state { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 600; color: var(--fg-3); }
.cm-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--event); transition: background-color 400ms; }

.compare-note { margin-top: 1rem; font-size: var(--fs-small); font-weight: 600; color: var(--ev); }
.compare .s-gexia { display: none; }

/* Con GEXIA: las mismas capacidades dentro de una sola plataforma */
.compare-stage[data-state="gexia"] { background: var(--paper); box-shadow: 0 0 0 1px var(--hair), 0 40px 80px -50px rgba(5, 11, 26, 0.45); }
.compare-stage[data-state="gexia"] .compare-bar { height: 40px; opacity: 1; margin-bottom: 0.75rem; }
.compare-stage[data-state="gexia"] .compare-mods { gap: 0.5rem; }
.compare-stage[data-state="gexia"] .compare-mods li { transform: none; border-style: solid; border-color: rgba(0, 71, 179, 0.25); background: var(--paper-2); }
.compare-stage[data-state="gexia"] .compare-mods svg { stroke: var(--blue); }
.compare-stage[data-state="gexia"] .cm-state i { background: var(--action-ink); }
.compare-stage[data-state="gexia"] .compare-note { color: var(--ac); }
.compare-stage[data-state="gexia"] .s-silo { display: none; }
.compare-stage[data-state="gexia"] .s-gexia { display: inline; }

/* Consecuencias y manifiesto: parte de la misma composición y ligados al selector */
.pains { display: grid; border-top: 1px solid var(--hair); transition: opacity 500ms var(--ease); }
.pains li {
  position: relative; padding: 0.75rem 0 0.75rem 1.6rem; border-bottom: 1px solid var(--hair);
  font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2);
}
.pains li::before {   /* marca de "desconectado" */
  content: ""; position: absolute; left: 0; top: 1.05rem; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--event); box-shadow: 0 0 0 3px rgba(246, 95, 24, 0.12);
}
.pains strong { color: var(--fg); font-weight: 600; }

.manifesto {
  position: relative; display: grid; gap: 0.5rem; padding: 1.25rem 1.4rem 1.3rem 1.6rem; border-radius: var(--r-m);
  background: var(--paper); box-shadow: 0 0 0 1px var(--hair), 0 30px 60px -45px rgba(5, 11, 26, 0.5);
  transition: opacity 500ms var(--ease), box-shadow 500ms var(--ease);
}
.manifesto::before {   /* filete con los colores de acción de la marca */
  content: ""; position: absolute; left: 0; top: 1.1rem; bottom: 1.1rem; width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(var(--blue), var(--action-ink));
}
.manifesto .t-label { color: var(--blue); }
.manifesto-text { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.012em; line-height: 1.45; color: var(--fg); }
.manifesto-close { font-size: var(--fs-small); color: var(--fg-2); }
.manifesto-close strong { color: var(--ac); font-weight: 700; }

/* El selector reparte el protagonismo: aislados → consecuencias; con GEXIA → manifiesto */
.problem[data-state="silos"] .manifesto { opacity: 0.55; }
.problem[data-state="gexia"] .pains { opacity: 0.5; }
.problem[data-state="gexia"] .manifesto { box-shadow: 0 0 0 1px rgba(0, 71, 179, 0.3), 0 30px 60px -40px rgba(0, 71, 179, 0.45); }
@media (min-width: 64rem) { .problem-top { align-items: start; } .compare { position: sticky; top: calc(var(--nav-h) + 2rem); } }

/* =====================================================================
   2. La plataforma · explorador de módulos
   ===================================================================== */
.mods { display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .mods { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (min-width: 64rem) { .mods { grid-template-columns: repeat(4, 1fr); } }
.mod {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--r-m);
  background: var(--night-2); box-shadow: inset 0 0 0 1px var(--hair);
  transition: box-shadow 300ms var(--ease), transform 300ms var(--ease);
}
.mod:hover { box-shadow: inset 0 0 0 1px rgba(106, 161, 255, 0.5), 0 30px 60px -40px rgba(54, 108, 230, 0.6); transform: translateY(-3px); }
.mod-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin: 1.1rem 1.1rem 0; border-radius: 12px;
  background: rgba(106, 161, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(106, 161, 255, 0.28); color: var(--blue-bright);
  transition: background-color 300ms, color 300ms;
}
.mod-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mod:hover .mod-icon { background: var(--blue-bright); color: var(--night); }
.mod-body { display: flex; flex-direction: column; gap: 0.4rem; padding: 1rem 1.1rem 1.1rem; flex: 1; }
.mod-name { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; color: var(--fg); }
.mod-name small { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; color: var(--fg-3); white-space: nowrap; }
.mod-desc { font-size: 0.875rem; line-height: 1.5; color: var(--fg-2); }
.mod-go { margin-top: auto; padding-top: 0.5rem; display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.875rem; font-weight: 600; color: var(--link); }
.mod-go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 250ms var(--ease); }
.mod:hover .mod-go svg { transform: translateX(3px); }
@media (max-width: 39.99rem) {
  .mod { flex-direction: row; }
  .mod-icon { margin: 0.9rem 0 0 0.9rem; flex: none; }
  .mod-body { padding: 0.85rem 0.9rem; }
  .mod-go { display: none; }
}


/* =====================================================================
   3. Cómo funciona · cuatro etapas conectadas
   ===================================================================== */
.flow4 { position: relative; display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .flow4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .flow4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
/* línea que une las etapas (se ve entre tarjetas) */
.flow4::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: calc(1.6rem + 26px); height: 2px; z-index: 0; display: none;
  background: linear-gradient(90deg, var(--event), var(--blue), var(--action-ink), var(--ink)); opacity: 0.35;
}
@media (min-width: 64rem) { .flow4::before { display: block; } }
.flow-card {
  position: relative; z-index: 1; display: grid; align-content: start; gap: 0.5rem; padding: 1.6rem 1.5rem 1.7rem;
  border-radius: var(--r-l); background: var(--paper);
  box-shadow: 0 0 0 1px var(--hair), 0 24px 50px -36px rgba(5, 11, 26, 0.35);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.flow-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--hair-2), 0 30px 60px -36px rgba(5, 11, 26, 0.45); }
.flow-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.flow-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; background: var(--c); box-shadow: 0 10px 24px -10px var(--c); }
.flow-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow-num { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--c); opacity: 0.22; font-variant-numeric: tabular-nums; }
.flow-card h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: var(--fg); }
.flow-card p { font-size: var(--fs-small); line-height: 1.55; color: var(--fg-2); }
.flow-o { --c: var(--event); }
.flow-b { --c: var(--blue); }
.flow-g { --c: var(--action-ink); }
.flow-n { --c: #0c1f4d; }

/* =====================================================================
   4. Soluciones de monitoreo · hardware
   ===================================================================== */
.hw { overflow: hidden; }
.hw::before {   /* luz fría tras la foto */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 78% 50%, rgba(54, 108, 230, 0.22), transparent 70%);
}
.hw-grid { position: relative; display: grid; gap: 2.5rem; align-items: center; }
.hw-tabs {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-top: 2rem;
  border-radius: 999px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--hair);
}
.hw-tabs [role="tab"] {
  min-height: 40px; padding: 0 1.1rem; border: 0; border-radius: 999px; cursor: pointer; background: transparent;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.01em; color: var(--fg-2); transition: background-color 220ms, color 220ms;
}
.hw-tabs [role="tab"]:hover { color: var(--fg); }
.hw-tabs [aria-selected="true"] { background: var(--snow); color: var(--night); }
.hw-panel { display: grid; gap: 1rem; margin-top: 1.75rem; max-width: 32rem; }
@media (prefers-reduced-motion: no-preference) { .hw-panel:not([hidden]) { animation: rise 520ms var(--ease); } }
.hw-points li { position: relative; padding: 0.6rem 0 0.6rem 1.35rem; border-top: 1px solid var(--hair); font-size: var(--fs-small); color: var(--fg-2); }
.hw-points li:last-child { border-bottom: 1px solid var(--hair); }
.hw-points li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-bright); }

.hw-media { position: relative; aspect-ratio: 4 / 3.3; border-radius: var(--r-l); overflow: hidden; background: var(--night-2); box-shadow: 0 0 0 1px var(--hair), 0 60px 100px -50px rgba(0, 0, 0, 0.9); }
.hw-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity 700ms var(--ease), transform 1600ms var(--ease);
}
.hw-media img.is-on { opacity: 1; transform: none; }
.hw-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(5, 11, 26, 0.7)); pointer-events: none; }
@media (min-width: 64rem) {
  .hw-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 5vw, 5rem); }
}

/* =====================================================================
   5. Empieza donde más te duele · constructor de ruta
   ===================================================================== */
.start-grid { display: grid; gap: 2.5rem; align-items: center; }
.start-copy { display: grid; gap: 1.25rem; max-width: 34rem; }
.start-motto { font-weight: 600; color: var(--fg); }
@media (min-width: 64rem) { .start-copy { max-width: 46rem; } }

/* Hoy · Mañana · Después: la operación crece sin migrar ni duplicar */
.grow { position: relative; display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .grow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
.grow-step {
  position: relative; display: grid; align-content: start; gap: 0.4rem; padding: 1.4rem 1.3rem 1.5rem;
  border-radius: var(--r-l); background: var(--paper); box-shadow: 0 0 0 1px var(--hair), 0 24px 50px -38px rgba(5, 11, 26, 0.35);
}
.grow-step:last-child { box-shadow: 0 0 0 1.5px rgba(2, 125, 56, 0.45), 0 30px 60px -36px rgba(2, 125, 56, 0.45); }
/* flecha entre pasos */
@media (min-width: 48rem) {
  .grow-step:not(:last-child)::after {
    content: ""; position: absolute; z-index: 1; right: -0.85rem; top: 2.15rem; width: 0.7rem; height: 0.7rem;
    border-top: 2px solid var(--fg-3); border-right: 2px solid var(--fg-3); transform: rotate(45deg); opacity: 0.6;
  }
}
.grow-icons { display: flex; gap: 6px; margin-bottom: 0.9rem; }
.g-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--fg-3); box-shadow: inset 0 0 0 1px var(--hair-2); opacity: 0.45; }
.g-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.g-ic.is-on { opacity: 1; color: #fff; background: var(--blue); box-shadow: none; }
.grow-2 .g-ic.is-on { background: var(--action-ink); }
.grow-when { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.grow-2 .grow-when { color: var(--action-ink); }
.grow-step h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: var(--fg); }
.grow-text { font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }

/* =====================================================================
   6. Escala
   ===================================================================== */
.scale { overflow: hidden; }
.scale-bg { position: absolute; inset: 0 0 0 auto; width: min(70%, 1000px); pointer-events: none; }
.scale-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: left center; opacity: 0.16; filter: grayscale(1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.scale-grid { position: relative; display: grid; gap: 2.5rem; align-items: end; }
.scale-num { color: var(--fg); }
.scale-num .t-num { display: block; font-size: clamp(3.5rem, 1.8rem + 6.5vw, 7rem); }
.scale-label { margin-top: 0.75rem; font-size: var(--fs-lead); color: var(--fg-2); }
.patent { display: flex; gap: 1rem; align-items: flex-start; padding-top: 2rem; border-top: 1px solid var(--hair); color: var(--fg-2); font-size: var(--fs-small); }
.patent svg { flex: none; width: 28px; height: 28px; fill: none; stroke: var(--g-yellow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.patent strong { display: block; color: var(--fg); font-weight: 600; }
@media (min-width: 64rem) {
  .scale-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); grid-template-areas: "head fig" "patent patent"; column-gap: 4rem; }
  .scale-grid > .sec-head { grid-area: head; }
  .scale-fig { grid-area: fig; }
  .patent { grid-area: patent; }
}

/* =====================================================================
   7. Demostración
   ===================================================================== */
.demo-card {
  position: relative; overflow: hidden; display: grid; gap: 2.5rem;
  padding: clamp(2rem, 5vw, 4rem); border-radius: clamp(20px, 3vw, 32px);
  background:
    radial-gradient(55% 80% at 85% 20%, rgba(54, 108, 230, 0.35), transparent 70%),
    radial-gradient(40% 60% at 10% 110%, rgba(60, 207, 122, 0.10), transparent 70%),
    var(--night);
  box-shadow: 0 50px 100px -50px rgba(5, 11, 26, 0.7);
}
.demo-copy { max-width: 44rem; }
.demo-copy .t-h2 { font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem); }
.demo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.demo-list { display: grid; gap: 1.25rem; padding-top: 2rem; border-top: 1px solid var(--hair); }
.demo-list li { display: grid; grid-template-columns: 28px 1fr; gap: 0.85rem; }
.demo-list svg { width: 20px; height: 20px; margin-top: 3px; fill: none; stroke: var(--action); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.demo-list .t-h3 { font-size: 1.0625rem; }
.demo-list .t-small { margin-top: 0.2rem; }
@media (min-width: 48rem) { .demo-list { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .mod, .mod-icon, .hw-media img, .compare-stage, .compare-mods, .compare-mods li, .compare-bar, .pains, .manifesto { transition: none; }
}

/* ---------- Ajustes para pantallas estrechas ---------- */
@media (max-width: 39.99rem) {
  .hw-tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .hw-tabs [role="tab"] { padding: 0 0.25rem; font-size: 0.8125rem; }
}

/* =====================================================================
   Entrada por necesidad (dentro de «Empieza donde más te duele»)
   ===================================================================== */
.needs { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: clamp(2rem, 4vw, 2.75rem); border-top: 1px solid var(--hair); }
.needs > .t-label { margin-bottom: 1rem; }
.needs ul { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .needs ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .needs ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.needs a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%; padding: 1rem 1.15rem; border-radius: var(--r-m); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--hair); font-size: var(--fs-small); font-weight: 600; color: var(--fg); text-decoration: none; transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.needs a:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--blue), 0 16px 32px -24px rgba(0, 71, 179, 0.5); }
.needs a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.needs svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease); }
.needs a:hover svg { transform: translateX(3px); }

/* =====================================================================
   Para quién es: perfiles + industrias
   ===================================================================== */
.roles-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.role-grid { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .role-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
.role { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 0.6rem; padding: 1.5rem 1.4rem 1.4rem; border-radius: var(--r-l); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair), 0 24px 50px -40px rgba(5, 11, 26, 0.35); }
.role-ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 0.4rem; border-radius: 12px; color: #fff; background: var(--blue); box-shadow: 0 10px 24px -10px rgba(0, 71, 179, 0.7); }
.role-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.role-who { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.role h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: var(--fg); }
.role ul { display: grid; align-content: start; gap: 0.45rem; margin: 0.25rem 0 0.5rem; padding: 0; list-style: none; }
.role ul li { position: relative; padding-left: 1.2rem; font-size: var(--fs-small); line-height: 1.45; color: var(--fg-2); }
.role ul li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 8px; height: 5px; border-left: 2px solid var(--action-ink); border-bottom: 2px solid var(--action-ink); transform: rotate(-45deg); }
.role .link { padding-top: 0.9rem; border-top: 1px solid var(--hair); }
.inds { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: clamp(2rem, 4vw, 2.75rem); padding: 1.1rem 1.4rem; border-radius: var(--r-m); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--hair); }
.inds .t-label { color: var(--fg-3); }
.inds ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.inds li { padding: 5px 11px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair-2); font-size: 0.8125rem; font-weight: 600; color: var(--fg-2); }

/* =====================================================================
   Portada estilo «planta real»: confianza, valor, perfiles con foto,
   mosaico de industrias y cierre con foto
   ===================================================================== */
/* Confianza */
.trust { padding-block: clamp(2.5rem, 5vw, 3.5rem) calc(clamp(2.5rem, 5vw, 3.5rem) + var(--sheet-r)); }
.trust-grid { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 64rem) { .trust-grid { grid-template-columns: auto 1fr; gap: 3rem; } }
.trust-stat { font-size: var(--fs-small); color: var(--fg-2); max-width: 20rem; }
.trust-stat strong { display: block; font-size: clamp(2rem, 1.6rem + 1.5vw, 2.75rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--fg); margin-bottom: 0.35rem; }
.trust-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.trust-logos img { height: 26px; width: auto; max-width: 110px; object-fit: contain; filter: brightness(0); opacity: 0.55; transition: opacity 200ms; }
.trust-logos img:hover { opacity: 0.9; }

/* Valor */
.valor-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 64rem) { .valor-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.valor-media { position: relative; margin: 0 0 2rem; }
.valor-media > img { display: block; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 20px; }
.valor-shot { position: absolute; right: -4%; bottom: -8%; width: 62%; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(10, 16, 34, 0.08), 0 30px 60px -20px rgba(5, 11, 26, 0.55); }
.valor-shot img { display: block; width: 100%; height: auto; }
.valor-badge { position: absolute; left: 1rem; top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.8rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, 0.92); box-shadow: 0 10px 30px -10px rgba(5, 11, 26, 0.4); }
.valor-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--action-ink); box-shadow: 0 0 0 4px rgba(2, 125, 56, 0.18); }
.valor-copy { display: grid; gap: 1rem; }
.valor-list { display: grid; gap: 0.25rem; margin-top: 0.75rem; border-top: 1px solid var(--hair); }
.valor-list li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--hair); }
.val-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--blue); background: rgba(0, 71, 179, 0.08); }
.val-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.valor-list h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.015em; color: var(--fg); }
.valor-list p { margin-top: 0.15rem; font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }
.valor-patent { display: flex; gap: 0.75rem; align-items: flex-start; margin-top: 0.5rem; font-size: var(--fs-small); color: var(--fg-2); }
.valor-patent svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--action-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.valor-patent strong { color: var(--fg); }

/* Perfiles con foto */
.role { grid-template-rows: auto 1fr; gap: 0; padding: 0; overflow: hidden; }
.role-photo { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.role-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.role:hover .role-photo img { transform: scale(1.04); }
.role-body { display: grid; grid-template-rows: auto auto 1fr auto; gap: 0.6rem; padding: 1.25rem 1.3rem 1.2rem; }

/* Industrias: mosaico */
.inds-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.ind-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 64rem) { .ind-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.ind { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 16px; background: var(--night-2); }
.ind img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.ind::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 11, 26, 0.85) 0%, rgba(5, 11, 26, 0.1) 55%); }
.ind:hover img { transform: scale(1.05); }
.ind > span { position: absolute; z-index: 1; left: 1rem; right: 1rem; bottom: 0.9rem; font-size: clamp(0.9375rem, 0.85rem + 0.3vw, 1.0625rem); font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.ind-cta { background: var(--blue); }
.ind-cta::after { display: none; }
.ind-cta a { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.35rem; padding: 1rem; color: #fff; text-decoration: none; }
.ind-cta .t-label { color: rgba(255, 255, 255, 0.75); }
.ind-cta strong { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.015em; }
.ind-cta svg { position: absolute; top: 1rem; right: 1rem; width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease); }
.ind-cta a:hover svg { transform: translateX(4px); }
.ind-cta:hover { background: #003a93; }

/* Cierre con foto */
.demo-card.has-photo { background: var(--night); isolation: isolate; }
.demo-card .demo-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.demo-card.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 11, 26, 0.92) 0%, rgba(5, 11, 26, 0.7) 45%, rgba(5, 11, 26, 0.2) 100%), linear-gradient(0deg, rgba(5, 11, 26, 0.85) 0%, rgba(5, 11, 26, 0) 40%); }
.valor-shot .valor-badge { position: absolute; left: 0.6rem; top: -1.1rem; z-index: 1; }
.valor-shot { overflow: visible; }
.valor-shot img { border-radius: 12px; }

/* ---------- El problema v2: antes / después con fotos ---------- */
.p2-head { display: grid; gap: 1rem 3rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.p2-head .t-label { margin-bottom: 0.9rem; }
@media (min-width: 64rem) { .p2-head { grid-template-columns: 1fr 1fr; } }
.p2-grid { display: grid; gap: 1rem; }
@media (min-width: 64rem) { .p2-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.p2-card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(520px, 52vw, 640px); border-radius: 22px; box-shadow: inset 0 0 0 1px rgba(167, 179, 203, 0.14); }
.p2-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.p2-card:hover .p2-bg { transform: scale(1.03); }
.p2-card::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.is-before .p2-bg { filter: grayscale(1) contrast(1.05) brightness(0.7); }
.is-before::after { background: linear-gradient(0deg, #050b1a 8%, rgba(5, 11, 26, 0.75) 45%, rgba(5, 11, 26, 0.35) 100%); }
.is-after::after { background: linear-gradient(0deg, #050b1a 10%, rgba(5, 11, 26, 0.6) 50%, rgba(0, 40, 110, 0.35) 100%); }
.p2-body { position: relative; display: grid; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.25rem); }
.p2-tag { display: inline-flex; align-items: center; gap: 0.5rem; justify-self: start; padding: 0.35rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #ffb37a; background: rgba(246, 95, 24, 0.16); box-shadow: inset 0 0 0 1px rgba(246, 95, 24, 0.35); }
.p2-tag.is-ok { color: var(--action); background: rgba(60, 207, 122, 0.14); box-shadow: inset 0 0 0 1px rgba(60, 207, 122, 0.35); }
.p2-pains { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.p2-pains li { position: relative; padding-left: 1.6rem; font-size: var(--fs-small); line-height: 1.5; color: var(--snow-2); }
.p2-pains li::before { content: "✕"; position: absolute; left: 0; top: 0.1em; font-size: 0.75rem; font-weight: 800; color: var(--event); }
.p2-pains strong { color: var(--snow); font-weight: 600; }
/* Islas: herramientas sueltas, sin conexión */
.p2-islands { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.p2-islands li { position: absolute; left: var(--x); top: var(--y); transform: rotate(var(--r)); display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.8rem; border-radius: 10px; font-size: 0.8125rem; font-weight: 600; color: var(--snow); background: rgba(11, 21, 48, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgba(246, 95, 24, 0.4), 0 12px 30px -12px rgba(0, 0, 0, 0.6); }
.p2-islands li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--event); }
/* Después: captura + módulos conectados */
.p2-shot { position: absolute; left: 50%; top: clamp(1.5rem, 4vw, 2.5rem); width: min(86%, 30rem); transform: translateX(-50%); overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
.p2-shot img { display: block; width: 100%; height: auto; }
.p2-mods { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.p2-mods li { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.7rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; color: var(--snow); background: rgba(60, 207, 122, 0.12); box-shadow: inset 0 0 0 1px rgba(60, 207, 122, 0.35); }
.p2-mods svg { width: 14px; height: 14px; fill: none; stroke: var(--action); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p2-claim { font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--snow); }
.p2-claim span { color: var(--action); }
/* Manifiesto */
.p2-quote { margin: clamp(3rem, 6vw, 4.5rem) auto 0; max-width: 54rem; text-align: center; }
.p2-quote p { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.875rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; color: var(--snow-2); text-wrap: balance; }
.p2-quote strong { color: var(--snow); font-weight: 800; }
@media (max-width: 47.99rem) { .p2-islands li { font-size: 0.75rem; } .p2-card { min-height: 560px; } }
@media (max-width: 47.99rem) { .p2-islands li:nth-child(4) { left: 46%; top: 40%; } .p2-islands li:nth-child(2) { left: 56%; } }
.inds-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); padding-top: clamp(1.5rem, 3vw, 2rem); border-top: 1px solid var(--hair); }
.inds-cta p { color: var(--fg-2); font-size: var(--fs-small); max-width: 36rem; }
@media (max-width: 47.99rem) { .inds-cta .btn { width: 100%; } }
@media (min-width: 64rem) { .ind-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ind { aspect-ratio: 16 / 9; } }
@media (max-width: 63.99rem) { .ind-grid > .ind:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 7; } }
/* Franja de confianza: 12 clientes en cuadrícula */
.trust-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 1rem; justify-items: center; margin: 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .trust-logos { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.75rem 1.5rem; } }
.trust-logos li { display: grid; place-items: center; width: 100%; height: 40px; }
.trust-logos img { height: auto; max-height: 28px; max-width: min(110px, 90%); }
.trust-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.75rem; font-weight: 700; color: var(--link, var(--blue)); text-decoration: none; }
.trust-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* Industrias con página propia */
.ind > a { position: absolute; inset: 0; z-index: 1; color: #fff; text-decoration: none; }
.ind > a > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.ind > a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 11, 26, 0.85) 0%, rgba(5, 11, 26, 0.1) 55%); }
.ind > a > span { position: absolute; z-index: 1; left: 1rem; right: 1rem; bottom: 2.1rem; font-size: clamp(0.9375rem, 0.85rem + 0.3vw, 1.0625rem); font-weight: 700; letter-spacing: -0.01em; }
.ind > a > i { position: absolute; z-index: 1; left: 1rem; bottom: 0.85rem; font-style: normal; font-size: 0.75rem; font-weight: 700; color: var(--blue-bright, #6aa1ff); }
.ind:hover > a > img { transform: scale(1.05); }
