/* IAKAEL · home estática
   Dirección: editorial oscura (navy casi negro) con celeste poco saturado,
   geometría sutil de circuitos y bordes finos con luz. Sin dependencias. */

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070c14;
  --bg-2: #0a121d;
  --surface: #0d1724;
  --surface-2: #112033;
  --line: rgba(140, 196, 222, 0.14);
  --line-strong: rgba(140, 196, 222, 0.32);
  --text: #e8eef4;
  --muted: #a3b2c2;
  --accent: #8cc4de;
  --accent-strong: #b3dcee;
  --on-accent: #06101a;

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.06rem + 0.3vw, 1.25rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  --step-4: clamp(2.15rem, 1.5rem + 3vw, 4.1rem);

  --space-s: clamp(0.75rem, 0.7rem + 0.3vw, 1rem);
  --space-m: clamp(1.25rem, 1.1rem + 0.7vw, 1.75rem);
  --space-l: clamp(2rem, 1.6rem + 2vw, 3.25rem);
  --space-xl: clamp(4rem, 3rem + 5vw, 8.5rem);

  --radius: 14px;
  --radius-lg: 22px;
  --container: 75rem;
  --header-h: 4.5rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 36rem at 85% -10%, rgba(120, 180, 214, 0.10), transparent 60%),
    radial-gradient(40rem 30rem at -10% 40%, rgba(80, 130, 170, 0.07), transparent 60%),
    url("assets/img/circuito.svg");
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: auto, auto, 240px 240px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 700; color: var(--text); }
em, i { font-style: normal; }

a { color: var(--accent-strong); text-underline-offset: 0.2em; }
a:hover { color: #d4ecf7; }

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 6px;
}
main:focus { outline: none; }

.mono {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
}

.container {
  width: min(100% - 2 * clamp(1.25rem, 4vw, 3rem), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn__icon { width: 1.15em; height: 1.15em; flex: none; }
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 1px rgba(179, 220, 238, 0.4) inset, 0 10px 30px -12px rgba(140, 196, 222, 0.55);
}
.btn--primary:hover { background: var(--accent-strong); color: var(--on-accent); transform: translateY(-1px); }
.btn--ghost {
  background: rgba(140, 196, 222, 0.04);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--text); background: rgba(140, 196, 222, 0.08); }
.btn--sm { min-height: 44px; padding: 0.5rem 1.1rem; font-size: 0.95rem; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 12, 20, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(7, 12, 20, 0.97); }
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  min-height: var(--header-h);
  padding-block: 0.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}
.brand__mark { width: 32px; height: 32px; color: var(--accent); }
.brand__name { font-weight: 800; letter-spacing: 0.14em; font-size: 1.05rem; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}
.site-nav__list { display: flex; flex-wrap: wrap; gap: 0 0.25rem; }
.site-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.7rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.site-nav__list a:hover { color: var(--text); background: rgba(140, 196, 222, 0.06); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.9rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* Móvil: sin JS el menú queda visible debajo de la marca;
   con JS (clase .nav-ready) se pliega tras el botón accesible. */
@media (max-width: 899.98px) {
  .site-nav { width: 100%; padding-bottom: 0.5rem; }
  .site-nav__cta { display: none; }
  .nav-ready .nav-toggle { display: inline-flex; }
  .nav-ready .site-nav { display: none; }
  .nav-ready .site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1rem;
    border-top: 1px solid var(--line);
  }
  .nav-ready .site-nav.is-open .site-nav__list { flex-direction: column; }
  .nav-ready .site-nav.is-open .site-nav__list a { width: 100%; font-size: 1.05rem; color: var(--text); }
  .nav-ready .site-nav.is-open .site-nav__cta { display: inline-flex; margin-top: 0.5rem; }
}

/* ---------- Comunes ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow__num {
  display: inline-flex;
  align-items: center;
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text);
  letter-spacing: 0.04em;
}
.eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(140, 196, 222, 0.14);
}

.section { padding-block: var(--space-xl); position: relative; }
.section--band {
  background: rgba(10, 18, 29, 0.92);
  border-block: 1px solid var(--line);
}
.section--band::before {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  width: min(100% - 2.5rem, var(--container));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line-strong) 30%, var(--line) 70%, transparent);
  pointer-events: none;
}

.section__head { display: grid; gap: var(--space-s) var(--space-l); margin-bottom: var(--space-l); }
.section__title {
  font-size: var(--step-3);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 22ch;
  text-wrap: balance;
}
.section__lede { margin-top: var(--space-s); color: var(--muted); font-size: var(--step-1); max-width: 58ch; }
@media (min-width: 900px) {
  .section__head--split { grid-template-columns: 3fr 9fr; align-items: start; }
  .section__head--split > .eyebrow { padding-top: 0.75rem; }
}

/* ---------- Hero (pantalla completa atmosférica) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding-block: clamp(2rem, 1.5rem + 2.5vw, 3.5rem) clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  overflow: hidden;
  overflow: clip;
}
.hero__grid { position: relative; z-index: 1; flex: 1; display: grid; grid-template-rows: 1fr auto; gap: var(--space-l); }
.hero__copy { align-self: center; }
.hero__title {
  margin-top: var(--space-m);
  font-size: var(--step-4);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 17ch;
  text-wrap: balance;
}
.hero__lede { margin-top: var(--space-m); color: var(--muted); font-size: var(--step-1); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-l); }
.hero__note { margin-top: var(--space-m); color: var(--muted); }

/* Escena decorativa: capa absoluta, sin impacto en el layout ni en la interacción */
.hero__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.scene__svg { width: 100%; height: 100%; max-width: none; opacity: 0.55; }
.hero__scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 12, 20, 0.35) 0%, transparent 25%, transparent 60%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7, 12, 20, 0.92) 0%, rgba(7, 12, 20, 0.7) 45%, rgba(7, 12, 20, 0.2) 100%);
}
@media (min-width: 1024px) {
  .scene__svg { opacity: 1; }
  .hero__scene::after {
    background:
      linear-gradient(180deg, rgba(7, 12, 20, 0.3) 0%, transparent 22%, transparent 62%, var(--bg) 100%),
      linear-gradient(90deg, var(--bg) 0%, rgba(7, 12, 20, 0.82) 34%, rgba(7, 12, 20, 0.1) 62%, transparent 100%);
  }
}

/* Movimiento: solo transform y stroke-dashoffset, en pausa por defecto.
   script.js añade .is-running cuando la escena es visible, la pestaña está activa
   y no se pide movimiento reducido. Sin JS queda estática. */
.scene__layer--back { animation: scene-drift-a 48s ease-in-out infinite alternate; }
.scene__layer--mid { animation: scene-drift-b 64s ease-in-out infinite alternate; }
.scene__pulse {
  stroke-dasharray: 36 964;
  stroke-opacity: 0.75;
  stroke-dashoffset: 1000;
  animation: scene-pulse 12s linear infinite;
}
.scene__pulse--2 { animation-duration: 15s; animation-delay: -5s; }
.scene__pulse--3 { animation-duration: 13s; animation-delay: -9s; }
.scene__pulse--4 { animation-duration: 17s; animation-delay: -2s; }
.scene__pulse--5 { animation-duration: 14s; animation-delay: -7s; }
.hero__scene .scene__layer,
.hero__scene .scene__pulse { animation-play-state: paused; }
.hero__scene.is-running .scene__layer,
.hero__scene.is-running .scene__pulse { animation-play-state: running; }
@keyframes scene-drift-a { to { transform: translate3d(-18px, 10px, 0); } }
@keyframes scene-drift-b { to { transform: translate3d(10px, -6px, 0); } }
@keyframes scene-pulse { to { stroke-dashoffset: 0; } }

/* Panel de flujo (franja discreta al pie del hero) */
.flow {
  position: relative;
  padding: clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(13, 23, 36, 0.78), rgba(13, 23, 36, 0.78)) padding-box,
    linear-gradient(150deg, rgba(179, 220, 238, 0.45), rgba(140, 196, 222, 0.08) 40%, rgba(140, 196, 222, 0.2)) border-box;
  border: 1px solid transparent;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.8);
}
.flow__head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px dashed var(--line-strong);
}
.flow__tag { color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }
.flow__title { font-weight: 700; }
.flow__list { position: relative; display: grid; gap: 1.1rem; }
.flow__list::before {
  content: "";
  position: absolute;
  left: 21px; top: 22px; bottom: 22px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), rgba(140, 196, 222, 0.15));
}
@media (min-width: 640px) {
  .flow--strip .flow__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
  .flow--strip .flow__list::before { display: none; }
}
@media (min-width: 1100px) {
  .flow--strip .flow__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .flow--strip .flow__list::before {
    display: block;
    left: 22px; right: 22px; top: 22px; bottom: auto;
    width: auto; height: 1px;
    background: linear-gradient(90deg, var(--accent), rgba(140, 196, 222, 0.15));
  }
  .flow--strip .flow__step { align-items: start; }
  .flow--strip { padding-block: 1rem; }
  .flow--strip .flow__head { padding-bottom: 0.6rem; margin-bottom: 0.9rem; }
  .flow--strip .flow__text { font-size: 0.92rem; }
  .hero__grid { gap: var(--space-m); }
  .hero__actions { margin-top: var(--space-m); }
}
.flow__step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: center; }
.flow__node {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  color: var(--accent);
}
.flow__node svg { width: 22px; height: 22px; }
.flow__step--human .flow__node { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.flow__text { display: block; font-size: 0.97rem; line-height: 1.5; color: var(--text); }
.flow__label { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; margin-bottom: 0.1rem; }

/* ---------- Tarjetas ---------- */
.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 640px) { .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card {
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  background: var(--bg-2);
  transition: background-color 0.25s ease;
}
.card:hover { background: var(--surface); }
.card__icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 1.5rem; }
.card__title { font-size: var(--step-1); line-height: 1.3; font-weight: 700; margin-bottom: 0.6rem; }
.card p { color: var(--muted); }

/* ---------- Automatizaciones (servicio) ---------- */
.section--auto {
  background: radial-gradient(48rem 26rem at 85% 0%, rgba(140, 196, 222, 0.09), transparent 70%);
}
@media (min-width: 900px) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.auto-cards { border-color: var(--line-strong); }
.card--service { display: flex; flex-direction: column; gap: 0.9rem; }
.card--service .card__icon { margin-bottom: 0.5rem; }
.card--service .card__title { margin-bottom: 0; }
.card__label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}
.card__service { color: var(--text); padding-top: 0.9rem; border-top: 1px dashed var(--line-strong); }
.card .card__service { color: var(--text); }
.auto__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: var(--space-l);
}
.auto__note { color: var(--muted); max-width: 52ch; }

/* ---------- Recursos ---------- */
.resources { display: grid; gap: var(--space-m); }
@media (min-width: 900px) { .resources { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.resource {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.75rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.resource p { color: var(--muted); max-width: 52ch; }
.resource--feature {
  background:
    radial-gradient(28rem 18rem at 100% 0%, rgba(140, 196, 222, 0.12), transparent 70%),
    var(--surface);
  border-color: var(--line-strong);
}
.resource__tag { color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }
.resource .resource__tag { color: var(--accent); }
.resource__title { font-size: var(--step-2); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.resource .btn, .resource .link-arrow { margin-top: auto; }

.ticks { display: grid; gap: 0.5rem; margin-bottom: 0.5rem; }
.ticks li { position: relative; padding-left: 1.75rem; color: var(--text); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 0.9rem; height: 0.5rem;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg) translateY(-25%);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform 0.2s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Pasos ---------- */
.steps { display: grid; gap: var(--space-m); counter-reset: none; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-l); } }
.step { position: relative; padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.step::before {
  content: "";
  position: absolute;
  top: -4px; left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(140, 196, 222, 0.7);
}
.step__num { display: block; color: var(--accent); margin-bottom: 0.75rem; }
.step__title { font-size: var(--step-2); line-height: 1.2; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.step p { color: var(--muted); }

.team-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-top: var(--space-l);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background: rgba(13, 23, 36, 0.6);
  max-width: 52rem;
}
@media (min-width: 900px) { .team-note { margin-left: calc(25% + var(--space-l) * 0.75); } }
.team-note__icon { width: 28px; height: 28px; color: var(--accent); }
.team-note__title { font-size: var(--step-1); font-weight: 700; margin-bottom: 0.35rem; }
.team-note p { color: var(--muted); }

/* ---------- Preguntas frecuentes (details/summary nativos) ---------- */
.faq { border-top: 1px solid var(--line-strong); max-width: 52rem; }
@media (min-width: 900px) { .faq { margin-left: calc(25% + var(--space-l) * 0.75); } }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 1.15rem 3rem 1.15rem 0;
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q:hover { color: var(--accent-strong); }
.faq__q::before,
.faq__q::after {
  content: "";
  position: absolute;
  right: 0.75rem; top: 50%;
  width: 14px; height: 1.5px;
  background: var(--accent);
  transition: transform 0.2s ease;
}
.faq__q::after { transform: rotate(90deg); }
.faq__item[open] > .faq__q::after { transform: rotate(0deg); }
.faq__a { padding: 0 3rem 1.4rem 0; color: var(--muted); max-width: 62ch; }

/* ---------- Contacto ---------- */
.contact__panel {
  display: grid;
  gap: var(--space-l);
  align-items: end;
  padding: clamp(1.75rem, 1.2rem + 3vw, 4rem);
  border-radius: calc(var(--radius-lg) + 6px);
  background:
    radial-gradient(40rem 20rem at 0% 100%, rgba(140, 196, 222, 0.10), transparent 70%),
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(120deg, rgba(140, 196, 222, 0.4), rgba(140, 196, 222, 0.06) 50%, rgba(140, 196, 222, 0.3)) border-box;
  border: 1px solid transparent;
}
.contact__panel .section__title { margin-top: var(--space-s); }
@media (min-width: 900px) { .contact__panel { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } }
.contact__actions { display: grid; gap: 0.75rem; justify-items: start; }
@media (min-width: 900px) { .contact__actions { justify-items: end; text-align: right; } }
.contact__hint { color: var(--muted); }
.contact__brief { color: var(--text); max-width: 40ch; }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 1.5rem; color: var(--muted); font-size: 0.92rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; justify-content: space-between; }
.site-footer__top { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.site-footer__top:hover { color: var(--text); }

/* ---------- Preferencias ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn--primary:hover { transform: none; }
  .hero__scene .scene__layer,
  .hero__scene .scene__pulse { animation: none !important; transform: none !important; }
}

@media (forced-colors: active) {
  .btn, .flow, .resource, .contact__panel, .nav-toggle { border: 1px solid CanvasText; }
  .hero__scene { display: none; }
}
