/* Green Software Services — estilos de la home, /nosotros y /seguridad.
   Portado del handoff de diseño "Green Renovable website redesign" (16/9/2026).
   La CSP del sitio no admite estilos inline: todo lo visual vive acá. */

/* ============ Tokens (sistema de diseño Green Renovable) ============ */
:root {
  --gr-lime: #E0FF00;
  --gr-lime-soft: #f2ffb0;
  --gr-paper: #F7F6F2;
  --gr-white: #FFFFFF;
  --gr-teal-950: #00333B;
  --gr-teal-900: #004752;
  --gr-teal-700: #00676E;
  --gr-teal-100: #d6e6e7;
  --gr-neutral-900: #0c2227;
  --gr-neutral-700: #585a5e;
  --gr-neutral-500: #88898D;
  --gr-neutral-300: #c3c4c7;
  --gr-neutral-200: #e2e2e0;
  --gr-on-dark-muted: #9fc0c2;
  --gr-line-on-dark: rgba(255, 255, 255, .16);
  --gr-danger: #cc4436;
  --gr-ring: rgba(0, 130, 255, .35);

  --gr-font-display: 'Mona Sans', 'Work Sans', system-ui, sans-serif;
  --gr-font-sans: 'Work Sans', system-ui, -apple-system, sans-serif;

  --gr-shadow-md: 0 4px 12px rgba(0, 51, 59, .08), 0 2px 4px rgba(0, 51, 59, .06);
  --gr-shadow-lg: 0 18px 40px rgba(0, 51, 59, .12);
  --gr-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--gr-font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gr-neutral-900);
  background: var(--gr-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, h4 {
  font-family: var(--gr-font-display);
  color: var(--gr-teal-900);
  line-height: 1.2;
  letter-spacing: -.02em;
  font-stretch: 112%;
  margin: 0;
}
p, ul, ol, dl, dd { margin: 0; }
img { display: block; }
a { color: var(--gr-teal-700); text-decoration: none; }
a:hover { color: var(--gr-teal-900); text-decoration: underline; }
input, textarea, button { font-family: inherit; }
::selection { background: var(--gr-lime); color: var(--gr-teal-900); }

@keyframes gr-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes gr-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 255, 0, .55); } 70% { box-shadow: 0 0 0 12px rgba(224, 255, 0, 0); } }
@keyframes gr-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes gr-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -9999px; top: 12px; z-index: 60; }
.skip:focus {
  left: 16px; padding: 8px 14px; border-radius: 999px;
  background: var(--gr-teal-900); color: var(--gr-paper); font-weight: 600;
}
:focus-visible { outline: 2px solid var(--gr-teal-700); outline-offset: 3px; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page > main { flex: 1; }

/* ============ Botones (Button del sistema de diseño) ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--gr-font-sans); font-weight: 600; line-height: 1; letter-spacing: .01em;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, filter .12s ease, background .15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(.93); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; transform: none; }
.btn--sm { padding: 8px 16px; font-size: .875rem; }
.btn--md { padding: 12px 22px; font-size: 1rem; }
.btn--lg { padding: 15px 30px; font-size: 1.25rem; }
.btn--full { width: 100%; }
.btn--primary, .btn--primary:hover { background: var(--gr-teal-700); color: var(--gr-paper); }
.btn--accent, .btn--accent:hover { background: var(--gr-lime); color: var(--gr-teal-900); }
.btn--outline, .btn--outline:hover { background: transparent; color: var(--gr-teal-700); border-color: var(--gr-teal-900); }

/* ============ Header ============ */
.hd {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 246, 242, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gr-neutral-200);
}
.hd__in {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 34px; height: 28px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__a {
  font-family: var(--gr-font-display); font-stretch: 112%; font-weight: 800;
  font-size: 18px; color: var(--gr-teal-900); letter-spacing: -.02em;
}
.brand__b {
  font-size: 10px; font-weight: 600; color: var(--gr-teal-700);
  letter-spacing: .12em; text-transform: uppercase; margin-top: 3px;
}
.brand--onDark .brand__a { color: var(--gr-paper); }
.brand--onDark .brand__b { color: var(--gr-on-dark-muted); }

.nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a, .nav a:hover { color: var(--gr-neutral-900); white-space: nowrap; }
.nav a[aria-current="page"] { color: var(--gr-teal-700); font-weight: 600; }
.hd__side { display: flex; align-items: center; gap: 12px; }

/* Selector de idioma (no está en el diseño: sigue el estilo de los chips) */
.lang {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: var(--gr-white); border: 1px solid var(--gr-neutral-300);
}
.lang__btn {
  font-family: var(--gr-font-sans); font-size: 12px; font-weight: 600; letter-spacing: .04em; line-height: 1;
  padding: 6px 10px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--gr-neutral-700); transition: background .14s, color .14s;
}
.lang__btn:hover { color: var(--gr-teal-900); }
.lang__btn[aria-pressed="true"] { background: var(--gr-teal-900); color: var(--gr-paper); }

.burger, .menu__close {
  display: none; width: 40px; height: 40px; padding: 0; border-radius: 999px;
  align-items: center; justify-content: center; cursor: pointer;
  background: transparent; color: var(--gr-teal-900); border: 1px solid var(--gr-neutral-300);
}
.menu__close { display: inline-flex; }

/* Menú mobile (el diseño es de escritorio; debajo de 1000px la navegación pasa acá) */
.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--gr-paper);
  padding: 14px 24px 32px; display: flex; flex-direction: column; gap: 32px;
  opacity: 0; transition: opacity .2s var(--gr-ease); overflow-y: auto;
}
.menu.is-open { opacity: 1; }
.menu__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.menu__nav { display: flex; flex-direction: column; }
.menu__link, .menu__link:hover {
  padding: 18px 0; border-bottom: 1px solid var(--gr-neutral-200);
  font-family: var(--gr-font-display); font-stretch: 112%; font-weight: 700;
  font-size: 26px; letter-spacing: -.02em; color: var(--gr-teal-900); text-decoration: none;
}
.menu__link[aria-current="page"] { color: var(--gr-teal-700); }

@media (max-width: 1000px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 560px) {
  .hd__cta { display: none; }
}

/* ============ Estructura de secciones ============ */
.sec { padding: 88px 24px; }
.sec--white { background: var(--gr-white); border-top: 1px solid var(--gr-neutral-200); border-bottom: 1px solid var(--gr-neutral-200); }
.sec--whiteTop { background: var(--gr-white); border-top: 1px solid var(--gr-neutral-200); }
.sec--teal { background: var(--gr-teal-900); color: var(--gr-paper); position: relative; overflow: hidden; }
.wrap { max-width: 1200px; margin: 0 auto; }
.wrap--820 { max-width: 820px; margin: 0 auto; }
.wrap--rel { position: relative; }
.col { display: flex; flex-direction: column; }
.gap-6 { gap: 6px; }
.gap-14 { gap: 14px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-28 { gap: 28px; }
.gap-48 { gap: 48px; }
.intro { max-width: 680px; display: flex; flex-direction: column; gap: 16px; }
.intro--720 { max-width: 720px; }

.split {
  display: grid; gap: 56px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.grid { display: grid; gap: 24px; }
.grid--260 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid--280 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }

/* Marca de agua con el isotipo */
.watermark { position: absolute; opacity: .06; pointer-events: none; max-width: none; }
.watermark--heroHome { right: -80px; top: -40px; width: 520px; transform: rotate(-8deg); }
.watermark--casos { left: -120px; bottom: -120px; width: 560px; transform: rotate(10deg); }
.watermark--heroSeg { right: -100px; top: -60px; width: 520px; transform: rotate(-8deg); }
.watermark--ia { left: -140px; bottom: -140px; width: 560px; transform: rotate(10deg); }

/* ============ Tipografía de secciones ============ */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gr-teal-700);
}
.eyebrow--lime { color: var(--gr-lime); }
.eyebrow--muted { color: var(--gr-on-dark-muted); }
.h2 {
  font-weight: 700; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1;
  color: var(--gr-teal-900); text-wrap: balance;
}
.h2--nobalance { text-wrap: wrap; }
.h2--onDark { color: var(--gr-paper); }
.lead { font-size: 18px; line-height: 1.6; color: var(--gr-neutral-700); }
.lead--onDark { color: var(--gr-on-dark-muted); }
.lead--19 { font-size: 19px; text-wrap: pretty; }

/* ============ Card y Badge (sistema de diseño) ============ */
.card { border-radius: 22px; padding: 32px; font-family: var(--gr-font-sans); color: var(--gr-neutral-900); }
.card--md { padding: 24px; }
.card--outline { background: var(--gr-white); border: 1px solid var(--gr-neutral-200); }
.card--elevated { background: var(--gr-white); border: 1px solid transparent; box-shadow: var(--gr-shadow-md); }
.card--accent { background: var(--gr-lime-soft); border: 1px solid color-mix(in srgb, var(--gr-lime) 50%, transparent); }

.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
  font-family: var(--gr-font-sans); font-weight: 600; font-size: .75rem; letter-spacing: .02em;
  line-height: 1.4; border-radius: 999px; background: var(--gr-teal-100); color: var(--gr-teal-900);
}

/* Círculo lima con tilde */
.tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gr-lime); color: var(--gr-teal-900);
  display: flex; align-items: center; justify-content: center;
}
.tick--20 { width: 20px; height: 20px; margin-top: 1px; }

/* ============ HOME · Hero ============ */
.hero { position: relative; overflow: hidden; padding: 96px 24px 88px; }
.hero__grid {
  position: relative; max-width: 1200px; margin: 0 auto; display: grid; gap: 56px; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}
.hero__title {
  font-weight: 700; font-size: clamp(40px, 5vw, 64px); line-height: 1.05;
  color: var(--gr-teal-900); min-height: 2.1em;
}
/* Efecto de tipeo: la copia fantasma reserva el alto final para que la
   página no salte mientras se escribe el titular. */
.type { position: relative; display: block; }
.type__ghost { visibility: hidden; }
.type__live { position: absolute; inset: 0; }
.type__caret {
  display: inline-block; width: .06em; height: .9em; margin-left: .06em;
  vertical-align: -.08em; border-radius: 2px; background: var(--gr-teal-700);
  animation: gr-blink 1s step-end infinite;
}
.hero__lead { font-size: 19px; line-height: 1.6; color: var(--gr-neutral-700); max-width: 560px; text-wrap: pretty; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Panel "Cómo trabajamos, en tres pasos" — recorrido de 3 etapas + tarjeta del paso activo
   (diseño en Figma: "GSS — Panel Cómo trabajamos"). La duración de cada paso vive en
   --step-ms y el JS usa el mismo valor. */
.flow {
  --step-ms: 6000ms;
  background: var(--gr-teal-900); border-radius: 24px; padding: 32px; color: var(--gr-paper);
  border: 1px solid rgba(255, 255, 255, .10); box-shadow: var(--gr-shadow-lg);
  display: flex; flex-direction: column; gap: 24px;
}
.flow__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.steps__count { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--gr-lime); white-space: nowrap; }
.steps__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gr-lime); animation: gr-pulse 1.8s ease-out infinite; }

/* Recorrido: nodo + conector por etapa; el tramo lima avanza durante el paso activo */
.flow__track { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.stage {
  display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 0; margin: 0;
  border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.stage:focus-visible { outline: 2px solid var(--gr-lime); outline-offset: 4px; border-radius: 10px; }
.stage__row { display: flex; align-items: center; gap: 8px; }
.stage__node {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--gr-on-dark-muted);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .26);
  transition: background .3s var(--gr-ease), color .3s var(--gr-ease), box-shadow .3s var(--gr-ease);
}
.stage__check { display: none; }
.stage.is-done .stage__node { background: var(--gr-lime); color: var(--gr-teal-900); box-shadow: none; }
.stage.is-done .stage__num { display: none; }
.stage.is-done .stage__check { display: block; }
.stage.is-active .stage__node { background: var(--gr-lime); color: var(--gr-teal-900); box-shadow: 0 0 0 6px rgba(224, 255, 0, .22); }
.stage__line { flex: 1; height: 2px; border-radius: 1px; overflow: hidden; background: rgba(255, 255, 255, .18); }
.stage__fill { display: block; height: 100%; background: var(--gr-lime); transform: scaleX(0); transform-origin: left; }
.stage.is-done .stage__fill { transform: none; }
.stage.is-active .stage__fill { animation: gr-grow var(--step-ms) linear forwards; }
.stage__label { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--gr-on-dark-muted); white-space: nowrap; }
.stage.is-active .stage__label { color: var(--gr-paper); }

/* Tarjeta del paso activo */
.flow__card {
  display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: 18px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .10);
  animation: gr-fade .36s var(--gr-ease);
}
.flow__top { display: flex; gap: 18px; align-items: flex-start; }
.flow__numeral {
  flex: none; font-family: var(--gr-font-display); font-stretch: 112%; font-weight: 700;
  font-size: 64px; line-height: 1; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px var(--gr-lime);
}
.flow__title {
  font-family: var(--gr-font-display); font-stretch: 112%; font-weight: 700;
  font-size: 21px; line-height: 1.25; letter-spacing: -.02em; color: var(--gr-paper);
}
.flow__text { font-size: 15px; line-height: 1.5; color: var(--gr-on-dark-muted); }
.flow__piece { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .10); }
.flow__cap { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gr-on-dark-muted); }

.frows { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.frow {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .10);
  font-size: 14px; font-weight: 500; line-height: 1.4;
}
.frow > svg { flex: none; color: var(--gr-on-dark-muted); }
.frow__txt { flex: 1; min-width: 0; }
.ftag {
  flex: none; padding: 4px 8px; border-radius: 6px; white-space: nowrap;
  font-size: 11px; font-weight: 600; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gr-on-dark-muted); border: 1px solid rgba(255, 255, 255, .26);
}
.ftag--lime { color: var(--gr-lime); background: rgba(224, 255, 0, .12); border-color: rgba(224, 255, 0, .45); }

.fboxes { display: flex; align-items: center; gap: 8px; }
.fbox {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 10px; border-radius: 12px; text-align: center;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .10);
  font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--gr-paper);
}
.fbox > svg { flex: none; color: var(--gr-on-dark-muted); }
.fbox--hi { background: rgba(224, 255, 0, .12); border-color: rgba(224, 255, 0, .45); }
.fbox--hi > svg { color: var(--gr-lime); }
.fbox__arrow { flex: none; color: var(--gr-on-dark-muted); }
.flow__lock { display: flex; align-items: center; gap: 8px; padding-top: 4px; font-size: 14px; font-weight: 500; color: var(--gr-on-dark-muted); }
.flow__lock > svg { flex: none; color: var(--gr-lime); }

/* ============ HOME · Resultados / Qué hacemos ============ */
.result__idx { font-family: var(--gr-font-display); font-stretch: 112%; font-weight: 700; font-size: 14px; color: var(--gr-teal-700); }
.card__h3 { font-weight: 700; font-size: 24px; letter-spacing: -.02em; color: var(--gr-teal-900); }
.card__h3--22 { font-size: 22px; }
.card__p { font-size: 16px; line-height: 1.6; color: var(--gr-neutral-700); }

.svc { display: flex; flex-direction: column; gap: 16px; }
.svc .card__p { flex: 1; }
.svc__icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--gr-lime); color: var(--gr-teal-900);
  display: flex; align-items: center; justify-content: center;
}

/* ============ HOME · Casos ============ */
.case {
  background: rgba(255, 255, 255, .06); border: 1px solid var(--gr-line-on-dark); border-radius: 22px;
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.case__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.case__live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--gr-lime); white-space: nowrap; }
.case__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gr-lime); }
.case__h3 { font-weight: 700; font-size: 22px; letter-spacing: -.02em; color: var(--gr-paper); }
.case__p { font-size: 15px; line-height: 1.6; color: var(--gr-on-dark-muted); }
.case__facts { border-top: 1px solid var(--gr-line-on-dark); padding-top: 16px; display: grid; gap: 12px; }
.case__fact { display: flex; flex-direction: column; gap: 4px; }
.case__k { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gr-on-dark-muted); }
.case__k--lime { color: var(--gr-lime); }
.case__v { font-size: 15px; line-height: 1.5; }

/* ============ HOME · Contacto ============ */
.promises { margin-top: 8px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.promises li { display: flex; gap: 12px; align-items: center; font-size: 16px; color: var(--gr-neutral-900); }
.promises li > span:last-child { flex: 1; min-width: 0; }

/* Contacto directo (WhatsApp y correo), debajo de las promesas. */
.direct {
  margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--gr-neutral-200);
  display: flex; flex-direction: column; gap: 14px;
}
.direct__label { font-size: 15px; color: var(--gr-neutral-700); }
.direct__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.direct__mail, .direct__mail:hover {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 600; color: var(--gr-teal-700); overflow-wrap: anywhere;
}

.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; font-family: var(--gr-font-sans); }
.field--chips { gap: 10px; }
.field__label { font-size: .875rem; font-weight: 600; color: var(--gr-neutral-900); }
.field__input {
  font-family: inherit; font-size: 1rem; color: var(--gr-neutral-900); background: var(--gr-white);
  padding: 12px 16px; border-radius: 14px; border: 1px solid var(--gr-teal-900); outline: none;
  box-shadow: none; transition: border-color .12s ease, box-shadow .12s ease; width: 100%; margin: 0;
}
.field__input:focus { border-color: var(--gr-teal-700); box-shadow: 0 0 0 3px var(--gr-ring); }
textarea.field__input { resize: vertical; display: block; }
.field__err { font-size: .75rem; color: var(--gr-danger); }
.field__err:empty { display: none; }
.field.is-bad .field__input { border-color: var(--gr-danger); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--gr-neutral-300); background: var(--gr-white); color: var(--gr-neutral-900);
  transition: background .14s, color .14s, border-color .14s;
}
.chip[aria-pressed="true"] { border-color: var(--gr-teal-900); background: var(--gr-teal-900); color: var(--gr-paper); }

.form__status { font-size: 14px; line-height: 1.5; color: var(--gr-neutral-700); }
.form__status:empty { display: none; }
.form__status.is-bad { color: var(--gr-danger); }
.form__privacy { font-size: 13px; line-height: 1.6; color: var(--gr-neutral-500); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.thanks { display: flex; flex-direction: column; gap: 16px; padding: 24px 0; text-align: center; align-items: center; }
.thanks__ic {
  width: 56px; height: 56px; border-radius: 50%; background: var(--gr-lime); color: var(--gr-teal-900);
  display: flex; align-items: center; justify-content: center;
}
.thanks__h3 { font-weight: 700; font-size: 26px; color: var(--gr-teal-900); }
.thanks__h3:focus { outline: none; }
.thanks__p { font-size: 16px; line-height: 1.6; color: var(--gr-neutral-700); max-width: 380px; }

/* ============ SEGURIDAD ============ */
.segHero { position: relative; overflow: hidden; background: var(--gr-teal-900); color: var(--gr-paper); padding: 88px 24px; }
.segHero__in { position: relative; max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.back, .back:hover { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; color: var(--gr-on-dark-muted); font-size: 14px; font-weight: 500; }
.segHero__h1 {
  font-weight: 700; font-size: clamp(38px, 4.8vw, 60px); line-height: 1.05;
  text-wrap: balance; color: var(--gr-paper);
}

.method { padding: 0; list-style: none; display: flex; flex-direction: column; }
.method li { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--gr-neutral-200); }
.method__n {
  flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--gr-lime); color: var(--gr-teal-900);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.method__h3 { font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--gr-teal-900); }
.method__p { font-size: 16px; line-height: 1.6; color: var(--gr-neutral-700); }

.ctrl__title {
  font-family: var(--gr-font-display); font-stretch: 112%; font-weight: 700; font-size: 18px;
  line-height: 1.5; letter-spacing: -.02em; color: var(--gr-teal-900);
}
.dots { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.dots li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--gr-neutral-900); }
.dots li::before { content: ""; flex: none; margin-top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--gr-teal-700); }
.standards { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--gr-neutral-200); padding-top: 32px; }
.standards__note { font-size: 14px; line-height: 1.6; color: var(--gr-neutral-500); max-width: 820px; }

.checks { padding: 0; list-style: none; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.checks li > span:last-child { flex: 1; min-width: 0; }

.accentP { font-size: 18px; line-height: 1.6; color: var(--gr-neutral-900); }

.siteData { display: grid; gap: 32px 40px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.siteData > div { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--gr-teal-900); padding-top: 16px; }
.siteData dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gr-teal-700); }
.siteData dd { font-size: 16px; line-height: 1.6; color: var(--gr-neutral-900); }

.cta { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

/* ============ NOSOTROS ============ */
.team {
  padding: 0; list-style: none; display: grid; column-gap: 48px;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}
.team li { display: flex; gap: 18px; align-items: flex-start; padding: 24px 0; border-top: 1px solid var(--gr-neutral-200); }
.team .svc__icon { flex: none; }
.team__h3 { font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--gr-teal-900); }
.team__p { font-size: 16px; line-height: 1.6; color: var(--gr-neutral-700); }
.team__note { display: flex; gap: 12px; align-items: center; font-size: 17px; font-weight: 500; line-height: 1.5; color: var(--gr-teal-900); }

/* ============ Footer ============ */
.ft { background: var(--gr-teal-900); color: var(--gr-paper); padding: 56px 24px 32px; }
.ft--deep { background: var(--gr-teal-950); }
.ft__in { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.ft__grid { display: grid; gap: 40px; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.ft__about { font-size: 15px; line-height: 1.6; color: var(--gr-on-dark-muted); max-width: 360px; }
.ft__unit { font-size: 13px; color: var(--gr-on-dark-muted); }
.ft__links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 15px; }
.ft__links a, .ft__links a:hover { color: var(--gr-paper); }
.ft__bottom {
  border-top: 1px solid var(--gr-line-on-dark); padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--gr-on-dark-muted);
}
.ft__energy { display: inline-flex; align-items: center; gap: 8px; }

/* ============ Ajustes para pantallas chicas ============ */
@media (max-width: 600px) {
  .sec, .segHero { padding-top: 64px; padding-bottom: 64px; }
  .hero { padding-top: 56px; padding-bottom: 64px; }
  .hd__in { padding-left: 16px; padding-right: 16px; }
  .sec, .segHero, .hero, .ft { padding-left: 16px; padding-right: 16px; }
  .menu { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 480px) {
  .flow { padding: 20px; gap: 20px; border-radius: 20px; }
  .flow__card { padding: 18px; }
  .flow__top { gap: 14px; }
  .flow__numeral { font-size: 44px; }
  .flow__title { font-size: 19px; }
  /* En celular la etiqueta larga pasa abajo y el flujo de cajas se apila. */
  .frow { flex-wrap: wrap; row-gap: 8px; }
  .frow__txt { flex-basis: auto; }
  .frow .ftag { margin-left: auto; }
  .fboxes { flex-direction: column; align-items: stretch; }
  .fbox { flex-direction: row; text-align: left; padding: 10px 12px; }
  .fbox .ftag { margin-left: auto; }
  .fbox__arrow { align-self: center; transform: rotate(90deg); }
  .card { padding: 24px; }
  .case { padding: 24px; }
  .btn--lg { padding: 14px 24px; font-size: 1.125rem; }
  /* Los CTA largos ("Analizar la seguridad de mi proyecto") no entran en una línea. */
  .btn--lg { white-space: normal; text-align: center; line-height: 1.25; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  /* El cursor del titular y el punto del panel siguen titilando, como en el diseño:
     son indicadores chicos que no desplazan nada. */
  .type__caret { animation-duration: 1s !important; animation-iteration-count: infinite !important; }
  .steps__pulse { animation-duration: 1.8s !important; animation-iteration-count: infinite !important; }
  /* El panel avanza solo igual: el tramo activo del recorrido marca la duración de cada paso. */
  .stage.is-active .stage__fill { animation-duration: var(--step-ms) !important; }
}
