/* ============================================================
   DRIGLER ADMINISTRACIÓN — Hoja de estilos global (v2)
   Pliant (títulos) + Inter (cuerpo) · Mobile-first · Sin deps
   Filosofía de animación: Emil Kowalski (ease-out fuerte,
   :active scale, solo transform/opacity, reduced-motion).
   ============================================================ */

/* ---------- Fuentes (self-hosted, variables) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter.woff2") format("woff2");
}
@font-face {
  font-family: "Pliant";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/pliant.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  /* Marca */
  --navy: #1b2a47;
  --navy-900: #14213a;
  --blue: #294572;
  --accent: #446bab;
  --accent-600: #3a5e98;
  --accent-200: #c9d6ec;

  /* Neutros */
  --bg: #fafbfd;
  --surface: #f3f6fb;
  --surface-2: #eaeff8;
  --line: #e1e7f1;
  --text: #243049;
  --muted: #5a6982;
  --on-dark: #eaf0fa;
  --on-dark-muted: #aebcd4;

  /* Tipografía */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Pliant", "Georgia", "Times New Roman", serif;

  /* Escala fluida (mínimos móviles reducidos: cuerpo ~12.5–13px, títulos ~22–26px) */
  --step--1: clamp(0.7rem, 0.66rem + 0.18vw, 0.84rem);
  --step-0: clamp(0.8rem, 0.74rem + 0.28vw, 1.06rem);
  --step-1: clamp(0.98rem, 0.9rem + 0.36vw, 1.28rem);
  --step-2: clamp(1.18rem, 1.02rem + 0.7vw, 1.7rem);
  --step-3: clamp(1.38rem, 1.18rem + 0.9vw, 2.3rem);
  --step-4: clamp(1.55rem, 1.25rem + 1.4vw, 2.9rem);
  --step-5: clamp(1.6rem, 1.2rem + 2vw, 3.4rem);

  /* Espaciado / forma */
  --gutter: clamp(1.1rem, 0.6rem + 2.5vw, 2rem);
  --section-y: clamp(3.25rem, 2.4rem + 4vw, 6rem);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --maxw: 1500px;
  --maxw-narrow: 760px;

  --shadow-sm: 0 1px 2px rgba(20, 33, 58, 0.06), 0 2px 8px rgba(20, 33, 58, 0.05);
  --shadow-md: 0 6px 18px rgba(20, 33, 58, 0.08), 0 2px 6px rgba(20, 33, 58, 0.05);
  --shadow-lg: 0 24px 60px rgba(20, 33, 58, 0.16);

  /* Easing (Emil Kowalski) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease: var(--ease-out);

  /* Textura: grano fino (SVG) reutilizable */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Patrón de puntos corporativo (claro) */
  --dots: radial-gradient(rgba(41, 69, 114, 0.05) 1px, transparent 1.6px);
  --dots-size: 26px 26px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--dots);
  background-size: var(--dots-size);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
iframe,
picture { max-width: 100%; }
img, svg, iframe { height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  color: var(--navy);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-600); text-decoration: none; transition: color 0.2s var(--ease-out); }
a:hover { color: var(--navy); }

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

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

::selection { background: var(--accent); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Utilidades ---------- */
.container {
  width: min(88%, var(--maxw));
  margin-inline: auto;
}
.container--narrow { max-width: var(--maxw-narrow); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2147483600;
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 1rem; color: #fff; }

.section { padding-block: var(--section-y); }
.section--alt {
  background-color: var(--surface);
  background-image: var(--dots);
  background-size: var(--dots-size);
}
.section--tint { background: var(--surface-2); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title { font-size: var(--step-3); }
.lead { font-size: var(--step-1); color: var(--muted); line-height: 1.55; }

.text-balance { text-wrap: balance; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.55rem;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.16s var(--ease-out), background-color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
}
.btn:active { transform: scale(0.97); }

.btn--primary { --btn-bg: var(--navy); --btn-fg: #fff; }
.btn--primary:hover { --btn-bg: var(--blue); color: #fff; }
.btn--accent { --btn-bg: var(--accent); --btn-fg: #fff; }
.btn--accent:hover { --btn-bg: var(--accent-600); color: #fff; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); border-color: var(--accent); }
.btn--ghost:hover { --btn-bg: var(--surface); color: var(--navy); border-color: var(--accent-600); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy); }
.btn--light:hover { --btn-bg: #fff; color: var(--blue); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn--outline-light:hover { --btn-bg: rgba(255, 255, 255, 0.1); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.icon { width: 1.1em; height: 1.1em; flex: none; }

/* ============================================================
   HEADER / NAV — fila centrada
   ============================================================ */
.topbar { height: 4px; background: linear-gradient(90deg, var(--navy), var(--accent)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: rgba(250, 251, 253, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.85rem, 1.8vw, 1.9rem);
  min-height: 76px;
  flex-wrap: wrap;
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: clamp(42px, 5vw, 52px); width: auto; }
.brand:focus-visible { outline-offset: 6px; }

.nav-menu { display: flex; align-items: center; gap: clamp(0.85rem, 1.8vw, 1.9rem); }
.nav-links { display: flex; align-items: center; gap: clamp(0.6rem, 1.4vw, 1.5rem); }

.nav-links > li { position: relative; }
.nav-links a,
.nav-drop-toggle {
  position: relative;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--step-0);
  color: var(--text);
  padding: 0.4rem 0.1rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-link-underline::after,
.nav-drop-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.25s var(--ease-out);
}
.nav-links a:hover,
.nav-links a[aria-current="page"],
.nav-drop-toggle:hover { color: var(--navy); }
.nav-links a:hover.nav-link-underline::after,
.nav-links a[aria-current="page"].nav-link-underline::after,
.nav-drop-toggle:hover::after { width: 100%; }

/* Dropdown de Servicios */
.nav-drop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-drop-toggle .chev {
  width: 14px; height: 14px;
  transition: transform 0.2s var(--ease-out);
}
.has-dropdown.is-open .nav-drop-toggle .chev { transform: rotate(180deg); }

.nav-drop {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 290px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  display: grid;
  gap: 2px;
  transform-origin: top center;
  transform: translateX(-50%) translateY(-6px) scale(0.97);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.17s var(--ease-out), transform 0.17s var(--ease-out),
    visibility 0.17s var(--ease-out);
  z-index: 50;
}
.nav-drop::before {
  /* puente invisible para no perder el hover */
  content: "";
  position: absolute;
  top: -12px; left: 0; right: 0; height: 12px;
}
.has-dropdown.is-open > .nav-drop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}
@media (hover: hover) and (pointer: fine) {
  .has-dropdown:hover > .nav-drop {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  .has-dropdown:hover .nav-drop-toggle .chev { transform: rotate(180deg); }
}
.nav-drop a {
  display: block;
  padding: 0.62rem 0.85rem;
  border-radius: 10px;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.nav-drop a:hover { background: var(--surface-2); color: var(--navy); }

/* Hamburguesa */
.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: transform 0.16s var(--ease-out);
}
.nav-toggle:active { transform: scale(0.94); }
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s var(--ease-out);
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before { position: absolute; top: -7px; }
.nav-toggle .bars::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-900), var(--blue));
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { display: block; position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(20, 33, 58, 0.94) 0%, rgba(20, 33, 58, 0.78) 45%, rgba(27, 42, 71, 0.45) 100%);
}
.hero__inner { padding-block: clamp(3.25rem, 2.4rem + 6vw, 7rem); max-width: 42rem; }
.hero h1 { color: #fff; font-size: var(--step-5); line-height: 1.06; margin-bottom: 1.1rem; }
.hero .lead { color: var(--on-dark); max-width: 34rem; }
.hero .btn-row { margin-top: 2rem; }
.hero__meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex; flex-wrap: wrap; gap: 0.55rem 2.2rem;
  color: var(--on-dark-muted);
  font-size: var(--step--1);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__meta span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ============================================================
   SPLIT (texto + imagen)
   ============================================================ */
.split { display: grid; gap: clamp(1.75rem, 1rem + 4vw, 4rem); align-items: center; }
@media (min-width: 820px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: -1; }
}
.split__media { position: relative; }
.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
/* Imagen y texto a la misma altura (sin huecos arriba/abajo) */
.split--equal { align-items: stretch; }
.split--equal .split__media { position: relative; min-height: 240px; }
.split--equal .split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; min-height: 0; }

/* ============================================================
   PROPUESTA DE VALOR (split con imagen + tarjeta navy)
   ============================================================ */
.value-band {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(68, 107, 171, 0.35), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--blue));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.4rem + 3vw, 3.25rem);
  overflow: hidden;
}
.value-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--noise); background-size: 180px 180px; opacity: 0.06;
}
.value-band h2 { color: #fff; font-size: var(--step-3); max-width: 24ch; }
.value-band p { color: var(--on-dark); max-width: 62ch; font-size: var(--step-1); }

/* ============================================================
   GRID DE SERVICIOS (preview) — 3 × 3
   ============================================================ */
.cards { display: grid; gap: clamp(1rem, 0.5rem + 1.5vw, 1.5rem); grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
  height: 100%;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-200); }
}
.card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--accent-600);
  display: grid; place-items: center;
  margin-bottom: 0.4rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--step-1); margin: 0; }
.card__tagline { color: var(--accent-600); font-weight: 600; font-size: var(--step--1); margin: 0; }
.card p { color: var(--muted); margin: 0; }
.card__link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; color: var(--navy);
}
.card__link svg { transition: transform 0.2s var(--ease-out); }
.card:hover .card__link svg { transform: translateX(4px); }

/* ============================================================
   SERVICIOS — detalle alternado (imagen + contenido)
   ============================================================ */
.service {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.service + .service { margin-top: clamp(2rem, 1.4rem + 2.5vw, 3.5rem); }
.service__media { position: relative; min-height: 240px; }
.service__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service__body { padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem); }
@media (min-width: 880px) {
  .service { grid-template-columns: 0.78fr 1.22fr; align-items: stretch; }
  .service:nth-of-type(even) { grid-template-columns: 1.22fr 0.78fr; }
  .service:nth-of-type(even) .service__media { order: 2; }
}

.service__head { display: flex; align-items: flex-start; gap: 1.1rem; margin-bottom: 1.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.service__num {
  flex: none; width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 600;
}
.service__titles h2 { font-size: var(--step-2); margin-bottom: 0.25rem; }
.service__tagline { color: var(--accent-600); font-weight: 600; }

.subservices { display: grid; gap: clamp(1rem, 0.7rem + 1vw, 1.4rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.subservice { display: flex; gap: 0.85rem; }
.subservice__mark {
  flex: none; width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--surface-2); color: var(--accent-600);
  display: grid; place-items: center; margin-top: 2px;
}
.subservice__mark svg { width: 18px; height: 18px; }
.subservice h3 { font-family: var(--font-body); font-size: var(--step-0); font-weight: 700; color: var(--navy); margin-bottom: 0.25rem; }
.subservice p { color: var(--muted); font-size: var(--step--1); line-height: 1.55; }

/* ============================================================
   NOSOTROS — misión / visión (con imagen) + valores 3+2
   ============================================================ */
.mv-grid { display: grid; gap: clamp(2rem, 1.2rem + 3.5vw, 4rem); }
@media (min-width: 820px) { .mv-grid { grid-template-columns: 1fr 1fr; } }

/* Imagen y cuadro de texto separados, con espacio entre ellos */
.mv-card { display: flex; flex-direction: column; gap: clamp(1rem, 0.6rem + 1vw, 1.5rem); }
.mv-card__media { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.mv-card__media img { width: 100%; height: 100%; object-fit: cover; }
.mv-card__body {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.5rem, 1.1rem + 2vw, 2.4rem);
  flex: 1;
}
.mv-card--bottom .mv-card__body { border-left: 0; border-right: 4px solid var(--accent); }
.mv-card h2 { font-size: var(--step-2); }
.mv-card blockquote { margin: 0; color: var(--text); font-size: var(--step-1); line-height: 1.6; }

.values-grid { display: grid; gap: clamp(1rem, 0.6rem + 1.5vw, 1.5rem); grid-template-columns: repeat(6, 1fr); }
.value-card {
  grid-column: span 2;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  height: 100%;
}
.value-card:nth-child(4) { grid-column: 2 / span 2; }
.value-card:nth-child(5) { grid-column: 4 / span 2; }
.value-card__n { font-family: var(--font-display); font-size: var(--step-3); color: var(--accent-200); line-height: 1; margin-bottom: 0.4rem; }
.value-card h3 { font-size: var(--step-1); }
.value-card p { color: var(--muted); margin: 0; }
@media (max-width: 880px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .value-card, .value-card:nth-child(4), .value-card:nth-child(5) { grid-column: auto; }
}
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(700px 400px at 0% 100%, rgba(68, 107, 171, 0.4), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--blue));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 1.6rem + 3.5vw, 4rem);
  text-align: center;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--noise); background-size: 180px 180px; opacity: 0.06;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 1rem + 4vw, 4rem); max-width: 26ch; margin-inline: auto; }
.cta-band p { color: var(--on-dark); max-width: 52ch; margin: 1rem auto 0; font-size: var(--step-1); }
.cta-band .btn-row { justify-content: center; margin-top: 2rem; }

/* ============================================================
   CONTACTO — intro centrada + 3 columnas + parallax
   ============================================================ */
.contact-intro { text-align: center; max-width: 60ch; margin: 0 auto clamp(2rem, 1.4rem + 2.5vw, 3.25rem); }
.contact-intro h2 { font-size: var(--step-3); }
.contact-intro p { color: var(--muted); font-size: var(--step-1); }

.contact-cols { display: grid; gap: clamp(1.75rem, 1rem + 3vw, 2.75rem); align-items: stretch; }
@media (min-width: 1000px) { .contact-cols { grid-template-columns: 1fr 0.85fr 1.15fr; } }

.info-list { display: grid; gap: 1.1rem; margin-top: 1.25rem; }
.info-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.info-item__icon {
  flex: none; width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--surface-2); color: var(--accent-600);
  display: grid; place-items: center;
}
.info-item__icon svg { width: 22px; height: 22px; }
.info-item dt { font-weight: 700; color: var(--navy); margin-bottom: 0.15rem; }
.info-item dd { margin: 0; color: var(--muted); }
.info-item a { color: var(--muted); }
.info-item a:hover { color: var(--accent-600); }

/* Columna de datos con el mapa debajo, llenando el alto de la fila */
.contact-info-col { display: flex; flex-direction: column; height: 100%; }
.contact-info-col .map-wrap { margin-top: 1.5rem; flex: 1; display: flex; }
.contact-info-col .map-wrap iframe { width: 100%; height: 100%; min-height: 260px; }

.tag-example {
  display: inline-block; margin-left: 0.4rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent-600); background: var(--surface-2);
  border-radius: 999px; padding: 0.1rem 0.5rem; vertical-align: middle;
}

.contact-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); min-height: 280px; }
.contact-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1000px) { .contact-photo { min-height: 320px; } }

/* Formulario */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.1rem + 2vw, 2.4rem);
  box-shadow: var(--shadow-md);
  height: 100%;
}
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; font-size: var(--step--1); }
.field .req { color: var(--accent-600); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  min-height: 48px;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6982' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem; }
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9aa6ba; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(68, 107, 171, 0.15); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #c0392b; }
.field .error { display: none; color: #c0392b; font-size: var(--step--1); margin-top: 0.35rem; }
.field.has-error .error { display: block; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c0392b; }
.form-note { color: var(--muted); font-size: 0.7rem; line-height: 1.5; margin-top: 0.85rem; text-align: center; }

.form-success {
  display: none; align-items: flex-start; gap: 0.85rem;
  background: #eef6ee; border: 1px solid #cfe6cf; color: #235c2b;
  border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1.25rem;
}
.form-success.is-visible { display: flex; }
.form-success svg { flex: none; width: 22px; height: 22px; color: #2e7d32; margin-top: 2px; }

/* Mapa */
.map-wrap { margin-top: clamp(1.75rem, 1rem + 2vw, 2.75rem); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: clamp(280px, 40vw, 420px); border: 0; display: block; }

/* Parallax */
.parallax {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(320px, 48vh, 520px);
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
}
.parallax__img { position: absolute; left: 0; right: 0; top: -12%; height: 124%; z-index: -2; will-change: transform; }
.parallax__img img { width: 100%; height: 100%; object-fit: cover; }
.parallax__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 33, 58, 0.82), rgba(20, 33, 58, 0.72)); }
.parallax h2 { color: #fff; font-size: var(--step-4); max-width: 20ch; margin-inline: auto; }
.parallax .btn-row { justify-content: center; margin-top: 1.75rem; }

/* ============================================================
   PAGE HERO (interior)
   ============================================================ */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(800px 380px at 88% -10%, rgba(68, 107, 171, 0.5), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--blue));
  color: #fff;
  padding-block: clamp(3rem, 2.4rem + 4.5vw, 6rem);
}
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, rgba(20, 33, 58, 0.94) 0%, rgba(20, 33, 58, 0.8) 50%, rgba(27, 42, 71, 0.62) 100%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--noise); background-size: 180px 180px; opacity: 0.06;
}
.page-hero h1 { color: #fff; font-size: var(--step-4); max-width: 20ch; }
.page-hero p { color: var(--on-dark); max-width: 60ch; font-size: var(--step-1); margin-top: 0.5rem; }

/* ============================================================
   FOOTER — logo grande centrado + columnas
   ============================================================ */
.site-footer {
  position: relative; isolation: isolate; overflow: hidden;
  background-color: #ffffff;
  background-image:
    radial-gradient(rgba(41, 69, 114, 0.06) 1px, transparent 1.5px),
    radial-gradient(900px 440px at 82% 0%, rgba(68, 107, 171, 0.08), transparent 62%);
  background-size: 22px 22px, 100% 100%;
  background-position: 0 0, 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding-top: clamp(3rem, 2rem + 3vw, 4.5rem);
}
.site-footer::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--noise); background-size: 200px 200px; opacity: 0.03;
}
.footer-top { text-align: center; max-width: 60ch; margin: 0 auto clamp(2.25rem, 1.5rem + 3vw, 3.5rem); }
.footer-top img { height: clamp(78px, 11vw, 108px); width: auto; margin: 0 auto 1.25rem; }
.footer-top p { color: var(--muted); font-size: var(--step-0); margin: 0 auto; }

.footer-cols {
  display: grid;
  gap: clamp(1.75rem, 1rem + 3vw, 3rem);
  grid-template-columns: 1fr;
  max-width: 980px;
  margin-inline: auto;
}
@media (min-width: 680px) { .footer-cols { grid-template-columns: 1fr 1fr 1.2fr; } }

.footer-col h3 {
  color: var(--navy); font-family: var(--font-body);
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--navy); }
.footer-contact { display: grid; gap: 0.7rem; font-size: var(--step--1); color: var(--muted); font-style: normal; }
.footer-contact a { color: var(--muted); }
.footer-contact a:hover { color: var(--navy); }
.footer-contact strong { color: var(--navy); font-weight: 600; }

.footer-bottom {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 3.5rem);
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  justify-content: space-between; align-items: center;
  font-size: var(--step--1); color: var(--muted);
}

/* Footer centrado en móvil */
@media (max-width: 680px) {
  .footer-cols { text-align: center; }
  .footer-contact { justify-items: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ============================================================
   MENÚ MÓVIL  (≤ 880px)
   ============================================================ */
@media (max-width: 880px) {
  .nav { justify-content: space-between; flex-wrap: nowrap; }
  .nav-toggle { display: inline-flex; position: relative; z-index: 1200; }

  .nav-menu {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: auto;
    height: 100vh; height: 100dvh;
    width: min(88vw, 380px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: #fff;
    padding: 5.75rem 1.5rem 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(105%);
    transition: transform 0.36s var(--ease-drawer);
    overflow-y: auto;
    z-index: 1100;
  }
  .nav-menu.is-open { transform: translateX(0); }

  .nav-links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-links > li { border-bottom: 1px solid var(--line); }
  .nav-links a,
  .nav-drop-toggle {
    width: 100%;
    padding: 0.95rem 0.25rem;
    font-size: var(--step-1);
    justify-content: space-between;
  }
  .nav-links a::after, .nav-drop-toggle::after { display: none; }
  .nav-links a:active, .nav-drop-toggle:active { transform: scale(0.98); }

  /* Stagger de entrada de los enlaces */
  .nav-menu.is-open .nav-links > li,
  .nav-menu.is-open > .btn {
    animation: navItemIn 0.4s var(--ease-out) both;
  }
  .nav-menu.is-open .nav-links > li:nth-child(1) { animation-delay: 0.06s; }
  .nav-menu.is-open .nav-links > li:nth-child(2) { animation-delay: 0.1s; }
  .nav-menu.is-open .nav-links > li:nth-child(3) { animation-delay: 0.14s; }
  .nav-menu.is-open .nav-links > li:nth-child(4) { animation-delay: 0.18s; }
  .nav-menu.is-open > .btn { animation-delay: 0.22s; }

  /* Acordeón del dropdown */
  .nav-drop {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0 0 0.5rem;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease-out);
    background: transparent;
  }
  .nav-drop::before { display: none; }
  .has-dropdown.is-open > .nav-drop { max-height: 460px; transform: none; }
  .nav-drop a { padding: 0.7rem 0.85rem; background: var(--surface); border-radius: 10px; margin-top: 4px; }

  .nav-menu .btn { margin-top: 1.5rem; width: 100%; }

  .nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(20, 33, 58, 0.55);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--ease-out), visibility 0.3s var(--ease-out);
    z-index: 1050;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
  body.nav-lock { overflow: hidden; }

  @keyframes navItemIn {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
  }
}

/* ============================================================
   HERO APILADO EN MÓVIL (≤ 760px)
   ============================================================ */
@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; }
  .hero__bg { position: static; width: 100%; z-index: 0; order: -1; }
  .hero__bg img { width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: 56vh; object-fit: cover; }
  .hero__overlay { display: none; }
  .hero__inner { padding-block: clamp(2rem, 1.5rem + 4vw, 3rem); max-width: none; }
}

/* ============================================================
   ANIMACIÓN DE ENTRADA (sutil)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .nav-menu.is-open .nav-links > li,
  .nav-menu.is-open > .btn { animation: none; }
}
