/* ============================================================
   ACUANARIÑO ESP — Hoja de estilos institucional
   Mobile-first · Variables CSS · Grid + Flexbox
   Medidas en rem/em (px solo en bordes 1px y radios mínimos)
   ============================================================ */

/* ------------------------------------------------------------
   1. VARIABLES (:root)
   ------------------------------------------------------------ */
:root {
  /* Paleta institucional */
  --color-primary: #1A3A5C;   /* azul profundo  */
  --color-accent:  #2E86C1;   /* azul claro     */
  --color-cta:     #1ABC9C;   /* verde agua     */
  --color-bg:      #F7FAFC;   /* blanco roto    */
  --color-text:    #2D3748;   /* gris oscuro    */

  /* Derivados */
  --color-primary-dark: #122a44;
  --color-cta-dark:     #149a80;
  --color-surface:      #ffffff;
  --color-border:       #d8e2ec;
  --color-muted:        #5a6b7b;

  /* Tipografía */
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Escala de espaciado */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 2rem;

  /* Otros */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 0.125rem 0.5rem rgba(26, 58, 92, 0.08);
  --shadow-md: 0 0.5rem 1.5rem rgba(26, 58, 92, 0.12);
  --maxw: 75rem;            /* 1200px */
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }

ul { list-style: none; padding: 0; }

/* Accesibilidad: foco visible */
:focus-visible {
  outline: 0.1875rem solid var(--color-accent);
  outline-offset: 0.125rem;
  border-radius: 4px;
}

/* Sólo lector de pantalla */
.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;
}

/* Campo trampa anti-bot (honeypot): fuera de pantalla, no visible */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 0.5rem; top: -3rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.5rem; }

/* ------------------------------------------------------------
   3. UTILIDADES DE LAYOUT
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}
.container--narrow { max-width: 46rem; }

.section { padding-block: var(--space-xl); }
.section--alt { background: var(--color-surface); }

.muted { color: var(--color-muted); }
.note {
  background: rgba(46, 134, 193, 0.08);
  border-left: 4px solid var(--color-accent);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  margin-top: var(--space-lg);
}

.section__head { max-width: 46rem; margin-bottom: var(--space-lg); }
.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-cta);
  margin-bottom: var(--space-xs);
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-primary);
}
.section__intro { margin-top: var(--space-sm); color: var(--color-muted); font-size: 1.0625rem; }

.subsection-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

/* Grids genéricos */
.grid { display: grid; gap: var(--space-md); }
.grid--gap { gap: var(--space-md); }

/* ------------------------------------------------------------
   4. BOTONES
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s var(--ease),
              box-shadow 0.2s var(--ease),
              transform 0.2s var(--ease),
              color 0.2s var(--ease);
}
.btn:hover { text-decoration: none; }

.btn--cta {
  background: var(--color-cta);
  color: #06281f;
}
.btn--cta:hover {
  background: var(--color-cta-dark);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--ghost:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--block { width: 100%; }

/* ------------------------------------------------------------
   5. ENCABEZADO / NAVBAR
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand:hover { text-decoration: none; }
.brand__logo {
  width: auto;
  height: 2.5rem;
  display: block;
}

/* Botón hamburguesa */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3125rem;
  width: 2.75rem; height: 2.75rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle__bar {
  display: block;
  width: 1.625rem; height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(0.4375rem) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-0.4375rem) rotate(-45deg); }

/* Menú (móvil: desplegable con colapso por max-height) */
.nav-menu {
  position: absolute;
  top: var(--header-h);
  left: 0;
  width: 100%;
  background: #ffffff;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.nav-menu.is-open { max-height: 32rem; box-shadow: var(--shadow-md); }
.nav-menu li { border-top: 1px solid var(--color-border); }

.nav-link {
  display: block;
  padding: 0.875rem var(--space-sm);
  color: var(--color-text);
  font-weight: 600;
  position: relative;
}
.nav-link:hover { color: var(--color-accent); text-decoration: none; }
.nav-link.is-active { color: var(--color-primary); }
.nav-link.is-active::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--color-cta);
}

/* ------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  background: linear-gradient(
    135deg,
    #5DB8D9 100%,
    #3B97C6 60%,
    #2B7FA8 100%
  );
  color: #eaf3fb;
  padding-block: var(--space-2xl) var(--space-xl);
  overflow: hidden;
}
/* Capa de ondas de agua (3–5% de opacidad) */
.hero__waves {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.04;
  pointer-events: none;
}
.hero__waves svg { width: 100%; height: 100%; }

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space-sm);
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: #1e0909;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 7vw, 3.0rem);
  color: #fff;
  margin-top: var(--space-xs);
}
.hero__lead {
  margin-top: var(--space-sm);
  font-size: 1.125rem;
  color: #eef7ff;
  max-width: 34rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
/* Datos clave: tres bloques rótulo + valor, distribuidos horizontalmente */
.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.625rem;
  margin: 0;
}
.hero__fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.875rem 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.hero__fact dt {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-primary);
}
.hero__fact dd {
  margin: 0.375rem 0 0;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--color-primary);
}

/* Botones del hero: contraste sobre el degradado azul */
.hero .btn--cta {
  color: #04261d;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.18);
}
.hero .btn--cta:hover { box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.25); }

.hero .btn--ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.85);
  background: transparent;
}
.hero .btn--ghost:hover {
  background: #ffffff;
  color: var(--color-primary);
  border-color: #ffffff;
}

/* Arte / firma visual: fotografía del tanque elevado */
.hero__art {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}
.hero__photo {
  width: min(26rem, 85vw);
  height: auto;
  border-radius: var(--radius);
  border: 4px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  animation: floatPhoto 6s ease-in-out infinite;
}
.hero__caption {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}

@keyframes floatPhoto {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-0.5rem); }
}

/* indicador de scroll */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  width: 1.5rem; height: 2.5rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
}
.hero__scroll span {
  position: absolute;
  left: 50%; top: 0.5rem;
  width: 0.3125rem; height: 0.3125rem;
  margin-left: -0.15625rem;
  background: var(--color-cta);
  border-radius: 50%;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(0.9rem); opacity: 0; }
  100% { opacity: 0; }
}

/* ------------------------------------------------------------
   7. TARJETAS / CARDS
   ------------------------------------------------------------ */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}
.section--alt .card { background: var(--color-bg); }
.card--wide { margin-top: var(--space-md); }
.card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

/* ------------------------------------------------------------
   9. ORGANIGRAMA
   ------------------------------------------------------------ */
.orgchart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
  position: relative;
}
.org-level {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  width: 100%;
}
.org-node {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  min-width: 11rem;
}
.section .org-node { background: #fff; }
.org-node--top { border-top-color: var(--color-primary); font-weight: 700; color: var(--color-primary); }
.org-node--main { text-align: left; border-top-color: var(--color-cta); }
.org-node--aside { border-top-color: var(--color-accent); align-self: flex-start; }
.org-node--main strong { color: var(--color-primary); display: block; margin-bottom: 0.5rem; }

.org-node--area { text-align: left; }
.org-node--area > strong {
  display: block;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.org-roles { display: grid; gap: 0.375rem; }
.org-roles li { font-size: 0.9375rem; }
.org-roles span,
.org-node--aside span,
.org-role {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-cta);
  font-weight: 600;
}

/* ------------------------------------------------------------
   9b. FUNCIONES DEL CARGO (ficha emergente)
   ------------------------------------------------------------ */

/* Los cargos solo se anuncian como interactivos cuando el script logró
   activarlos; sin JavaScript se leen como texto corriente. */
.org-role {
  font-family: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-align: inherit;
  cursor: default;
}
.org-role--node {
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
  font-weight: inherit;
}
.org-node--top .org-role--node,
.org-node--main strong .org-role--node { color: var(--color-primary); }

.orgchart.has-tips .org-role {
  cursor: pointer;
  border-bottom: 1px dotted currentColor;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.orgchart.has-tips .org-role::after {
  content: 'ⓘ';
  font-size: 0.875em;
  margin-left: 0.3em;
  opacity: 0.65;
  border-bottom: 0;
}
.orgchart.has-tips .org-role:hover,
.orgchart.has-tips .org-role[aria-expanded='true'] {
  color: var(--color-accent);
}
.orgchart.has-tips .org-role[aria-expanded='true'] { border-bottom-style: solid; }

.orgchart__hint { display: none; }
.orgchart-ready .orgchart__hint {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.875rem;
}

/* --- La ficha --- */
.org-tip {
  position: absolute;
  z-index: 90;
  top: 0;
  left: 0;
  width: min(26rem, calc(100vw - 1.5rem));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  /* Se muestra solo cuando el script ya calculó su posición, para que no
     aparezca un instante en la esquina superior izquierda. */
  opacity: 0;
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
  transform: translateY(-0.25rem);
}
.org-tip.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .org-tip { transition: none; transform: none; }
}

.org-tip__body {
  max-height: min(24rem, 60vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-sm) var(--space-sm) var(--space-sm);
}
.org-tip__eyebrow {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-cta);
  font-weight: 700;
}
.org-tip__title {
  font-size: 1.0625rem;
  color: var(--color-primary);
  margin: 0.125rem 0 0.5rem;
  padding-right: 1.5rem; /* deja sitio al botón de cierre */
}
.org-tip__body > div > p { font-size: 0.875rem; color: var(--color-muted); }

.org-fn__lista,
.org-fn__sublista {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.625rem;
  padding-left: 1.35rem;
  font-size: 0.875rem;
  line-height: 1.6;
}
.org-fn__lista { list-style: decimal; }
.org-fn__lista--letras { list-style: lower-alpha; }
.org-fn__sublista { list-style: disc; margin-top: 0.5rem; gap: 0.25rem; }
.org-fn__lista::marker { color: var(--color-accent); }
.org-fn__nota {
  margin-top: 0.75rem;
  padding-top: 0.625rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
}
.org-fn__nota strong { color: var(--color-primary); }

.org-tip__close {
  position: absolute;
  top: 0.375rem;
  right: 0.5rem;
  z-index: 1;
  background: none;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.org-tip__close:hover { color: var(--color-primary); background: var(--color-bg); }

.org-tip__arrow {
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
  transform: rotate(45deg);
}
.org-tip[data-lado='abajo'] .org-tip__arrow { top: -0.4375rem; }
.org-tip[data-lado='arriba'] .org-tip__arrow {
  bottom: -0.4375rem;
  transform: rotate(225deg);
}

/* ------------------------------------------------------------
   10. PROCESO (Nuestro sistema)
   ------------------------------------------------------------ */
.process {
  display: grid;
  gap: var(--space-md);
  counter-reset: step;
}
.process__step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  padding-top: var(--space-lg);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.process__num {
  position: absolute;
  top: calc(-1 * var(--space-sm));
  left: var(--space-md);
  width: 2.5rem; height: 2.5rem;
  display: grid;
  place-items: center;
  background: var(--color-cta);
  color: #06281f;
  font-weight: 800;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.process__step h3 { color: var(--color-primary); margin-bottom: 0.25rem; }

/* ------------------------------------------------------------
   11. ACORDEÓN
   ------------------------------------------------------------ */
.accordion { display: grid; gap: 0.75rem; }
.accordion__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.section--alt .accordion__item { background: var(--color-bg); }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 1rem var(--space-sm);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
}
.accordion__icon {
  flex: none;
  width: 1.25rem; height: 1.25rem;
  position: relative;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--color-cta);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}
.accordion__icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.accordion__icon::after  { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: translateX(-50%) scaleY(0); }
.accordion__panel {
  padding: 0 var(--space-sm) var(--space-sm);
  color: var(--color-muted);
}

/* ------------------------------------------------------------
   12. TABLA DE TARIFAS
   ------------------------------------------------------------ */
/* Dos tablas: apiladas en móvil, una frente a la otra en escritorio */
.rate-tables {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.rate-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  font-size: 0.75rem;
}
.rate-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  padding: 0.25rem 0 0.5rem;
}
.section--alt .rate-table { background: var(--color-bg); }
.rate-table th,
.rate-table td {
  padding: 0.4rem 0.45rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
/* En pantallas con espacio, tablas más holgadas y legibles */
@media (min-width: 40em) {
  .rate-table { font-size: 0.875rem; }
  .rate-table th,
  .rate-table td { padding: 0.65rem 0.85rem; }
}
.rate-table thead th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  vertical-align: bottom;
}
.rate-table tbody th { color: var(--color-primary); }
.rate-table tbody tr:nth-child(even) { background: rgba(46, 134, 193, 0.05); }

/* ------------------------------------------------------------
   13. LISTAS DE DOCUMENTOS
   ------------------------------------------------------------ */
.doc-list { display: grid; gap: 0.75rem; margin-top: var(--space-sm); }
.doc-list--grid { grid-template-columns: 1fr; }
.doc-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.875rem var(--space-sm);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.section--alt .doc-item { background: var(--color-bg); }
.doc-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.doc-item__icon { font-size: 1.5rem; flex: none; }
.doc-item__name { flex: 1; font-weight: 600; color: var(--color-primary); }
.doc-item__tag {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 0.125rem;
}
.doc-item__dl {
  flex: none;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-cta-dark);
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--color-cta);
  border-radius: var(--radius-sm);
}
.doc-item__dl:hover { background: var(--color-cta); color: #06281f; text-decoration: none; }

.filters { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-md); }
.empty-msg { margin-top: var(--space-sm); color: var(--color-muted); font-style: italic; }

/* ------------------------------------------------------------
   14. FORMULARIO PQRS
   ------------------------------------------------------------ */
.form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: var(--space-md);
}
.field { display: grid; gap: 0.375rem; }
.field--inline { gap: 0.25rem; }
.field--inline > span { font-size: 0.8125rem; font-weight: 600; color: var(--color-muted); }
.field label { font-weight: 600; font-size: 0.9375rem; color: var(--color-primary); }
.req { color: #c0392b; }

.field input,
.field textarea,
.field select,
.select {
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.75rem;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus,
.select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(46, 134, 193, 0.18);
}

/* estados de validación */
.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}
.field.is-valid input,
.field.is-valid textarea,
.field.is-valid select { border-color: var(--color-cta); }

.field__error { color: #c0392b; font-size: 0.8125rem; min-height: 1rem; }
.field__help { font-size: 0.8125rem; color: var(--color-muted); }
.field__meta { display: flex; justify-content: space-between; gap: var(--space-sm); }
.field__count { font-size: 0.8125rem; color: var(--color-muted); }

.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.5rem 0.625rem;
}
.field--check input { width: 1.125rem; height: 1.125rem; margin-top: 0.25rem; }
.field--check label { font-weight: 400; color: var(--color-text); }
.field--check .field__error { grid-column: 1 / -1; }

/* Casilla bloqueada mientras no se haya leído la política */
.field--check input:disabled { cursor: not-allowed; opacity: 0.5; }
.field--check input:disabled + label { color: var(--color-muted); cursor: not-allowed; }

/* --- Política de tratamiento de datos (lectura obligatoria) --- */
.policy { gap: 0.5rem; }
.policy__label { font-weight: 600; font-size: 0.9375rem; color: var(--color-primary); }

.policy__box {
  display: grid;
  gap: 0.625rem;
  max-height: 14rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  font-size: 0.875rem;
  line-height: 1.65;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.policy__box:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(46, 134, 193, 0.18);
}
.policy__title {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.4;
}
.policy__org { font-weight: 600; color: var(--color-primary); }
.policy__box h4 {
  font-size: 0.875rem;
  color: var(--color-primary);
  margin-top: 0.25rem;
}
.policy__box ul {
  list-style: disc;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.25rem;
}
.policy__end { display: block; height: 1px; }

.policy__hint {
  font-size: 0.8125rem;
  color: var(--color-muted);
}
.policy__hint::before { content: '↓ '; }

.policy.is-read .policy__box { border-color: var(--color-cta); }
.policy.is-read .policy__hint { color: var(--color-cta-dark); font-weight: 600; }
.policy.is-read .policy__hint::before { content: '✔ '; }

/* Realce cuando el usuario intenta marcar la casilla sin haber leído */
.policy.is-attention .policy__box {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(46, 134, 193, 0.18);
  animation: policy-pulse 0.5s var(--ease) 2;
}
@keyframes policy-pulse {
  50% { box-shadow: 0 0 0 6px rgba(46, 134, 193, 0.28); }
}
@media (prefers-reduced-motion: reduce) {
  .policy.is-attention .policy__box { animation: none; }
}

/* --- Documentos de soporte --- */
.field input[type='file'] {
  padding: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
}
.field input[type='file']::file-selector-button {
  font: inherit;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.375rem 0.75rem;
  margin-right: 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.field input[type='file']::file-selector-button:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.filelist {
  list-style: none;
  display: grid;
  gap: 0.25rem;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
}
.filelist li {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.375rem 0.625rem;
}
.filelist__name { flex: 1; overflow-wrap: anywhere; }
.filelist__size { color: var(--color-muted); flex: none; }
.filelist li.is-invalid {
  border-color: #c0392b;
  background: rgba(192, 57, 43, 0.06);
}
.filelist li.is-invalid .filelist__size { color: #c0392b; font-weight: 600; }

/* --- Estado de envío --- */
.btn.is-loading { pointer-events: none; opacity: 0.75; }

.form__success,
.form__failure {
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  font-weight: 600;
}
.form__success {
  background: rgba(26, 188, 156, 0.12);
  border: 1px solid var(--color-cta);
  color: #0c5b4a;
}
.form__failure {
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid #c0392b;
  color: #8e2b20;
}

/* ------------------------------------------------------------
   15. CONTACTO + MAPA
   ------------------------------------------------------------ */
.contact-grid { display: grid; gap: var(--space-lg); }
.contact-info { font-style: normal; }
.contact-list { display: grid; gap: var(--space-md); }
.contact-list li { display: flex; gap: 0.75rem; }
.contact-list__icon { font-size: 1.25rem; flex: none; }
.contact-list strong { color: var(--color-primary); }

.map {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.map__frame {
  display: block;
  width: 100%;
  height: 20rem;
  border: 0;
}
@media (min-width: 64em) {
  .map__frame { height: 26rem; }
}

/* ------------------------------------------------------------
   16. PIE DE PÁGINA
   ------------------------------------------------------------ */
.site-footer {
  background: var(--color-primary-dark);
  color: #cdddec;
  padding-top: var(--space-xl);
}
.footer-grid {
  display: grid;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: var(--space-xs);
}
.footer-legal { font-size: 0.875rem; margin-bottom: 0.375rem; }
.footer-title {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-cta);
  margin-bottom: var(--space-xs);
}
.footer-col p { font-size: 0.9375rem; margin-bottom: 0.5rem; }
.footer-col a { color: #dceaf6; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding-block: var(--space-md);
  font-size: 0.875rem;
}

/* ------------------------------------------------------------
   17. ANIMACIONES ON-SCROLL (reveal)
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ------------------------------------------------------------
   18. BREAKPOINTS ASCENDENTES (min-width)
   ------------------------------------------------------------ */

/* 640px — tablets pequeñas */
@media (min-width: 40em) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .doc-list--grid { grid-template-columns: 1fr 1fr; }
  .org-level--junta { flex-wrap: nowrap; align-items: flex-start; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 1024px — escritorio: navbar horizontal */
@media (min-width: 64em) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static;
    width: auto;
    background: transparent;
    display: flex;
    gap: 0.25rem;
    max-height: none;
    overflow: visible;
    box-shadow: none;
  }
  .nav-menu li { border-top: 0; }
  .nav-link { padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); }
  .nav-link.is-active::before {
    left: 0.75rem; right: 0.75rem;
    top: auto; bottom: 0.25rem;
    width: auto; height: 2px;
    border-radius: 2px;
  }

  .hero__inner {
    grid-template-columns: 1fr 1.1fr;
    grid-template-areas:
      "copy  art"
      "facts facts";
    gap: var(--space-lg) var(--space-xl);
    align-items: center;
  }
  .hero__copy { grid-area: copy; align-self: center; }
  .hero__art { grid-area: art; align-self: center; }
  .hero__facts { grid-area: facts; }
  .hero__photo { width: 100%; max-width: 36rem; }
  .rate-tables { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
  .process { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .section { padding-block: var(--space-2xl); }
}

/* 1280px — pantallas amplias */
@media (min-width: 80em) {
  .hero__title { font-size: 3.75rem; }
}

/* ------------------------------------------------------------
   19. PREFERENCIA DE MOVIMIENTO REDUCIDO
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
