/* WINDS SYSTEMS SpA — sitio corporativo, versión 3.
   Dirección: sobrio y corporativo. Estructura de la primera versión (una página con secciones), en una paleta que
   va del azul marino al celeste. Fondos planos o con un degradado suave, bordes finos, esquinas casi rectas, sin vidrio, sin brillos y sin retícula.
   Sin recursos externos, sin scripts ni estilos en línea (apto para una política CSP estricta). */

:root {
  --navy-950: #041230;
  --navy-900: #06183a;
  --navy-800: #0a2354;
  --navy-700: #0d2f6e;
  --blue-700: #11489f;
  --blue-600: #1456b8;
  --blue-500: #2b7de0;
  --sky-400: #5aaef0;
  --sky-300: #8dc8f6;
  --sky-200: #bfe0fa;
  --sky-100: #e4f1fc;
  --sky-50: #f1f7fd;
  --white: #ffffff;

  --ink: #0b1f3a;
  --ink-2: #44597a;
  --ink-3: #6c7f9c;
  --line: #d3e1f1;
  --line-strong: #b7cde6;

  --on-dark: #ffffff;
  --on-dark-2: #c6daf3;
  --on-dark-3: #93b0d6;
  --edge-dark: rgba(191, 224, 250, 0.22);

  --gov: #5aaef0;
  --risk: #f2b24a;
  --comp: #6fdcc0;
  --sig: #9db3d1;

  --font-display: "Segoe UI Semibold", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
a { color: var(--blue-600); text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blue-600); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* ---------- tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 650; line-height: 1.15; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5vw, 3.7rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.45rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p { margin: 0; }
.kicker { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-600); }
.lede { font-size: clamp(1.06rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }

/* ---------- barra superior y cabecera ---------- */
.util { background: var(--navy-950); color: var(--on-dark-2); font-size: 0.84rem; }
.util .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.35rem; }
.util a { color: var(--on-dark); text-decoration: none; font-weight: 560; }
.util a:hover { color: var(--sky-300); }
.util span { display: none; }
@media (min-width: 700px) { .util span { display: inline; } }

.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; background: var(--white); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 4.4rem; }
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--navy-800); min-width: 0; }
.brand:hover { color: var(--navy-800); }
.brand-name { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em; font-size: 1.02rem; line-height: 1.05; white-space: nowrap; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.34em; color: var(--blue-600); margin-top: 0.2rem; }
.logo-img { height: 3rem; width: auto; max-width: 11rem; object-fit: contain; display: block; }
.logo-slot {
  display: grid; place-items: center; height: 2.8rem; min-width: 5.4rem; padding-inline: 0.75rem; border: 1.5px dashed var(--line-strong); border-radius: 4px; color: var(--ink-3);
  font-size: 0.64rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; line-height: 1.2;
}
.nav { display: flex; align-items: stretch; gap: 0.1rem; align-self: stretch; }
.nav a { display: flex; align-items: center; padding: 0 0.75rem; color: var(--ink); text-decoration: none; font-size: 0.93rem; font-weight: 560; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.nav a:hover { color: var(--blue-600); }
.nav a[aria-current="true"] { color: var(--blue-600); border-bottom-color: var(--blue-600); }
.menu-toggle { display: none; position: relative; }
.menu-toggle summary { list-style: none; cursor: pointer; padding: 0.55rem 0.95rem; border: 1px solid var(--line-strong); border-radius: 4px; font-weight: 600; font-size: 0.92rem; background: var(--white); }
.menu-toggle summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 0.5rem); width: min(82vw, 18rem); background: var(--white); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0.35rem; display: grid; box-shadow: 0 10px 30px rgba(6, 24, 58, 0.18); }
.menu-panel a { color: var(--ink); text-decoration: none; padding: 0.7rem 0.85rem; border-radius: 3px; font-weight: 560; }
.menu-panel a:hover { background: var(--sky-50); }
@media (max-width: 1120px) { .nav { display: none; } .menu-toggle { display: block; } .bar > .btn { display: none; } }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.5rem; border-radius: 4px; border: 1.5px solid transparent; font: inherit; font-weight: 650; font-size: 0.98rem; text-decoration: none; cursor: pointer; line-height: 1.2; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.92rem; }
.on-dark .btn-ghost, .btn-ghost.light { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.on-dark .btn-ghost:hover, .btn-ghost.light:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: #fff; }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: var(--sky-100); color: var(--navy-800); }

/* ---------- héroe ---------- */
.hero { position: relative; background: linear-gradient(125deg, var(--navy-950) 0%, var(--navy-800) 48%, var(--blue-600) 100%); color: var(--on-dark); overflow: hidden; padding-block: clamp(3rem, 6vw, 5.5rem) clamp(5rem, 9vw, 8rem); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.5rem), 0 100%); }
.hero-wind { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-wind path { fill: none; stroke: var(--sky-300); stroke-width: 1.2; opacity: 0.22; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.5rem; justify-items: start; }
.hero .kicker { color: var(--sky-300); }
.hero h1 { color: #fff; }
.hero .lede { color: var(--on-dark-2); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.3rem; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), 0 100%); } }

/* ---------- franja de marcos ---------- */
.standards { background: var(--white); border-bottom: 1px solid var(--line); margin-top: -2.2rem; position: relative; z-index: 2; }
.standards .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.5rem 1.75rem; align-items: center; padding-block: 1.1rem; }
.standards .lbl { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.standards ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.standards li { padding: 0.2rem 1rem; border-left: 1px solid var(--line-strong); font-weight: 650; font-size: 0.92rem; color: var(--navy-700); white-space: nowrap; }
.standards li:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 760px) { .standards .wrap { grid-template-columns: minmax(0, 1fr); } .standards li { padding-block: 0.15rem; } }

/* ---------- secciones ---------- */
section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.band-sky { background: linear-gradient(180deg, var(--sky-50) 0%, var(--sky-100) 100%); }
.band-dark { background: linear-gradient(140deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--blue-600) 100%); color: var(--on-dark); }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .kicker { color: var(--sky-300); }
.band-dark .lede { color: var(--on-dark-2); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.25rem); padding-top: 1.1rem; border-top: 3px solid var(--blue-600); }
.band-dark .sec-head { border-top-color: var(--sky-300); }
.sec-head .t { display: grid; gap: 0.8rem; }
.sec-head .lede { max-width: 52ch; }
@media (max-width: 860px) { .sec-head { grid-template-columns: minmax(0, 1fr); } }

/* pilares */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.pillar { background: var(--white); border: 1px solid var(--line); border-top-width: 4px; border-radius: 4px; padding: 1.6rem 1.5rem; display: grid; gap: 1.2rem; align-content: start; }
.pillar.gov { border-top-color: var(--sky-400); } .pillar.risk { border-top-color: var(--risk); } .pillar.comp { border-top-color: var(--comp); }
.pillar-head { display: grid; gap: 0.4rem; }
.pillar-title { display: flex; align-items: center; gap: 0.7rem; }
.pillar-title svg { color: var(--blue-600); flex: none; }
.pillar-sub { color: var(--ink-2); font-size: 0.96rem; }
@media (max-width: 1000px) { .pillars { grid-template-columns: minmax(0, 1fr); } }

.feat { list-style: none; margin: 0.15rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.feat li { position: relative; padding-left: 1.15rem; font-size: 0.96rem; }
.feat li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.45rem; height: 0.45rem; background: var(--sky-400); }

/* para quién */
.matrix { display: grid; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--white); }
.mrow { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0.5rem 1.5rem; align-items: center; padding: 1rem 1.4rem; border-top: 1px solid var(--line); }
.mrow:first-child { border-top: 0; }
.mlabel { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.vals { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.val { padding: 0.35rem 0.85rem; border-radius: 3px; background: var(--sky-100); color: var(--navy-700); font-weight: 600; font-size: 0.97rem; }
@media (max-width: 640px) { .mrow { grid-template-columns: minmax(0, 1fr); } }
.who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.who-card { display: grid; gap: 1rem; align-content: start; padding: 1.7rem; border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
.who-card h3 { font-size: 1.35rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .who { grid-template-columns: minmax(0, 1fr); } }

/* implementación */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: paso; }
.step { position: relative; padding-top: 3.2rem; display: grid; gap: 0.6rem; align-content: start; }
.step::before { counter-increment: paso; content: counter(paso, decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--sky-300); }
.step::after { content: ""; position: absolute; top: 1.1rem; left: 3rem; right: -1.5rem; height: 1px; background: var(--edge-dark); }
.step:last-child::after { display: none; }
.step p { color: var(--on-dark-2); font-size: 0.98rem; }
.step.live h3 { color: var(--sky-300); }
.callout { margin-top: 2.75rem; padding: 1.5rem 1.75rem; border-left: 4px solid var(--sky-300); background: rgba(4, 18, 48, 0.35); display: grid; gap: 0.3rem; }
.callout strong { font-family: var(--font-display); font-size: 1.15rem; color: #fff; }
.callout p { color: var(--on-dark-2); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.25rem; } .step::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ejercicios */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split h2 { margin-top: 0.8rem; }
.lede-gap { margin-top: 1rem; }
.checks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.checks li { position: relative; padding-left: 1.4rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.5rem; height: 0.5rem; background: var(--blue-600); }
.checks b { font-weight: 650; }
.checks span { color: var(--ink-2); }
.timeline-card { background: var(--white); border: 1px solid var(--line-strong); border-radius: 4px; padding: 1.4rem; }
.timeline-card svg { width: 100%; height: auto; display: block; }
.tl-axis { stroke: var(--ink-2); stroke-width: 2; }
.tl-tick { stroke: var(--ink-3); stroke-width: 1.2; opacity: 0.7; }
.tl-phase { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.1em; fill: var(--ink-2); text-anchor: middle; text-transform: uppercase; }
.tl-mark { fill: var(--white); stroke: var(--blue-600); stroke-width: 2; }
.tl-mark.hot { fill: var(--risk); stroke: var(--risk); }
.tl-num { font-family: var(--font-body); font-size: 11px; fill: var(--ink-2); text-anchor: middle; }
.tl-edge { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.12em; fill: var(--blue-600); font-weight: 700; }
.tl-note { font-family: var(--font-body); font-size: 12px; fill: var(--ink); }
.tl-cap { font-size: 0.88rem; color: var(--ink-2); margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--line); }
@media (max-width: 880px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* por qué */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.75rem; }
.why > div { display: grid; gap: 0.6rem; align-content: start; padding-top: 1rem; border-top: 1px solid var(--line-strong); }
.why p { color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 980px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why { grid-template-columns: minmax(0, 1fr); } }

/* contacto */
.contact-section { padding-block: 0; background: var(--sky-100); }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: center; padding-block: clamp(3rem, 6vw, 5rem); }
.contact h2 { margin-top: 0.8rem; }
.contact-gap { margin-top: 1rem; color: var(--ink-2); max-width: 46ch; }
.contact-card { display: grid; gap: 1rem; padding: 1.6rem; background: var(--white); border: 1px solid var(--line-strong); border-top: 4px solid var(--blue-600); border-radius: 4px; }
.mail-line { font-family: var(--font-mono); font-size: 1.02rem; word-break: break-all; color: var(--navy-800); }
.copy-msg { min-height: 1.3em; font-size: 0.88rem; color: var(--blue-700); }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }

/* pie */
.site-footer { background: var(--navy-950); color: var(--on-dark-2); padding-block: 3rem 1.75rem; font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--edge-dark); }
.site-footer .brand { color: #fff; }
.site-footer .brand-name small { color: var(--sky-300); }
.site-footer .logo-img { filter: brightness(0) invert(1); opacity: 0.92; }
.site-footer .logo-slot { border-color: var(--edge-dark); color: var(--on-dark-3); }
.foot-about { margin-top: 1rem; color: var(--on-dark-3); max-width: 34ch; }
.foot-col h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; margin-bottom: 0.9rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.foot-col a { color: var(--on-dark-2); text-decoration: none; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 1.4rem; color: var(--on-dark-3); font-size: 0.88rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* implementación del SGSI conducida por el sistema */
.sgsi-impl { margin-top: 3rem; display: grid; gap: 1.6rem; padding: clamp(1.5rem, 3.5vw, 2.4rem); border: 1px solid var(--edge-dark); border-radius: 4px; background: rgba(4, 18, 48, 0.3); }
.si-copy { display: grid; gap: 0.7rem; }
.si-copy h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.si-copy p { color: var(--on-dark-2); text-align: justify; hyphens: auto; }
.si-clauses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; border: 1px solid var(--edge-dark); border-radius: 4px; overflow: hidden; counter-reset: none; }
.si-clauses li { display: grid; gap: 0.2rem; padding: 0.9rem 0.8rem; font-weight: 600; font-size: 0.93rem; border-left: 1px solid var(--edge-dark); background: rgba(255, 255, 255, 0.04); }
.si-clauses li:first-child { border-left: 0; }
.si-clauses b { font-family: var(--font-display); font-size: 1.35rem; color: var(--sky-300); line-height: 1; }
.si-end { display: grid; gap: 0.3rem; padding: 1.1rem 1.4rem; border-left: 4px solid var(--sky-300); background: rgba(141, 200, 246, 0.14); }
.si-end strong { font-family: var(--font-display); font-size: 1.1rem; color: #fff; }
.si-end span { color: var(--on-dark-2); }
@media (max-width: 900px) { .si-clauses { grid-template-columns: repeat(4, minmax(0, 1fr)); } .si-clauses li:nth-child(5) { border-left: 0; } .si-clauses li:nth-child(n+5) { border-top: 1px solid var(--edge-dark); } }
@media (max-width: 520px) { .si-clauses { grid-template-columns: repeat(2, minmax(0, 1fr)); } .si-clauses li { border-left: 0; border-top: 1px solid var(--edge-dark); } .si-clauses li:nth-child(even) { border-left: 1px solid var(--edge-dark); } .si-clauses li:nth-child(-n+2) { border-top: 0; } }

/* sin selección ni arrastre de contenido (solo el correo de contacto se puede seleccionar) */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.mail-line, .mail-line span { -webkit-user-select: text; user-select: text; }
img, svg { -webkit-user-drag: none; user-drag: none; }
@media print { body { display: none; } }

.pillar-body { color: var(--ink-2); font-size: 0.98rem; line-height: 1.6; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ---------- carrusel de paneles de demostración (portada) ---------- */
.deck { display: grid; gap: 0.9rem; min-width: 0; }
.deck-stage { position: relative; aspect-ratio: 560 / 470; }
.slide { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 0.4rem; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0s linear 0.6s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.6s ease; }
.slide-cap { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0.1rem 0.8rem; }
.slide-no { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; color: var(--sky-300); grid-row: 1 / span 2; align-self: start; padding-top: 0.55rem; }
.slide-cap h3 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.slide-cap p { color: var(--on-dark-2); font-size: 0.95rem; grid-column: 2; }
.stage3d { perspective: 1500px; display: grid; align-items: center; justify-items: center; min-height: 0; }
.tilt { width: 100%; transform: rotateY(-28deg) rotateX(2deg); transform-origin: 62% 50%; filter: drop-shadow(-22px 26px 30px rgba(2, 9, 28, 0.5)); }
.dash { width: 100%; height: auto; display: block; overflow: visible; }

.d-card { fill: #fff; stroke: var(--line); stroke-width: 1; }
.d-card.m { stroke: var(--line-strong); }
.d-head { fill: var(--navy-800); }
.d-dot { fill: var(--sky-300); opacity: 0.55; }
.d-ht { fill: #fff; font-family: var(--font-body); font-weight: 650; font-size: 11px; letter-spacing: 0.02em; }
.d-ht.sm { font-size: 9.5px; }
.d-hr { fill: var(--sky-200); font-family: var(--font-body); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }
.d-kpi { fill: var(--sky-50); stroke: var(--line); }
.d-lbl { fill: var(--ink-3); font-family: var(--font-body); font-size: 8.5px; }
.d-lbl2 { fill: var(--ink-2); font-family: var(--font-body); font-size: 9.5px; font-weight: 600; }
.d-val { fill: var(--navy-800); font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.d-big { fill: var(--navy-800); font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.d-t { fill: var(--ink); font-family: var(--font-body); font-weight: 650; font-size: 9.5px; letter-spacing: 0.02em; }
.d-dn { fill: var(--navy-800); font-family: var(--font-display); font-weight: 700; }
.d-grid { stroke: #e4edf8; stroke-width: 1; }
.d-axis { stroke: var(--line-strong); stroke-width: 1.2; }
.d-track { fill: #e6eef9; }
.d-ring { stroke: #e6eef9; }
.c-gov { fill: var(--blue-500); stroke: var(--blue-500); }
.c-risk { fill: var(--risk); stroke: var(--risk); }
.c-comp { fill: #2bb596; stroke: #2bb596; }
.c-red { fill: #e5604d; stroke: #e5604d; }
.bar, .hbar, .sw, .cell, .rk, .ev, .d-end { stroke: none; }
.d-line { stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.d-area { opacity: 0.12; stroke: none; }
.d-arc { fill: none; stroke-linecap: round; stroke-dasharray: 72 100; }
.d-arc.p82 { stroke-dasharray: 82 100; } .d-arc.p72 { stroke-dasharray: 72 100; }
.cell.h1 { fill: #bfe9df; } .cell.h2 { fill: #dcebb0; } .cell.h3 { fill: #f6dc8a; } .cell.h4 { fill: #f5b86a; } .cell.h5 { fill: #ea7b66; }
.rk { fill: var(--navy-800); stroke: #fff; stroke-width: 1.5; }
.ev-ck { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.d-link { stroke: var(--sky-300); stroke-width: 1.6; stroke-dasharray: 5 6; opacity: 0.8; }
.d-node { fill: var(--sky-300); stroke: var(--navy-800); stroke-width: 1.5; }
.d-travel { fill: #fff; stroke: var(--sky-300); stroke-width: 1.5; }
.bar { transform-box: fill-box; transform-origin: 50% 100%; }
.rk, .ev, .ev-ck, .d-end { transform-box: fill-box; transform-origin: center; }
.hbar { transform-box: fill-box; transform-origin: 0 50%; }

.deck-ctl { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.deck-btn { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.4); background: transparent; color: #fff; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.deck-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.deck-dots { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.6rem; }
.deck-dot { width: 0.7rem; height: 0.7rem; padding: 0; border-radius: 50%; border: 1.5px solid var(--sky-300); background: transparent; cursor: pointer; transition: background 0.2s, width 0.2s, border-radius 0.2s; }
.deck-dot.is-active { background: var(--sky-300); width: 1.7rem; border-radius: 0.4rem; }
@media (max-width: 520px) { .slide-cap p { display: none; } .deck-stage { aspect-ratio: 560 / 400; } }

@media (prefers-reduced-motion: no-preference) {
  .slide.is-active .bar { animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .slide.is-active .hbar { animation: grow 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both 0.15s; }
  .slide.is-active .d-line { stroke-dasharray: 1; animation: draw 1.6s ease-out both 0.2s; }
  .slide.is-active .d-area { animation: fade 1.6s ease-out both 0.5s; }
  .slide.is-active .d-end { animation: pop 0.5s ease-out both 1.6s; }
  .slide.is-active .d-arc { animation: sweep 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) both 0.2s; }
  .slide.is-active .cell { animation: fade 0.7s ease-out both; }
  .slide.is-active .rk { animation: pop 0.5s ease-out both; }
  .slide.is-active .ev, .slide.is-active .ev-ck { animation: pop 0.45s ease-out both; }
  .slide.is-active .d-link { animation: flow 2.4s linear infinite; }
  .bars .bar:nth-child(2) { animation-delay: 0.07s; } .bars .bar:nth-child(3) { animation-delay: 0.14s; } .bars .bar:nth-child(4) { animation-delay: 0.21s; }
  .bars .bar:nth-child(5) { animation-delay: 0.28s; } .bars .bar:nth-child(6) { animation-delay: 0.35s; } .bars .bar:nth-child(7) { animation-delay: 0.42s; } .bars .bar:nth-child(8) { animation-delay: 0.49s; }
  .slide.is-active .rk.r1 { animation-delay: 0.7s; } .slide.is-active .rk.r2 { animation-delay: 0.85s; } .slide.is-active .rk.r3 { animation-delay: 1s; } .slide.is-active .rk.r4 { animation-delay: 1.15s; } .slide.is-active .rk.r5 { animation-delay: 1.3s; } .slide.is-active .rk.r6 { animation-delay: 1.45s; }
  .slide.is-active .ev.e1, .slide.is-active .ev-ck.e1 { animation-delay: 0.15s; } .slide.is-active .ev.e2, .slide.is-active .ev-ck.e2 { animation-delay: 0.3s; } .slide.is-active .ev.e3, .slide.is-active .ev-ck.e3 { animation-delay: 0.45s; } .slide.is-active .ev.e4, .slide.is-active .ev-ck.e4 { animation-delay: 0.6s; } .slide.is-active .ev.e5, .slide.is-active .ev-ck.e5 { animation-delay: 0.75s; }
}
@keyframes rise { from { transform: scaleY(0); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.2); } }
@keyframes sweep { from { stroke-dasharray: 0 100; } }
@keyframes flow { to { stroke-dashoffset: -22; } }

/* líneas punteadas con etiqueta (un indicador por gráfico) y conectores del cuarto panel */
.d-lead { stroke: var(--blue-700); stroke-width: 1.3; stroke-dasharray: 2 3; stroke-linecap: round; fill: none; transform-box: fill-box; }
.d-lead.up { transform-origin: 50% 100%; } .d-lead.down { transform-origin: 50% 0; }
.d-anchor { fill: #fff; stroke: var(--blue-700); stroke-width: 1.6; }
.d-tag { transform-box: fill-box; transform-origin: 50% 100%; }
.d-tag-r { fill: var(--navy-800); }
.d-tag-t { fill: #fff; font-family: var(--font-body); font-weight: 650; font-size: 7.6px; letter-spacing: 0.02em; }
.d-plate { fill: rgba(255, 255, 255, 0.05); stroke: var(--edge-dark); stroke-width: 1; }
.d-cap { fill: #fff; font-family: var(--font-display); font-weight: 650; font-size: 16px; letter-spacing: 0.03em; }
.d-badge { fill: var(--navy-800); stroke: var(--sky-300); stroke-width: 1; }
.d-badge-t { fill: #fff; font-family: var(--font-body); font-weight: 650; font-size: 9px; letter-spacing: 0.04em; }
.d-arrow { fill: var(--sky-300); }
.d-link { stroke-width: 1.8; opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .slide.is-active .d-lead { animation: leader 0.8s ease-out both; }
  .slide.is-active .d-anchor { animation: pop 0.4s ease-out both; }
  .slide.is-active .d-tag { animation: tagin 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .slide.is-active .d-lead.l1, .slide.is-active .d-anchor.l1 { animation-delay: 1.5s; } .slide.is-active .d-tag.l1 { animation-delay: 2.2s; }
  .slide.is-active .d-lead.l2, .slide.is-active .d-anchor.l2 { animation-delay: 2.1s; } .slide.is-active .d-tag.l2 { animation-delay: 2.8s; }
  .slide.is-active .d-lead.l3, .slide.is-active .d-anchor.l3 { animation-delay: 2.7s; } .slide.is-active .d-tag.l3 { animation-delay: 3.4s; }
}
@keyframes leader { from { transform: scaleY(0); opacity: 0; } }
@keyframes tagin { from { opacity: 0; transform: translateY(5px) scale(0.85); } }

/* formulario de contacto y WhatsApp */
.cform { display: grid; gap: 0.85rem; }
.cf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.cf-f { display: grid; gap: 0.3rem; font-size: 0.86rem; font-weight: 600; color: var(--ink-2); }
.cf-f small { font-weight: 500; color: var(--ink-3); }
.cf-f input, .cf-f textarea { font: inherit; font-weight: 400; font-size: 0.97rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line-strong); border-radius: 4px; padding: 0.6rem 0.75rem; width: 100%; -webkit-user-select: text; user-select: text; }
.cf-f textarea { resize: vertical; min-height: 6.5rem; }
.cf-f input:focus-visible, .cf-f textarea:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 1px; border-color: var(--blue-500); }
.cf-check { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.86rem; color: var(--ink-2); }
.cf-check input { margin-top: 0.2rem; width: 1.05rem; height: 1.05rem; flex: none; }
.cf-note { font-size: 0.8rem; color: var(--ink-3); }
.cf-msg { min-height: 1.3em; font-size: 0.92rem; font-weight: 600; }
.cf-msg.ok { color: #12846c; } .cf-msg.err { color: #c0392b; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.btn-wa { background: #fff; color: var(--ink); border-color: var(--line-strong); gap: 0.6rem; }
.btn-wa:hover { background: #f1fbf5; color: var(--ink); border-color: #25D366; }
.wa-ico { flex: none; }
@media (max-width: 520px) { .cf-row { grid-template-columns: minmax(0, 1fr); } }

/* quinto panel: red industrial con alertas en secuencia */
.in-net { stroke: #5f7fae; stroke-width: 1.6; }
.in-net-s { stroke: #1b3f7a; stroke-width: 1.6; stroke-linecap: round; }
.in-dev { fill: #fff; stroke: #1b3f7a; stroke-width: 1.6; }
.in-screen { fill: #e8f1fc; stroke: #9db3d1; stroke-width: 1; }
.in-slot { stroke: #9db3d1; stroke-width: 1.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.in-mod { fill: #e8f1fc; stroke: #9db3d1; stroke-width: 1; }
.in-port { fill: #9db3d1; }
.in-led { fill: #2bb596; } .in-led.o { fill: #f2b24a; }
.in-lbl { fill: var(--ink-2); font-family: var(--font-body); font-weight: 650; font-size: 9px; letter-spacing: 0.04em; }
.al-lead { stroke: #e5372a; stroke-width: 1.3; stroke-dasharray: 2 3; stroke-linecap: round; fill: none; transform-box: fill-box; }
.al-lead.v { transform-origin: 50% 100%; } .al-lead.h { transform-origin: 0 50%; }
.al-core { fill: #e5372a; stroke: #fff; stroke-width: 1.2; }
.al-ring { fill: rgba(229, 55, 42, 0.18); stroke: rgba(229, 55, 42, 0.5); stroke-width: 1; transform-box: fill-box; transform-origin: center; }
.al-dot, .al-tag { transform-box: fill-box; transform-origin: center; }
.al-tag-r { fill: #f2b24a; } .al-tag.crit .al-tag-r { fill: #d7382b; }
.al-tag-t { fill: #3a2500; font-family: var(--font-body); font-weight: 700; font-size: 7.6px; letter-spacing: 0.02em; }
.al-tag.crit .al-tag-t { fill: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .slide.is-active .al-dot { animation: alpop 0.45s ease-out both; }
  .slide.is-active .al-ring { animation: alping 1.4s ease-out both; }
  .slide.is-active .al-lead.v { animation: leader 0.5s ease-out both; }
  .slide.is-active .al-lead.h { animation: leaderx 0.5s ease-out both; }
  .slide.is-active .al-tag { animation: tagin 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .slide.is-active .al-dot.a1 { animation-delay: 0.60s; } .slide.is-active .al-dot.a1 .al-ring { animation-delay: 0.80s; } .slide.is-active .al-lead.a1 { animation-delay: 0.95s; } .slide.is-active .al-tag.a1 { animation-delay: 1.35s; }
  .slide.is-active .al-dot.a2 { animation-delay: 1.60s; } .slide.is-active .al-dot.a2 .al-ring { animation-delay: 1.80s; } .slide.is-active .al-lead.a2 { animation-delay: 1.95s; } .slide.is-active .al-tag.a2 { animation-delay: 2.35s; }
  .slide.is-active .al-dot.a3 { animation-delay: 2.60s; } .slide.is-active .al-dot.a3 .al-ring { animation-delay: 2.80s; } .slide.is-active .al-lead.a3 { animation-delay: 2.95s; } .slide.is-active .al-tag.a3 { animation-delay: 3.35s; }
  .slide.is-active .al-dot.a4 { animation-delay: 3.60s; } .slide.is-active .al-dot.a4 .al-ring { animation-delay: 3.80s; } .slide.is-active .al-lead.a4 { animation-delay: 3.95s; } .slide.is-active .al-tag.a4 { animation-delay: 4.35s; }
  .slide.is-active .al-dot.a5 { animation-delay: 4.60s; } .slide.is-active .al-dot.a5 .al-ring { animation-delay: 4.80s; } .slide.is-active .al-lead.a5 { animation-delay: 4.95s; } .slide.is-active .al-tag.a5 { animation-delay: 5.35s; }
  .slide.is-active .al-dot.a6 { animation-delay: 5.60s; } .slide.is-active .al-dot.a6 .al-ring { animation-delay: 5.80s; } .slide.is-active .al-lead.a6 { animation-delay: 5.95s; } .slide.is-active .al-tag.a6 { animation-delay: 6.35s; }
}
@keyframes alpop { from { opacity: 0; transform: scale(0.1); } }
@keyframes alping { from { opacity: 1; transform: scale(0.6); } to { opacity: 0.15; transform: scale(2.1); } }
@keyframes leaderx { from { transform: scaleX(0); opacity: 0; } }

/* ventana emergente «Coordinar reunión» */
.modal { border: 0; border-top: 4px solid var(--blue-600); border-radius: 4px; padding: 0; width: min(34rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; color: var(--ink); background: #fff; box-shadow: 0 24px 60px rgba(4, 18, 48, 0.45); }
.modal-in { padding: 1.4rem 1.5rem 1.6rem; }
.modal::backdrop { background: rgba(4, 18, 48, 0.62); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.modal-head h3 { font-size: 1.3rem; }
.modal-x { appearance: none; border: 0; background: transparent; font-size: 1.9rem; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 0 0.3rem; border-radius: 3px; }
.modal-x:hover { color: var(--ink); background: var(--sky-100); }
.modal-sub { color: var(--ink-2); font-size: 0.95rem; margin: 0.4rem 0 1.1rem; }
.contact-card .hero-actions { gap: 0.55rem; }
.contact-card .btn { padding: 0.8rem 1.05rem; font-size: 0.93rem; white-space: nowrap; }
