/* Grupo Albaher · Identidad web 2027 · tokens de diseño
   Fuente única para el manual web y para el sitio albahercdmx.com.
   Colores oficiales tomados del Manual de Identidad Corporativa V1 (abril 2023). */

/* Albaher Display = Norwester (SIL OFL 1.1) + Á É Í Ó Ú Ü Ñ ¿ ¡ · ″. Ver scripts/fuente_albaher_display.py */
@font-face { font-family: "Albaher Display"; src: url("fuentes/albaher-display-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fuentes/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fuentes/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fuentes/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fuentes/barlow-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fuentes/barlow-condensed-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fuentes/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* Oficiales 2023 */
  --marino: #081534;        /* Pantone 296 C (88 %) */
  --azul: #007cba;          /* Pantone 7461 C */
  --gris-acero: #bfbfbf;    /* Pantone Cool Gray 3 U (98 %) */
  --negro: #000000;         /* Pantone 419 C · solo impresión a una tinta */

  /* Extensión digital 2027 */
  --marino-2: #0f2550;      /* superficies sobre marino */
  --marino-3: #1a3466;      /* bordes y estados sobre marino */
  --azul-profundo: #006a9f; /* enlaces y hover sobre blanco */
  --azul-cielo: #4fb0e6;    /* acentos y texto sobre marino */
  --papel: #f3f5f8;         /* fondo claro alterno */
  --linea: #e1e6ec;         /* divisiones sobre claro */
  --texto: #081534;
  --texto-2: #5a6475;       /* secundario sobre claro */
  --texto-inv-2: #a9b4c4;   /* secundario sobre marino */
  --blanco: #ffffff;
  --whatsapp: #25d366;      /* solo en el botón flotante de WhatsApp */

  /* Tipografía */
  --f-display: "Albaher Display", "Barlow Condensed", Impact, sans-serif;
  --f-texto: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-tecnica: "Barlow Condensed", "Barlow", system-ui, sans-serif;

  --t-display: clamp(3.5rem, 11vw, 10.5rem);  /* 56 → 168 px */
  --t-h1: clamp(2.75rem, 7vw, 6rem);          /* 44 → 96 px */
  --t-h2: clamp(2rem, 4.5vw, 3.75rem);        /* 32 → 60 px */
  --t-h3: clamp(1.375rem, 2vw, 1.75rem);      /* 22 → 28 px */
  --t-cuerpo: 1.0625rem;                      /* 17 px */
  --t-chico: .9375rem;                        /* 15 px */
  --t-etiqueta: .8125rem;                     /* 13 px */

  /* Espaciado base 8 */
  --e-1: 4px; --e-2: 8px; --e-3: 16px; --e-4: 24px; --e-5: 32px;
  --e-6: 48px; --e-7: 64px; --e-8: 96px; --e-9: 128px;

  /* Forma */
  --radio-1: 6px;   /* campos y chips */
  --radio-2: 14px;  /* tarjetas */
  --radio-3: 999px; /* botones cápsula */
  --ancho-max: 1280px;
  --sombra: 0 18px 40px -24px rgba(8, 21, 52, .45);
}

/* Transiciones entre páginas del sitio (Chrome, Edge y Safari 18.2+; en otros navegadores la navegación es normal).
   Los elementos con el mismo view-transition-name en ambas páginas viajan de su lugar al nuevo sin corte. */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .7s; animation-timing-function: cubic-bezier(.22, .8, .2, 1); }
::view-transition-old(root) { animation: .35s cubic-bezier(.4, 0, 1, 1) both vt-sale; }
::view-transition-new(root) { animation: .55s cubic-bezier(0, 0, .2, 1) .12s both vt-entra; }
@keyframes vt-sale { to { opacity: 0; } }
@keyframes vt-entra { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
