/* ==========================================================================
   Acción Legal Bolivia — sistema visual
   Tokens + componentes. Sin dependencias externas (fuentes del sistema).
   ========================================================================== */

:root {
  /* Color */
  --ink-900: #0b1622;
  --ink-800: #12212f;
  --ink-700: #1d3247;
  --ink-600: #33495f;
  --ink-400: #5c7085;
  --ink-300: #93a3b3;
  --line: #dfe4ea;
  --line-soft: #eceff3;
  --paper: #ffffff;
  --paper-alt: #f5f8f8;
  --paper-warm: #eef4f4;
  --brand-700: #077069;
  --brand-600: #009c92;
  --brand-300: #00d7c9;
  --brand-050: #dff5f3;
  --green-600: #1f7a5a;
  --green-100: #e3f3ec;
  --red-600: #a33b32;
  --red-100: #f8e6e4;
  --blue-600: #23557f;
  --blue-100: #e4eef6;

  /* Tipografía */
  --font-display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Espaciado */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Forma */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(11, 22, 34, .06), 0 1px 3px rgba(11, 22, 34, .04);
  --shadow: 0 4px 12px rgba(11, 22, 34, .07), 0 1px 3px rgba(11, 22, 34, .05);
  --shadow-lg: 0 18px 40px rgba(11, 22, 34, .12), 0 4px 12px rgba(11, 22, 34, .06);

  --wrap: 1140px;
  --wrap-narrow: 760px;
}

/* Base ------------------------------------------------------------------ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink-700); text-decoration-color: var(--brand-300); text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }

:focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.18;
  margin: 0 0 var(--sp-4);
  font-weight: 600;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); }
h4 { font-size: 1.05rem; letter-spacing: .01em; }
p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

::selection { background: var(--brand-050); color: var(--ink-900); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink-900); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* Utilidades ------------------------------------------------------------ */

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 2rem + 6vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 1.5rem + 4vw, 4rem) 0; }
.section--alt { background: var(--paper-alt); }
.section--dark { background: var(--ink-900); color: #c8d3de; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .lead { color: #b3c1cf; }

.center { text-align: center; }
.center .section-head { margin-inline: auto; }
.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;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: var(--sp-3);
}
.section--dark .eyebrow { color: var(--brand-300); }

.lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-600);
  max-width: 68ch;
}
.section--dark .lead { color: #b3c1cf; }

.section-head { max-width: 72ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.25rem); }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head p { margin-bottom: 0; }

/* Botones --------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-size: .97rem; font-weight: 600;
  padding: .78rem 1.35rem; border-radius: var(--radius);
  border: 1px solid transparent; text-decoration: none;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
  cursor: pointer; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brand-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #86612b; color: #fff; }
.btn--ink { background: var(--ink-900); color: #fff; }
.btn--ink:hover { background: var(--ink-700); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink-800); background: var(--paper); }
.btn--ghost:hover { border-color: var(--brand-300); color: var(--ink-900); }
.section--dark .btn--ghost { border-color: rgba(255,255,255,.28); color: #fff; background: transparent; }
.section--dark .btn--ghost:hover { border-color: var(--brand-300); color: #fff; }
.btn--sm { padding: .55rem 1rem; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--sp-5); }
.center .btn-row { justify-content: center; }

/* Encabezado del sitio -------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 22, 34, .92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); min-height: 72px; padding: .6rem 0;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex-shrink: 0; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name b {
  font-family: var(--font-display); font-size: 1.08rem; color: #fff;
  letter-spacing: .04em; font-weight: 600;
}
.brand__name span {
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-300); font-weight: 600;
}

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a {
  color: #c3ceda; text-decoration: none; font-size: .93rem; font-weight: 500;
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: #fff; border-bottom-color: var(--brand-300); }
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--brand-300); }

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm); color: #fff; width: 42px; height: 38px;
  cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.nav-toggle:hover { border-color: var(--brand-300); }

/* Héroe ----------------------------------------------------------------- */

.hero {
  position: relative; color: #dde5ec; overflow: hidden;
  background: var(--ink-900);
  padding: clamp(4rem, 2.5rem + 8vw, 7.5rem) 0 clamp(4rem, 3rem + 6vw, 6.5rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--hero-img, none);
  background-size: cover; background-position: center;
  opacity: .28;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(11,22,34,.96) 0%, rgba(11,22,34,.88) 45%, rgba(11,22,34,.62) 100%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero .lead { color: #c3ceda; max-width: 58ch; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: var(--sp-6);
  font-size: .88rem; color: #97a7b6;
}
.hero__meta span { display: inline-flex; align-items: center; gap: .45rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-300); flex: none; }
.dot--live { background: #57c08b; box-shadow: 0 0 0 0 rgba(87,192,139,.7); animation: pulse 2.2s infinite; }
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(87,192,139,0); }
  100% { box-shadow: 0 0 0 0 rgba(87,192,139,0); }
}

/* Rejillas -------------------------------------------------------------- */

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--sidebar { grid-template-columns: 1.6fr 1fr; align-items: start; }

/* Tarjetas -------------------------------------------------------------- */

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
.section--alt .card { background: var(--paper); }
.card h3 { margin-bottom: var(--sp-2); font-size: 1.12rem; }
.card p { font-size: .96rem; color: var(--ink-600); }
.card__num {
  font-family: var(--font-display); font-size: .9rem; font-weight: 700;
  color: var(--brand-700); letter-spacing: .08em; margin-bottom: var(--sp-2);
  display: block;
}
.card--dark { background: var(--ink-800); border-color: rgba(255,255,255,.09); color: #b7c4d1; }
.card--dark h3 { color: #fff; }
.card--dark p { color: #a9b8c6; }
.card--dark .card__num { color: var(--brand-300); }
.card__icon {
  width: 42px; height: 42px; border-radius: 10px; margin-bottom: var(--sp-4);
  display: grid; place-items: center; background: var(--brand-050); color: var(--brand-700);
}
.card__icon svg { width: 22px; height: 22px; }

.card-link { display: block; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-300); color: inherit; }

/* Insignias ------------------------------------------------------------- */

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 100px;
  background: var(--brand-050); color: var(--brand-700);
}
.badge--green { background: var(--green-100); color: var(--green-600); }
.badge--blue { background: var(--blue-100); color: var(--blue-600); }
.badge--red { background: var(--red-100); color: var(--red-600); }
.badge--muted { background: var(--line-soft); color: var(--ink-400); }

/* Lista de verificaciones ------------------------------------------------ */

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative; padding-left: 1.9rem; margin-bottom: .65rem;
  font-size: .97rem; color: var(--ink-600);
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .48em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a5a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.checklist--cross li::before {
  background: var(--red-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a33b32' stroke-width='3.5' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/11px no-repeat;
}
.section--dark .checklist li { color: #b3c1cf; }

/* Datos ----------------------------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.stat { border-left: 2px solid var(--brand-300); padding-left: var(--sp-4); }
.stat b {
  display: block; font-family: var(--font-display); font-size: 2.1rem;
  color: #fff; line-height: 1.1; letter-spacing: -.02em;
}
.stat span { font-size: .86rem; color: #9fb0bf; }
.section:not(.section--dark) .stat b { color: var(--ink-900); }
.section:not(.section--dark) .stat span { color: var(--ink-500, var(--ink-400)); }

/* Diagnóstico: antes / después ------------------------------------------ */

.audit { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--sp-5); align-items: stretch; }
.audit__col { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-5); background: var(--paper); }
.audit__col--after { border-color: var(--brand-300); box-shadow: var(--shadow); }
.audit__col h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.1rem; }
.audit__tag {
  font-family: var(--font-body); font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .22rem .5rem; border-radius: 4px;
  background: var(--red-100); color: var(--red-600);
}
.audit__tag--after { background: var(--green-100); color: var(--green-600); }
.audit__arrow {
  display: grid; place-items: center; color: var(--brand-700); font-size: 1.5rem;
}
.audit__row { padding: .7rem 0; border-top: 1px solid var(--line-soft); font-size: .95rem; }
.audit__row:first-of-type { border-top: 0; }
.audit__row b { color: var(--ink-900); display: block; font-weight: 600; }
.audit__row span { color: var(--ink-400); font-size: .88rem; }

/* Arquitectura ---------------------------------------------------------- */

.arch { display: grid; gap: .55rem; }
.arch__row { display: grid; grid-template-columns: 210px 1fr; gap: var(--sp-4); align-items: center; }
.arch__node {
  background: var(--ink-800); color: #fff; border-radius: var(--radius);
  padding: .8rem 1rem; border-left: 3px solid var(--brand-600);
}
.arch__node b { display: block; font-size: .96rem; }
.arch__node span { font-size: .8rem; color: #9fb0bf; }
.arch__desc { font-size: .92rem; color: #a9b8c6; }
.arch__flow { color: var(--brand-300); padding-left: 1.1rem; font-size: .8rem; letter-spacing: .1em; }

/* Fases ----------------------------------------------------------------- */

.phases { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-4); counter-reset: fase; }
.phase {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-4); position: relative; box-shadow: var(--shadow-sm);
}
.phase::before {
  counter-increment: fase; content: "Fase " counter(fase);
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-700); display: block; margin-bottom: .5rem;
}
.phase h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.phase p { font-size: .9rem; color: var(--ink-600); margin-bottom: .8rem; }
.phase__time { font-size: .8rem; color: var(--ink-400); font-weight: 600; }

/* Cronograma ------------------------------------------------------------ */

.timeline { border-left: 2px solid var(--line); margin-left: 8px; padding-left: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 var(--sp-5) var(--sp-5); }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: .45em;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--brand-600);
}
.timeline li.is-done::before { background: var(--brand-600); }
.timeline h4 { margin-bottom: .2rem; }
.timeline p { font-size: .93rem; color: var(--ink-600); margin-bottom: 0; }

/* Comparativa de opciones ------------------------------------------------ */

.options { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.option {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-5);
  background: var(--paper); display: flex; flex-direction: column;
}
.option--featured { border-color: var(--brand-600); box-shadow: var(--shadow); }
.option__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.option h3 { margin-bottom: .3rem; }
.option__price { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink-900); margin: var(--sp-3) 0; }
.option__price small { display: block; font-family: var(--font-body); font-size: .78rem; color: var(--ink-400); letter-spacing: .04em; }

/* Tablas ----------------------------------------------------------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-400); font-weight: 700; background: var(--paper-alt); }
tbody tr:last-child td { border-bottom: 0; }
td strong { color: var(--ink-900); }
.section--dark .table-wrap { background: var(--ink-800); border-color: rgba(255,255,255,.09); }
.section--dark th { background: var(--ink-900); color: #93a3b3; }
.section--dark td, .section--dark td strong { color: #b7c4d1; }
.section--dark td strong { color: #fff; }
.section--dark th, .section--dark td { border-bottom-color: rgba(255,255,255,.07); }

/* Avisos ---------------------------------------------------------------- */

.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--brand-600);
  border-radius: var(--radius); padding: var(--sp-4) var(--sp-5);
  background: var(--paper-alt); font-size: .94rem;
}
.callout b { color: var(--ink-900); }
.callout--info { border-left-color: var(--blue-600); background: var(--blue-100); }
.callout--warn { border-left-color: var(--brand-700); background: var(--brand-050); }
.callout--ok { border-left-color: var(--green-600); background: var(--green-100); }
.section--dark .callout { background: var(--ink-800); border-color: rgba(255,255,255,.09); border-left-color: var(--brand-600); color: #b7c4d1; }
.section--dark .callout b { color: #fff; }

/* Detalles / FAQ --------------------------------------------------------- */

details.faq {
  border-bottom: 1px solid var(--line); padding: var(--sp-4) 0;
}
details.faq summary {
  cursor: pointer; font-weight: 600; color: var(--ink-900);
  font-family: var(--font-display); font-size: 1.06rem; list-style: none;
  display: flex; justify-content: space-between; gap: var(--sp-4); align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand-700); font-family: var(--font-body); }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: var(--sp-3) 0 0; font-size: .96rem; color: var(--ink-600); }

/* Servicios ------------------------------------------------------------- */

.servicio {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-5);
  background: var(--paper); height: 100%;
}
.servicio h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.servicio p { font-size: .93rem; color: var(--ink-600); margin-bottom: 0; }
.servicio__tag { font-size: .72rem; color: var(--brand-700); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

/* Marco de navegador (demo) ---------------------------------------------- */

.device {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--paper);
}
.device__bar {
  display: flex; align-items: center; gap: .5rem;
  background: var(--ink-800); padding: .55rem .9rem;
}
.device__dots { display: flex; gap: .3rem; }
.device__dots i { width: 9px; height: 9px; border-radius: 50%; background: #46596b; display: block; }
.device__url {
  flex: 1; background: rgba(255,255,255,.08); color: #9fb0bf; font-family: var(--font-mono);
  font-size: .74rem; padding: .25rem .6rem; border-radius: 4px; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.device__body { padding: 0; background: var(--paper); }
.device__body img { width: 100%; display: block; }

/* Pasos numerados (cómo funciona) --------------------------------------- */

.steps { counter-reset: paso; display: grid; gap: var(--sp-4); }
.step { display: grid; grid-template-columns: 42px 1fr; gap: var(--sp-4); align-items: start; }
.step::before {
  counter-increment: paso; content: counter(paso);
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink-900); color: var(--brand-300);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}
.step h4 { margin: .35rem 0 .2rem; }
.step p { font-size: .95rem; color: var(--ink-600); margin: 0; }

/* Banner de vista previa -------------------------------------------------- */

.preview-bar {
  background: var(--brand-700); color: #fff; font-size: .85rem;
  padding: .55rem 0; text-align: center;
}
.preview-bar b { font-weight: 700; }
.preview-bar a { color: #fff; }

/* Contacto ---------------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--sp-6); align-items: start; }
.contact-item { display: flex; gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid var(--line-soft); }
.contact-item:last-child { border-bottom: 0; }
.contact-item svg { width: 20px; height: 20px; color: var(--brand-700); flex: none; margin-top: .25rem; }
.contact-item b { display: block; color: var(--ink-900); font-size: .95rem; }
.contact-item a { font-size: .95rem; }

/* Pie --------------------------------------------------------------------- */

.site-footer { background: var(--ink-900); color: #93a3b3; padding: var(--sp-7) 0 var(--sp-5); font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--sp-3); font-family: var(--font-body); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--sp-5); }
.site-footer a { color: #b7c4d1; text-decoration: none; display: block; margin-bottom: .45rem; }
.site-footer a:hover { color: var(--brand-300); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.footer-bottom {
  margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid rgba(255,255,255,.09);
  display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between; font-size: .84rem;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .phases { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid--sidebar, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-900); border-bottom: 1px solid rgba(255,255,255,.1);
    padding: .5rem 1.25rem 1rem; display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .site-nav .btn { margin-top: .8rem; justify-content: center; }
  .audit { grid-template-columns: 1fr; }
  .audit__arrow { transform: rotate(90deg); padding: .2rem 0; }
  .options { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4, .phases { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .arch__row { grid-template-columns: 1fr; gap: .4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .btn-row .btn { width: auto; flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .btn:hover, .card-link:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .btn, .nav-toggle, .preview-bar { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .section { padding: 1.5rem 0; page-break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* Formularios ------------------------------------------------------------ */

.form {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--sp-5); box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form-field { margin-bottom: var(--sp-4); }
.form-field label {
  display: block; font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  color: var(--ink-800); margin-bottom: .35rem;
}
.form-field label span { color: var(--brand-700); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font-family: var(--font-body); font-size: .96rem; color: var(--ink-800);
  padding: .68rem .8rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(184, 137, 63, .18);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--ink-300); }
.form-note { font-size: .82rem; color: var(--ink-400); margin: -.4rem 0 var(--sp-4); }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-alert {
  border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-4);
  font-size: .94rem;
}
.form-alert--ok { background: var(--green-100); border-left: 3px solid var(--green-600); color: #14543f; }
.form-alert--error { background: var(--red-100); border-left: 3px solid var(--red-600); color: #7d2c25; }
.form-alert b { color: inherit; }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
