/* ============================================================
   QUINTUN — hoja de estilo
   Colores extraídos del logo vectorial original (2013)
   ============================================================ */

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('fonts/jost-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+2020-20AB;
}

:root {
  --azul: #00599A;          /* fondo de botones, isotipo */
  --azul-txt: #00599A;      /* azul para texto y filetes */
  --azul-osc: #003f6e;
  --azul-claro: #0a7ac9;
  --gris: #414042;
  --gris-medio: #6d6d70;
  --gris-claro: #e6e7e8;
  --fondo: #ffffff;
  --fondo-alt: #f7f8f9;
  --borde: #e2e4e6;
  --texto: #2c2b2d;
  --texto-tenue: #6d6d70;
  --sans: 'Jost', 'Century Gothic', 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ancho: 1120px;
  --radio: 3px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #16181a;
    --fondo-alt: #1d2023;
    --borde: #2e3236;
    --texto: #e8eaec;
    --texto-tenue: #9aa0a6;
    --gris: #e8eaec;
    --azul-txt: #6ab8ee;   /* aclarado para contraste AA sobre fondo oscuro */
    --azul-claro: #8fccf5;
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--texto);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 500; line-height: 1.2; margin: 0 0 .6em; color: var(--gris); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 400; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.15rem; font-weight: 500; }
p { margin: 0 0 1.1em; }
a { color: var(--azul-txt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--azul-claro); }
img, svg { max-width: 100%; height: auto; }

.contenedor { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: 24px; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--fondo) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--borde);
}
.cabecera .contenedor { display: flex; align-items: center; gap: 32px; min-height: 72px; }

.marca { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.marca svg, .marca img { width: 38px; height: 38px; display: block; }
.marca-txt { display: flex; flex-direction: column; line-height: 1; }
.marca-nombre { font-size: 1.32rem; font-weight: 500; color: var(--gris); letter-spacing: .015em; }
.marca-bajada { font-size: .625rem; font-weight: 400; color: var(--azul-txt); letter-spacing: .17em; text-transform: uppercase; margin-top: 3px; }

.nav { margin-left: auto; display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--texto-tenue); text-decoration: none; font-size: .93rem; letter-spacing: .01em; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--azul-txt); }
.nav a[aria-current="page"] { font-weight: 500; }

/* ---------- Portada ---------- */
.portada { padding: clamp(64px, 11vw, 128px) 0 clamp(56px, 9vw, 104px); position: relative; overflow: hidden; }
.portada::after {
  content: ''; position: absolute; right: -160px; top: 50%; transform: translateY(-50%);
  width: 620px; height: 620px; pointer-events: none; opacity: .045;
  background: url('isotipo.svg') no-repeat center / contain;
}
@media (prefers-color-scheme: dark) { .portada::after { opacity: .07; } }

.sello {
  display: inline-block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--azul-txt); border: 1px solid color-mix(in srgb, var(--azul-txt) 35%, transparent);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 28px;
}
.portada h1 { max-width: 17ch; margin-bottom: .35em; }
.entradilla { font-size: clamp(1.08rem, 2.1vw, 1.32rem); color: var(--texto-tenue); max-width: 56ch; font-weight: 300; line-height: 1.55; }

.acciones { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.boton {
  display: inline-block; padding: 13px 28px; border-radius: var(--radio);
  background: var(--azul); color: #fff; text-decoration: none; font-size: .95rem;
  font-weight: 500; letter-spacing: .02em; transition: background .15s ease;
}
.boton:hover { background: var(--azul-osc); color: #fff; }
.boton.fantasma { background: transparent; color: var(--azul-txt); border: 1px solid var(--borde); }
.boton.fantasma:hover { border-color: var(--azul); background: transparent; }

/* ---------- Secciones ---------- */
.seccion { padding: clamp(56px, 8vw, 96px) 0; }
.seccion.alt { background: var(--fondo-alt); border-block: 1px solid var(--borde); }
.rotulo { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--azul-txt); margin-bottom: 14px; font-weight: 500; }
.seccion > .contenedor > h2 { max-width: 22ch; }
.intro-seccion { color: var(--texto-tenue); max-width: 62ch; font-size: 1.05rem; }

.rejilla { display: grid; gap: 28px; margin-top: 48px; }
.rejilla.dos { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.rejilla.tres { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.tarjeta { background: var(--fondo); border: 1px solid var(--borde); border-radius: var(--radio); padding: 30px 28px; }
.seccion.alt .tarjeta { background: var(--fondo); }
.tarjeta h3 { margin-bottom: .5em; }
.tarjeta p:last-child { margin-bottom: 0; }
.tarjeta p { color: var(--texto-tenue); font-size: .95rem; }

/* Tarjeta de filial */
.filial { border-left: 3px solid var(--azul); }
.filial .estado { display: inline-block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; padding: 3px 10px; border-radius: 100px; margin-bottom: 14px; font-weight: 500; }
.estado.activa { background: color-mix(in srgb, var(--azul) 12%, transparent); color: var(--azul-txt); }
.estado.historica { background: color-mix(in srgb, var(--gris-medio) 14%, transparent); color: var(--texto-tenue); }
.filial.hist { border-left-color: var(--borde); }

/* Capacidades */
.lista-limpia { list-style: none; padding: 0; margin: 0; }
.lista-limpia li { padding: 10px 0 10px 26px; position: relative; color: var(--texto-tenue); font-size: .95rem; border-bottom: 1px solid var(--borde); }
.lista-limpia li:last-child { border-bottom: 0; }
.lista-limpia li::before { content: ''; position: absolute; left: 4px; top: 20px; width: 7px; height: 1px; background: var(--azul-txt); }

/* Cronología */
.hitos { list-style: none; padding: 0; margin: 48px 0 0; border-left: 1px solid var(--borde); }
.hitos li { position: relative; padding: 0 0 34px 32px; }
.hitos li::before { content: ''; position: absolute; left: -4.5px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--azul); }
.hitos .anio { font-size: .78rem; letter-spacing: .14em; color: var(--azul-txt); font-weight: 500; display: block; margin-bottom: 4px; }
.hitos h3 { margin-bottom: .3em; }
.hitos p { color: var(--texto-tenue); font-size: .95rem; margin: 0; max-width: 60ch; }

/* Datos de contacto */
.datos { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.datos dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--azul-txt); margin-bottom: 7px; }
.datos dd { margin: 0; font-size: 1.02rem; color: var(--texto); }

/* Cita */
.cita { border-left: 3px solid var(--azul); padding: 4px 0 4px 26px; margin: 40px 0; font-size: 1.18rem; font-weight: 300; color: var(--gris); max-width: 54ch; line-height: 1.5; }

/* ---------- Pie ---------- */
.pie { border-top: 1px solid var(--borde); padding: 52px 0 40px; background: var(--fondo-alt); font-size: .9rem; }
.pie-rejilla { display: grid; gap: 36px; grid-template-columns: 1.4fr 1fr 1fr; }
.pie h4 { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--azul-txt); margin-bottom: 14px; font-weight: 500; }
.pie a { color: var(--texto-tenue); text-decoration: none; display: block; padding: 4px 0; }
.pie a:hover { color: var(--azul-txt); }
.pie p { color: var(--texto-tenue); margin-bottom: .6em; }
.pie-legal { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--borde); color: var(--texto-tenue); font-size: .84rem; display: flex; flex-wrap: wrap; gap: 8px 22px; }

@media (max-width: 760px) {
  .cabecera .contenedor { min-height: 64px; gap: 16px; }
  .nav { gap: 18px; }
  .nav a { font-size: .87rem; }
  .marca-nombre { font-size: 1.15rem; }
  .pie-rejilla { grid-template-columns: 1fr; gap: 28px; }
  .portada::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
