﻿:root {
  /* Paleta 2026-11-27: ámbar #ffb400 (logo), verde WhatsApp #25d366 (botón principal) + azul eléctrico #2da4ff (enlaces y activos sobre oscuro).
     Volver a la versión anterior (verde): git checkout paleta-original -- site/styles.css */
  --ambar: #ffb400;
  --ambar-hover: #ffc533;
  --electrico: #2da4ff;
  --wsp: #25d366;
  --wsp-hover: #4ae083;
  --tinta: #102637;
  --muted: #40596a;
  --papel: #f3f7f9;
  --blanco: #fff;
  --borde: #d0dfe6;
  --noche: #0b1c2b;
  --claro: #d0e0e8;
  --enlace: #205b43;
  --foco: #174eb6;
  --foco-oscuro: #2da4ff;
  --contorno-oscuro: #8eabbc;
  --azul-suave: #e4f0f6;
  --azul-tinta: #245571;
  --ancho: 74rem;
  --margen: clamp(1rem, 4vw, 3rem);
  --seccion: clamp(3rem, 6vw, 6rem);
  --radio: 1.125rem;
}

/* Títulos: Barlow (SIL OFL 1.1, licencia en assets/fuentes/OFL-barlow.txt), servida desde el propio sitio.
   Volver a la fuente del sistema: git checkout antes-fuente -- site/styles.css site/index.html */
@font-face {
  font-family: "Barlow";
  src: url("assets/fuentes/barlow-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("assets/fuentes/barlow-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}

h1, h2, h3, p { margin: 0; }

h1, h2, h3 {
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6.6vw, 6.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}

h2 {
  margin-bottom: .85rem;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.012em;
}

h3 {
  font-size: clamp(1.1875rem, 1.9vw, 1.4375rem);
  font-weight: 700;
  letter-spacing: 0;
}

a {
  color: var(--enlace);
  text-underline-offset: .21em;
}

:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 4px;
}

.saltar {
  position: fixed;
  inset: .75rem auto auto var(--margen);
  z-index: 3;
  padding: .65rem 1rem;
  border-radius: .5rem;
  background: var(--blanco);
  transform: translateY(calc(-100% - 1.5rem));
}

.saltar:focus { transform: none; }

/* Sobre la cabecera oscura el azul del foco no contrasta: contorno claro. */
.saltar:focus-visible {
  outline: 3px solid var(--foco-oscuro);
  outline-offset: 2px;
}

.barra, main > section, .pie {
  padding-inline: max(var(--margen), calc((100% - var(--ancho)) / 2));
}

.barra {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  min-height: 4.5rem;
  padding-block: .75rem;
  border-bottom: 1px solid #294556;
}

.marca-enlace {
  display: block;
  min-width: 0;
  border-radius: .5rem;
}

.marca {
  display: block;
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: 2.75rem;
  object-fit: contain;
  object-position: left center;
}

/* Texto solo para lectores de pantalla. */
.oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 48rem) {
  .marca { height: 3.25rem; }
}

.btn, .btn-sec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  max-width: 100%;
  min-height: 3.375rem;
  padding: .75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .625rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out;
}

.hero .btn {
  background: var(--wsp);
  color: var(--noche);
  box-shadow: 0 .3rem 1rem #1a120038;
}

.hero .btn:hover { background: var(--wsp-hover); }

.btn-chico, .btn-sec {
  border-color: var(--contorno-oscuro);
  color: var(--blanco);
}

.btn-chico:hover, .btn-sec:hover {
  border-color: var(--foco-oscuro);
  background: #213c50;
}

.btn-chico {
  min-height: 2.75rem;
  padding: .5rem .75rem;
  color: var(--claro);
  font-size: .8125rem;
  font-weight: 650;
}

.btn-sec[hidden] { display: none; }

.barra, .hero, .pie {
  --foco: var(--foco-oscuro);
  background-color: var(--noche);
  color: var(--blanco);
}

.hero {
  /* Cabecera + hero ≈ 70 % del alto: el título y los botones quedan a la vista y asoma la sección siguiente. */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(70vh - 4.5rem);
  min-height: calc(70svh - 4.5rem);
  padding-block: clamp(2.75rem, 7vw, 6rem);
  background:
    linear-gradient(180deg, #0b1c2b55, #0b1c2bee 69%, var(--noche)),
    url("assets/hero-circuito.svg") right top / auto 80% no-repeat,
    radial-gradient(ellipse at 96% 0%, #1e4258, var(--noche) 74%);
}

.hero h1 {
  max-width: 13ch;
  margin-bottom: clamp(1rem, 2.5vw, 1.55rem);
}

.sub {
  max-width: 29rem;
  color: var(--claro);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  text-wrap: pretty;
}

.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: clamp(1.45rem, 3vw, 2.25rem);
}

.acciones .btn { flex: 1 0 100%; }

main > section:not(.hero) { padding-block: var(--seccion); }

main > section:not(.hero) > h2, #nosotros h2 {
  margin-bottom: clamp(1.35rem, 3vw, 2.4rem);
}

.tarjetas, .galeria {
  display: grid;
  gap: clamp(.7rem, 1.7vw, 1.25rem);
}

.tarjetas, .contacto-datos, .redes {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tarjetas li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: .4rem .9rem;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--blanco);
  box-shadow: 0 .35rem 1rem #10263709;
}

.tarjetas h3 { align-self: center; }

.tarjetas p {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.5;
  text-wrap: pretty;
}

#trabajos {
  border-block: 1px solid var(--borde);
  background: var(--blanco);
}

#trabajos > p, #contacto > .intro { max-width: 50ch; color: var(--muted); }

.galeria {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  margin-top: 1.5rem;
}

.galeria figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--papel);
}

.galeria img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.galeria figcaption {
  padding: .75rem 1rem;
  color: var(--muted);
  font-size: .9375rem;
}

/* Quiénes somos */
#nosotros { background: var(--blanco); border-block: 1px solid var(--borde); }

.nosotros-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

#nosotros p {
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  text-wrap: pretty;
}

.nosotros-logo {
  display: block;
  width: clamp(7.5rem, 22vw, 12rem);
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 .75rem 2rem #0b1c2b33;
}

/* Contacto: dos tarjetas (WhatsApp y teléfono | zonas) */
#contacto {
  background: linear-gradient(125deg, var(--papel), #e5f0f5);
}

.contacto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin-top: 1.5rem;
}

.tarjeta-contacto {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  justify-items: start;
  gap: .75rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid #c4d7e1;
  border-radius: var(--radio);
  background: var(--blanco);
  box-shadow: 0 .5rem 1.25rem #1026370d;
}

.tarjeta-contacto > p { color: var(--muted); }

.tarjeta-contacto > .zona-fuera {
  margin-top: .35rem;
  color: var(--tinta);
  font-weight: 650;
}

.tarjeta-contacto .btn { margin-top: .25rem; }

.zonas {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .25rem 0 0;
  padding: 0;
  list-style: none;
}

.zonas li {
  display: flex;
  align-items: center;
  gap: .35rem;
  min-height: 2.625rem;
  padding: .35rem .7rem;
  border: 1px solid #c4d7e1;
  border-radius: 2rem;
  background: var(--blanco);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.25;
}

.zonas .i-ubicacion { color: var(--azul-tinta); }

.contacto-datos, .redes {
  display: grid;
  gap: .15rem;
  margin: .5rem 0 0;
  padding: 0;
  list-style: none;
}

.contacto-datos li {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
}

.contacto-datos .icono { color: var(--azul-tinta); }

.contacto-datos a { font-weight: 700; }

.redes { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .25rem; }

.redes a, .volver {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding-inline: .85rem;
  border-radius: .65rem;
  text-decoration: none;
}

.redes a {
  border: 1px solid #607991;
  font-weight: 700;
}

.pie .redes a { color: var(--blanco); }

.redes a:hover {
  border-color: var(--electrico);
  background: #213951;
}

/* Todos los botones de WhatsApp: verde WhatsApp con texto azul noche (8.7:1). */
.btn[data-wa] {
  border-color: var(--wsp);
  background: var(--wsp);
  color: var(--noche);
}

.btn[data-wa]:hover {
  border-color: var(--wsp-hover);
  background: var(--wsp-hover);
}

@media (max-width: 29.99rem) {
  .tarjeta-contacto .btn { justify-self: stretch; }
  /* Móvil: en la cabecera solo el icono de WhatsApp. El texto sigue en el HTML (nombre accesible);
     los botones grandes están en el hero y en Contacto. */
  .barra .btn-chico {
    width: 2.75rem;
    padding: 0;
    justify-content: center;
    gap: 0;
    font-size: 0;
  }
  .barra .btn-chico .icono { width: 1.25rem; height: 1.25rem; }
}

.pie {
  display: grid;
  gap: 1.75rem 2rem;
  padding-top: clamp(2.4rem, 5vw, 3.5rem);
  border-top: 1px solid #34495e;
  background-color: #0b1725;
}

.pie-marca {
  display: grid;
  gap: .9rem;
  color: var(--claro);
  font-size: .9375rem;
}

.pie-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 2.75rem;
  object-fit: contain;
  object-position: left center;
}

.pie-marca p { max-width: 36ch; }

.pie-redes h2 {
  margin-bottom: .75rem;
  color: var(--blanco);
  font-size: 1rem;
  letter-spacing: 0;
}

.pie-redes .redes { margin-top: 0; }

.pie a { color: var(--electrico); }
.pie a:hover { color: var(--blanco); }

.volver {
  border: 1px solid #607991;
  font-size: .875rem;
}

.volver:hover {
  background: #213951;
  text-decoration: underline;
}

.pie-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem 1.5rem;
  padding-block: 1rem;
  border-top: 1px solid #34495e;
}

.chico {
  color: var(--claro);
  font-size: .875rem;
}

@media (max-width: 23.99rem) {
  .barra { gap: .5rem; }
  .marca { height: 2.25rem; }

}

@media (min-width: 30rem) {
  .acciones .btn { flex: 0 1 auto; }
}

@media (min-width: 38rem) {
  .tarjetas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
  }

  .tarjetas li {
    grid-template-columns: minmax(0, 1fr);
    gap: .65rem;
  }

  .tarjetas .icono-tarjeta { margin-bottom: .35rem; }
  .tarjetas p { grid-column: auto; }
}

@media (min-width: 48rem) {
  html { scroll-padding-top: 5.5rem; }

  .hero {
    background:
      linear-gradient(90deg, var(--noche) 20%, #0b1c2bf0 37%, #0b1c2b20 72%, #0b1c2b00),
      url("assets/hero-circuito.svg") right center / auto max(100%, 34rem) no-repeat,
      radial-gradient(ellipse at 92% 38%, #20475d, var(--noche) 72%);
  }

  .contacto-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pie { grid-template-columns: minmax(0, 1fr) auto; }
  .pie-base { grid-column: 1 / -1; }
  .nosotros-grid { grid-template-columns: minmax(0, 1fr) auto; }

  .barra {
    position: sticky;
    top: 0;
  }
}

@media (min-width: 58rem) {
  .hero h1 { max-width: min(13ch, 61%); }
  .hero .acciones { max-width: 61%; }

  .tarjetas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
  .volver { margin-left: auto; }
}

/* ---- Iconos SVG (máscaras: toman el color del texto) ---- */
.icono {
  display: inline-block;
  flex: none;
  width: 1.2em;
  height: 1.2em;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}

.icono-tarjeta {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .75rem;
  background: var(--azul-suave);
  color: var(--azul-tinta);
  -webkit-mask: none;
  mask: none;
}

.icono-tarjeta::before {
  width: 1.5rem;
  height: 1.5rem;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
  content: "";
}

/* Íconos embebidos (data:) para que se vean también abriendo index.html como archivo. Fuente editable:
   site/assets/icons/*.svg (si cambia uno, volver a embeberlo aquí). La CSP permite img-src data:.
   Íconos de Tabler Icons 3.53.0 (tabler.io/icons, licencia MIT en site/assets/icons/LICENSE-tabler.txt). */
.i-wsp { --i: url("data:image/svg+xml,%3Csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M3 21l1.65 -3.8a9 9 0 1 1 3.4 2.9l-5.05 .9'/%3E%3Cpath d='M9 10a.5 .5 0 0 0 1 0v-1a.5 .5 0 0 0 -1 0v1a5 5 0 0 0 5 5h1a.5 .5 0 0 0 0 -1h-1a.5 .5 0 0 0 0 1'/%3E%3C/svg%3E"); }
.i-tel { --i: url("data:image/svg+xml,%3Csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M5 4h4l2 5l-2.5 1.5a11 11 0 0 0 5 5l1.5 -2.5l5 2v4a2 2 0 0 1 -2 2a16 16 0 0 1 -15 -15a2 2 0 0 1 2 -2'/%3E%3C/svg%3E"); }
.i-ig { --i: url("data:image/svg+xml,%3Csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10'/%3E%3Cpath d='M8.5 12a3.5 3.5 0 1 0 7 0a3.5 3.5 0 0 0 -7 0'/%3E%3Cpath d='M17 7v.01'/%3E%3C/svg%3E"); }
.i-fb { --i: url("data:image/svg+xml,%3Csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M7 10v4h3v7h4v-7h3l1 -4h-4v-2a1 1 0 0 1 1 -1h3v-4h-3a5 5 0 0 0 -5 5v2h-3'/%3E%3C/svg%3E"); }
.i-tt { --i: url("data:image/svg+xml,%3Csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M21 7.917v4.034a9.948 9.948 0 0 1 -5 -1.951v4.5a6.5 6.5 0 1 1 -8 -6.326v4.326a2.5 2.5 0 1 0 4 2v-11.5h4.083a6.005 6.005 0 0 0 4.917 4.917'/%3E%3C/svg%3E"); }
.i-ubicacion { --i: url("data:image/svg+xml,%3Csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0'/%3E%3Cpath d='M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0'/%3E%3C/svg%3E"); }
.i-arriba { --i: url("data:image/svg+xml,%3Csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M12 5l0 14'/%3E%3Cpath d='M18 11l-6 -6'/%3E%3Cpath d='M6 11l6 -6'/%3E%3C/svg%3E"); }
.i-reloj { --i: url("data:image/svg+xml,%3Csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0'/%3E%3Cpath d='M12 7v5l3 3'/%3E%3C/svg%3E"); }
.i-casa { --i: url("data:image/svg+xml,%3Csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M19 10l-7 -7l-9 9h2v7a2 2 0 0 0 2 2h7.5'/%3E%3Cpath d='M9 21v-6a2 2 0 0 1 2 -2h2c.661 0 1.248 .32 1.612 .815'/%3E%3Cpath d='M19 14l-2 4h4l-2 4'/%3E%3C/svg%3E"); }
.i-comercio { --i: url("data:image/svg+xml,%3Csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M3 21l18 0'/%3E%3Cpath d='M3 7v1a3 3 0 0 0 6 0v-1m0 1a3 3 0 0 0 6 0v-1m0 1a3 3 0 0 0 6 0v-1h-18l2 -4h14l2 4'/%3E%3Cpath d='M5 21l0 -10.15'/%3E%3Cpath d='M19 21l0 -10.15'/%3E%3Cpath d='M9 21v-4a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v4'/%3E%3C/svg%3E"); }
.i-falla { --i: url("data:image/svg+xml,%3Csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M20 16l-4 4'/%3E%3Cpath d='M7 12l5 5l-1.5 1.5a3.536 3.536 0 1 1 -5 -5l1.5 -1.5'/%3E%3Cpath d='M17 12l-5 -5l1.5 -1.5a3.536 3.536 0 1 1 5 5l-1.5 1.5'/%3E%3Cpath d='M3 21l2.5 -2.5'/%3E%3Cpath d='M18.5 5.5l2.5 -2.5'/%3E%3Cpath d='M10 11l-2 2'/%3E%3Cpath d='M13 14l-2 2'/%3E%3Cpath d='M16 16l4 4'/%3E%3C/svg%3E"); }
.i-mantenimiento { --i: url("data:image/svg+xml,%3Csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M7 10h3v-3l-3.5 -3.5a6 6 0 0 1 8 8l6 6a2 2 0 0 1 -3 3l-6 -6a6 6 0 0 1 -8 -8l3.5 3.5'/%3E%3C/svg%3E"); }
.i-luminaria { --i: url("data:image/svg+xml,%3Csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M3 12h1m8 -9v1m8 8h1m-15.4 -6.4l.7 .7m12.1 -.7l-.7 .7'/%3E%3Cpath d='M9 16a5 5 0 1 1 6 0a3.5 3.5 0 0 0 -1 3a2 2 0 0 1 -4 0a3.5 3.5 0 0 0 -1 -3'/%3E%3Cpath d='M9.7 17l4.6 0'/%3E%3C/svg%3E"); }
.i-tablero { --i: url("data:image/svg+xml,%3Csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M3 7a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-2'/%3E%3Cpath d='M15 20h-9a3 3 0 0 1 -3 -3v-2a3 3 0 0 1 3 -3h12'/%3E%3Cpath d='M7 8v.01'/%3E%3Cpath d='M7 16v.01'/%3E%3Cpath d='M20 15l-2 3h3l-2 3'/%3E%3C/svg%3E"); }

@media (min-width: 38rem) {
  .icono-tarjeta { grid-row: auto; }
}

@media (forced-colors: active) {
  :is(.btn, .btn-sec, .redes a, .volver) { border-color: ButtonText; }
  :focus-visible, .saltar:focus-visible { outline-color: Highlight; }
}

/* Entrada y salida escalonadas por app.js. */
.reveal {
  --duracion-reveal: 260ms;
  --retraso-reveal: 0ms;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--duracion-reveal) ease-out var(--retraso-reveal),
    transform var(--duracion-reveal) ease-out var(--retraso-reveal);
}

.reveal.is-visible {
  --retraso-reveal: calc(var(--i, 0) * 70ms);
  opacity: 1;
  transform: translateY(0);
}

/* El foco de teclado muestra el elemento de inmediato, incluso fuera del área observada. */
.reveal:focus-within {
  --duracion-reveal: 0ms;
  --retraso-reveal: 0ms;
  opacity: 1;
  transform: translateY(0);
}

/* translate compone la elevación con el transform de .reveal. */
.tarjetas li {
  position: relative;
  translate: var(--elevacion-tarjeta, none);
  transition: translate 220ms ease-out;
}

.tarjetas li.reveal {
  transition-property: opacity, transform, translate;
  transition-duration: var(--duracion-reveal), var(--duracion-reveal), 220ms;
  transition-delay: var(--retraso-reveal), var(--retraso-reveal), 0ms;
}

/* El borde y la sombra del estado activo aparecen mediante opacidad. */
.tarjetas li::after {
  position: absolute;
  inset: -1px;
  border: 1px solid #8298ae;
  border-radius: inherit;
  box-shadow: 0 .55rem 1.2rem #11243a24;
  opacity: var(--tarjeta-activa, 0);
  pointer-events: none;
  transition: opacity 220ms ease-out;
  content: "";
}

.tarjetas .icono-tarjeta {
  transform: var(--movimiento-icono, none);
  transition: transform 220ms ease-out;
}

.tarjetas li:focus-within {
  --tarjeta-activa: 1;
  --elevacion-tarjeta: 0 -4px;
  --movimiento-icono: translateY(-2px);
}

@media (hover: hover) {
  .tarjetas li:hover {
    --tarjeta-activa: 1;
    --elevacion-tarjeta: 0 -4px;
    --movimiento-icono: translateY(-2px);
  }
}

.hero > :is(h1, .sub, .acciones) {
  animation: entrada-hero 320ms ease-out;
}

@keyframes entrada-hero {
  from { opacity: .75; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal, .reveal.is-visible, .reveal:focus-within {
    opacity: 1;
    transform: none;
  }

  .tarjetas li { translate: none; }
  .tarjetas .icono-tarjeta { transform: none; }
}

/* Página 404 */
.error-404 {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1rem;
  min-height: 70vh;
  padding: var(--seccion) max(var(--margen), calc((100% - var(--ancho)) / 2));
}

.error-404 .sub { color: var(--muted); }

.error-404 .btn {
  margin-top: .5rem;
  background: var(--noche);
  color: var(--blanco);
}

.error-404 .btn:hover { background: var(--azul-tinta); }
