/* ============================================================
   Banglobal — Hoja de estilos única (HTML + CSS puro)
   Reconstruida desde el sitio original (React) para que sea
   legible y editable. No requiere JavaScript.
   ============================================================ */

/* ---- Fuentes de marca (TTF variables) ---- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   Tokens de color
   ============================================================ */
:root {
  /* Azules de marca */
  --bg-ink:        #03173C; /* header / footer / sidebar */
  --bg-navy:       #0E2B62; /* overlays del hero, tinta principal */
  --bg-navy-700:   #21468D;
  --bg-blue-500:   #6095ED; /* azul aciano — acento */
  --bg-blue-300:   #8CB7FF; /* acento brillante sobre oscuro */
  --bg-blue-100:   #D9E2F0; /* fondo de página */
  --bg-blue-050:   #E6F0FF; /* superficies con tinte */
  --bg-mist:       #F5F9FC; /* inputs / superficie tenue */

  --white:  #FFFFFF;
  --gray-500: #848484;
  --gray-600: #6D6D6D;
  --gray-300: #CDCDCD;

  /* Aliases semánticos */
  --surface-page:  var(--bg-blue-100);
  --surface-card:  var(--white);
  --surface-tint:  var(--bg-blue-050);
  --surface-input: var(--bg-mist);
  --surface-ink:   var(--bg-ink);

  --text-strong: var(--bg-navy);
  --text-body:   #2A3344;
  --text-muted:  var(--gray-600);
  --text-caption:var(--gray-500);
  --text-accent: var(--bg-blue-500);
  --text-accent-bright: var(--bg-blue-300);

  --border-strong: var(--gray-300);

  --brand:       var(--bg-blue-500);
  --brand-ink:   var(--bg-navy);
  --brand-hover: #4F82D6;
  --focus-ring:  rgba(96,149,237,0.45);

  /* Tipografía */
  --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ui:      "Montserrat", "Inter", -apple-system, sans-serif;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* Espaciado y layout */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 19px;
  --radius-signature: 36px 36px 111px 36px;
  --radius-signature-flip: 36px 36px 36px 111px;

  --header-h: 80px;
  --gutter: 53px;

  --shadow-header: 0 4px 7.9px 0 rgba(0,0,0,0.25);
  --shadow-card:   0 8px 24px -10px rgba(14,43,98,0.20);
  --shadow-raise:  0 14px 40px -16px rgba(3,23,60,0.30);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 400ms;
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(var(--gutter), (100% - 1200px) / 2);
  color: var(--white);
  transition: background var(--dur-fast) var(--ease-std),
              box-shadow var(--dur-fast) var(--ease-std),
              height var(--dur-fast) var(--ease-std);
}
.header.is-scrolled {
  height: 60px;
  background: var(--surface-ink);
  box-shadow: var(--shadow-header);
}
.header__logo { display: inline-flex; text-decoration: none; }
.header__logo svg {
  width: 193px;
  height: auto;
  transition: width var(--dur-fast) var(--ease-std);
}
.header.is-scrolled .header__logo svg { width: 160px; }
.header__nav { display: flex; align-items: center; gap: 0; }
.header__link {
  font-family: var(--font-ui);
  font-weight: var(--fw-regular);
  font-size: 12px;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-std);
  border-right: 1px solid rgba(255,255,255,0.82);
  padding: 0 20px;
  letter-spacing: 1px;
}
.header__link:hover { color: #fff; }

.lang {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: 12px;
  color: var(--white);
  letter-spacing: 0.02em;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,0.82);
  padding: 0 20px;
  margin-right:20px;
  letter-spacing: 2px;
}
.lang b { color: var(--text-accent); }        /* idioma activo */
.lang .dim { opacity: 1; }
/* Idioma inactivo: enlace al otro idioma */
.lang__alt {
  color: var(--white);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-std);
}
.lang__alt:hover { color: var(--text-accent); }

/* Botón de menú (icono hamburguesa) — abre el sidebar vía checkbox */
.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  color: var(--white);
}

/* ============================================================
   Iconos (SVG inline en el HTML; sólo color por currentColor)
   ============================================================ */
.icon { display: block; flex: 0 0 auto; }

/* ============================================================
   Botones
   ============================================================ */
.btn {
  font-family: var(--font-ui);
  font-weight: var(--fw-semibold);
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  padding: 14px 28px;
  font-size: 16px;
  transition: background var(--dur-base) var(--ease-std),
              color var(--dur-base) var(--ease-std),
              border-color var(--dur-base) var(--ease-std),
              transform var(--dur-fast) var(--ease-std),
              filter var(--dur-fast) var(--ease-std);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn--lg { padding: 18px 40px; font-size: 20px; }
.btn--full { width: 100%; }

.btn--primary { background: var(--brand-ink); color: var(--white); }

/* ============================================================
   Etiqueta de sección (eyebrow) y encabezados
   ============================================================ */
.section-label {
  font-family: var(--font-ui);
  font-weight: var(--fw-extrabold);
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
}
.section-label--ondark { color: var(--white); }

/* ============================================================
   Cards
   ============================================================ */
.card {
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  color: var(--text-body);
  box-shadow: var(--shadow-card);
  padding: 28px;
}
.card--signature {
  border-radius: var(--radius-signature);
  box-shadow: none;
  padding: 0;
  overflow: hidden;
}
.card--signature-flip {
  border-radius: var(--radius-signature-flip);
}

/* ============================================================
   Layout helpers
   ============================================================ */
.wrap { max-width: 1200px; margin: 0 auto; }

/* ============================================================
   HOME — Hero
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;      /* contiene los mix-blend-mode de los velos */
  min-height: 100vh;       /* fallback para navegadores sin svh */
  min-height: 100svh;      /* descuenta la barra del navegador en móvil */
  display: flex;
  align-items: flex-end;
  overflow: hidden;        /* recorta el video de fondo */
  background: var(--bg-navy);   /* respaldo mientras carga el video */
  padding: 0 max(var(--gutter), (100% - 1200px) / 2) 140px;
}
/* Video de fondo del hero */
.hero__video {
  position: absolute;
  left: 0;
  top: -25%;               /* margen extra arriba/abajo para el parallax */
  width: 100%;
  height: 150%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
/* Velos apilados sobre el video (mismos que en las páginas interiores):
   ::before oscurece con navy; ::after tiñe hacia el azul de marca (blend). */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero::before {
  background-color: rgba(15, 44, 95, 0.8);
}
.hero::after {
  background-color: #3b5b96;
  mix-blend-mode: color;
}
.hero__inner {
  position: relative;
  z-index: 2;              /* por encima del video y del velo */
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: #fff;
}
.hero__title-line { display: block; }
.hero__title-lead { font-weight: 800;letter-spacing: 2px; font-size: 60px; }

/* ============================================================
   HOME — Quienes somos
   ============================================================ */
.story {
  background: var(--surface-ink);
  color: #fff;
  padding: 96px var(--gutter);
}
.story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.story__col { display: flex; flex-direction: column; gap: 22px; }
.story__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: 40px;
  color: #fff;
}
.story__text {
  margin: 0;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
}
.story__text b { color: #fff; }
.story__subtitle {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: 22px;
  color: #fff;
}
.story__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
}
.story__list li {
  position: relative;
  padding-left: 20px;
}
.story__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.story--light { background: #D9E2F0; color: var(--text-body); }
.story--light .story__title { color: var(--text-strong); }
.story--light .story__subtitle { color: var(--text-strong); }
.story--light .story__text { color: var(--text-body); }
.story--light .story__text b { color: var(--text-strong); }
.story--light .story__list { color: var(--text-body); }
.story--light .story__media { height: 545px; }
.story__media { height: 380px; }
.story__media img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-hero {
  --contact-hero-pad-b: 90px;   /* padding inferior; la línea del hero lo usa */
  position: relative;
  isolation: isolate;   /* contiene los mix-blend-mode de los velos al hero */
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--bg-navy) url("../images/img-finance-hero.jpg") center/cover;
  padding: 160px max(var(--gutter), (100% - 1200px) / 2) var(--contact-hero-pad-b);
}
/* Velos apilados sobre la foto. Cada uno es una "capa" con su propio blend:
   ::before tiñe la imagen (multiply); ::after es un degradado de legibilidad
   con alpha normal. Ambos quedan bajo el contenido (z-index del __inner = 1). */
/* Video de fondo del hero (bajo los velos). La imagen del `background`
   y el `poster` quedan como respaldo mientras el video carga o si falla. */
.contact-hero__video {
  position: absolute;
  left: 0;
  top: -25%;               /* margen extra arriba/abajo para el parallax */
  width: 100%;
  height: 150%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.contact-hero::before,
.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.contact-hero::before {
  background-color: rgba(15, 44, 95, 0.8);
}
.contact-hero::after {
  background-color:#3b5b96;
  mix-blend-mode: color;
}
.contact-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 760px;
  width: 100%;
}
.contact-hero__row { display: flex; position: relative; padding-left: 24px; }
/* La línea arranca en el tope de la fila (bajo el label) y baja hasta el
   borde inferior del hero, extendiéndose sobre el padding inferior. */
.contact-hero__rule {
  position: absolute;
  left: 0;
  top: 0;
  bottom: calc(var(--contact-hero-pad-b) * -1);
  width: 1px;
  background: rgba(255,255,255,0.5);
}
.contact-hero__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-regular);
  font-size: 34px;
  line-height: 1.2;
  color: #fff;
}
.contact-hero__title b { font-weight: var(--fw-bold); }
/* Canal de denuncias: desplegable del tipo de denuncia sobre la imagen del
   hero. Alineado con el texto (mismo padding que __row, sin la línea). */
.contact-hero__select-row {
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-hero__select-label {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.85);
}
.contact-hero__select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  width: 100%;
  max-width: 520px;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 16px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-sm);
  padding: 14px 44px 14px 18px;
  outline: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  transition: border-color var(--dur-base) var(--ease-std), background-color var(--dur-base) var(--ease-std);
}
.contact-hero__select:hover,
.contact-hero__select:focus {
  border-color: #fff;
  background-color: rgba(255,255,255,0.14);
}
/* Las opciones se pintan sobre el panel nativo (fondo claro). */
.contact-hero__select option { color: var(--text-strong); }

/* Hero de las páginas de líneas de negocio: misma estructura, otra foto. */
.contact-hero--lineas {
  background-image: url("../images/img-lineas-hero.jpg");
}
/* Hero de la página Equipo: misma estructura, otra foto. */
.contact-hero--equipo {
  background-image: url("../images/img-equipo-hero.jpg");
}
/* Hero de la página CBP: reutiliza la misma foto que Equipo. */
.contact-hero--cbp {
  background-image: url("../images/img-equipo-hero.jpg");
}

.contact-split { display: grid; grid-template-columns: 1fr 1fr; }
/* Fondo bicolor a todo el ancho, pero el contenido queda dentro de un ancho
   máximo de 1200px centrado: cada columna empuja su borde EXTERIOR hasta el
   límite de ese ancho (600px = mitad de 1200) y mantiene el gutter al centro. */
.contact-info {
  --contact-info-pad-t: 64px;
  position: relative;
  background: var(--surface-tint);
  /* +24px de sangría a la izquierda: el contenido se separa de la línea, igual
     que el título del hero respecto de su regla. */
  padding: var(--contact-info-pad-t) var(--gutter) 64px calc(max(var(--gutter), 100% - 600px) + 24px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
/* Línea vertical: del tope de .contact-split (sube sobre el padding superior)
   al fondo de .info-rows (último hijo del wrapper -> bottom: 0). */
.contact-info__lined { position: relative; display: flex; flex-direction: column; gap: 28px; }
.contact-info__lined::before {
  content: "";
  position: absolute;
  left: -24px;
  top: calc(var(--contact-info-pad-t) * -1);
  bottom: 0;
  width: 1px;
  background: #A6B6D0;
}
.contact-info__title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: 26px;
  color: var(--text-strong);
}
.contact-info__lead {
  margin: 0;
  max-width: 420px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}
.info-rows { display: flex; flex-direction: column; gap: 20px; }
.info-row { display: flex; align-items: center; gap: 16px; }
.info-row__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-blue-500);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.info-row__label { font-family: var(--font-ui); font-size: 14px; color: var(--text-muted); }
.info-row__value { font-family: var(--font-ui); font-weight: var(--fw-semibold); font-size: 16px; color: var(--text-strong); text-decoration: none; }
a.info-row__value { transition: color var(--dur-fast) var(--ease-std); }
a.info-row__value:hover { color: var(--brand); }

.contact-social__label {
  display: block;
  font-family: var(--font-ui);
  font-weight: var(--fw-semibold);
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.contact-social__links { display: flex; gap: 12px; }
.social-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-form-panel { background: var(--white); padding: 64px max(var(--gutter), 100% - 600px) 64px var(--gutter); }

/* CBP: columna derecha de sólo texto sobre blanco (mismo ancho/paddings). */
.contact-copy {
  background: var(--white);
  padding: 64px max(var(--gutter), 100% - 600px) 64px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-strong);
}
.contact-copy__media {
  align-self: flex-start;
  width: 100%;
  max-width: 460px;
  height: 260px;
  margin-top: 12px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Split de líneas de negocio: párrafo destacado + párrafo de apoyo, y una
   imagen a la derecha (reutiliza la rejilla y la línea de .contact-split). */
.contact-info__intro {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-medium);
  font-size: 26px;
  line-height: 1.5;
  color: var(--text-strong);
}
.contact-info__intro b { font-weight: var(--fw-bold); }
.contact-info__text {
  margin: 0;
  font-size: 20px;
  line-height: 1.65;
  color: var(--text-strong);
  font-family: var(--font-heading);
  font-weight: var(--fw-light);
}

/* Panel izquierdo oscuro (Canal de denuncias): fondo navy, texto blanco. */
.contact-info--dark { background: var(--bg-navy-700); color: #fff; }
.contact-info--dark .contact-info__title { color: #fff; }
.contact-info--dark .contact-info__text {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
}
.contact-info--dark .contact-info__text b { color: #fff; }
.contact-info--dark .contact-info__lined::before { background: var(--text-accent-bright); }
/* Viñetas de la lista del panel oscuro */
.contact-info__bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
}
.contact-info__bullets li { position: relative; padding-left: 22px; }
.contact-info__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-accent-bright);
}
.split-media {
  background: var(--surface-tint);
  padding: 64px max(var(--gutter), 100% - 600px) 64px var(--gutter);
  display: flex;
  align-items: center;
}
.split-media img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-signature-flip);   /* imagen a la derecha: esquina grande abajo-izquierda, como en el home */
}
.contact-form-panel h2 {
  margin: 0 0 24px;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: 26px;
  color: var(--text-strong);
}
.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: flex; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.field > label {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--text-muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-strong);
  background: var(--surface-input);
  border: 1px solid #F0F0F0;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  outline: none;
  transition: border-color var(--dur-base) var(--ease-std), box-shadow var(--dur-base) var(--ease-std);
}
.field textarea { padding: 16px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
/* Select con chevron propio (placeholder deshabilitado toma color tenue). */
.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 44px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%236095ED' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field select:required:invalid { color: var(--text-caption); }
.field select option { color: var(--text-strong); }

/* Etiqueta suelta y contador de caracteres */
.field__label {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--text-muted);
}
.field__hint { font-size: 12px; color: var(--text-caption); }

/* Zona para adjuntar archivos */
.dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 26px 18px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-input);
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-std), background var(--dur-base) var(--ease-std);
}
.dropzone:hover,
.dropzone.is-drag { border-color: var(--brand); background: var(--surface-tint); }
.dropzone__icon { color: var(--brand); }

/* Mapa a lo ancho bajo el formulario */
.contact-map { line-height: 0; }
.contact-map iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
}

/* ============================================================
   LÍNEAS DE NEGOCIO — "Otras líneas de negocio"
   ============================================================ */
.other-lines {
  background: var(--bg-navy);
  color: #fff;
  padding: 80px max(var(--gutter), (100% - 1200px) / 2);
}
.other-lines__title {
  margin: 0 0 44px;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: 30px;
  color: #fff;
}
.other-lines__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.other-line {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 44px;
  text-decoration: none;
  color: #fff;
  border-left: 1px solid rgba(255,255,255,0.18);
  transition: transform var(--dur-base) var(--ease-std);
}
.other-line:first-child { border-left: none; padding-left: 0; }
.other-line:hover { transform: translateY(-3px); }
.other-line__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: 18px;
  line-height: 1.3;
  color: #fff;
}
.other-line__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
}
.other-line__more {
  margin-top: 8px;
  font-family: var(--font-ui);
  font-weight: var(--fw-semibold);
  font-size: 13px;
  color: var(--text-accent-bright);
}

/* ============================================================
   EQUIPO — "Nuestro Equipo"
   ============================================================ */
.team {
  background: var(--surface-tint);
  padding: 96px max(var(--gutter), (100% - 1200px) / 2);
}
.team__head {
  max-width: 720px;
  margin: 0 auto 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.team__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-light);
  font-size: 40px;
  line-height: 1.15;
  color: var(--text-strong);
}
.team__title b { font-weight: var(--fw-bold); }
.team__intro {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Rejilla: cards verticales (foto arriba, tarjeta abajo), tres por fila,
   centradas. */
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 285px));
  justify-content: center;
  gap: 40px 20px;
}
.team-member {
  display: flex;
  flex-direction: column;
}
.team-member__photo {
  background: var(--bg-blue-100);
  aspect-ratio: 4 / 5;
}
.team-member__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-member__card {
  padding: 24px 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.team-member__name {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-regular);
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-strong);
}
.team-member__role {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-strong);
}
.team-member__sub {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-regular);
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-strong);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surface-ink);
  color: var(--white);
  padding: 53px max(var(--gutter), (100% - 1200px) / 2) 40px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.footer__top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__cols { display: flex; gap: 120px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 14px; min-width: 180px; }
.footer__col-title {
  font-family: var(--font-ui);
  font-weight: var(--fw-semibold);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-accent-bright);
}
.footer__link {
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.2;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  max-width: 230px;
  transition: color var(--dur-fast) var(--ease-std);
}
.footer__link:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer__social { display: flex; gap: 16px; }
.footer__social a { color: #fff; display: inline-flex; }
.footer__copy { font-family: var(--font-ui); font-size: 11px; color: rgba(255,255,255,0.7); }

/* ============================================================
   REVEAL — aparición al hacer scroll (activado por main.js)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-std),
              transform 0.7s var(--ease-std);
  will-change: opacity, transform;
}
.reveal--delay { transition-delay: 0.12s; }
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Accesibilidad: sin animación si el usuario prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   SIDEBAR — menú deslizable (sólo CSS, vía checkbox oculto)
   ============================================================ */
.menu-toggle { display: none; }            /* checkbox oculto */
.sidebar {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}
.sidebar__overlay {
  position: absolute;
  inset: 0;
  background: rgba(3,23,60,0.55);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-std);
}
.sidebar__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 485px;
  max-width: 90vw;
  background: var(--surface-ink);
  box-shadow: var(--shadow-raise);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: 28px 40px 40px 65px;
  overflow-y: auto;
}
/* Al marcar el checkbox, el sidebar aparece */
.menu-toggle:checked ~ .sidebar { pointer-events: auto; }
.menu-toggle:checked ~ .sidebar .sidebar__overlay { opacity: 1; }
.menu-toggle:checked ~ .sidebar .sidebar__panel { transform: translateX(0); }

.sidebar__head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 40px;
}
.sidebar__close {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  display: inline-flex;
}
.sidebar__nav { display: flex; flex-direction: column; margin-top: 56px; }
.sidebar__group {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
/* Ingreso clientes: sólo en el sidebar en móvil (en escritorio va en el header) */
.sidebar__group--mobile { display: none; }
.sidebar__group--mobile .sidebar__link { color: var(--text-accent); }
.sidebar__group--mobile .sidebar__link:hover { color: var(--brand-hover); }
.sidebar__link {
  text-align: left;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: var(--fw-light);
  font-size: 20px;
  color: #fff;
  padding: 8px 0;
  transition: color var(--dur-fast) var(--ease-std);
}
.sidebar__link:hover { color: var(--text-accent-bright); }

/* Dropdown: el título (botón) despliega/oculta su submenú.
   El despliegue lo controla main.js con la clase .is-open (hover en
   escritorio, tap en táctil). */
.sidebar__toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sidebar__toggle::after {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-right: 15px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);   /* chevron hacia abajo */
  transition: transform var(--dur-base) var(--ease-std);
}
.sidebar__group.is-open > .sidebar__toggle::after {
  transform: translateY(2px) rotate(-135deg);   /* chevron hacia arriba */
}

/* Región colapsable animada (max-height + opacity) */
.sidebar__submenu {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--dur-slow) var(--ease-std),
              opacity var(--dur-slow) var(--ease-std),
              margin-bottom var(--dur-slow) var(--ease-std);
  margin-bottom:0;
}
.sidebar__group.is-open > .sidebar__submenu {
  max-height: 260px;
  opacity: 1;
  position: relative;
  margin-bottom:15px;
}
.sidebar__group.is-open > .sidebar__submenu:after {
  content: "";
  display: block;
  width: 1px;
  height: 100%;
  background: var(--text-accent);
  position: absolute;
  left: 15px;
  top: 0;
  box-sizing: border-box;
}
.sidebar__sublink {
  position:relative;
  display: block;
  text-align: left;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: var(--fw-regular);
  font-size: 13px;
  color: var(--text-accent);
  padding: 10px 0 10px 36px;
  transition: color var(--dur-fast) var(--ease-std);
  position: relative;
}
.sidebar__sublink:after{
  content: "";
  display: block;
  width: 1px;
  height: 100%;
  background: rgba(255,255,255,0.14);
  position: absolute;
  left: 15px;
  top: 0;
}
.sidebar__sublink:hover { color: var(--text-accent-bright); }
.sidebar__sublink::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: solid 5px var(--surface-ink);
  background: var(--text-accent-bright);
  z-index: 1;
  transform: scale(0);
  transition: transform var(--dur-slow) var(--ease-std);
}
.sidebar__sublink:hover::before {
  transform: scale(1);
}
.sidebar__social { margin-top: auto; display: flex; gap: 14px; justify-content: flex-end; }
.sidebar__social a { color: #fff; display: inline-flex; }

/* ============================================================
   Responsive
   ============================================================ */
/* ---- Tablet / mobile (≤ 900px) ---- */
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .header__nav { gap: 14px; }
  .header__link { display: none; }            /* en móvil sólo queda el menú */
  .sidebar__group--mobile { display: flex; }  /* Ingreso clientes pasa al sidebar */

  /* Grids a una columna */
  .story__grid,
  .contact-split { grid-template-columns: 1fr; }

  /* Hero */
  .hero { padding-bottom: 56px; }
  .hero__title { font-size: 44px; }

  /* Secciones "story" (Quienes somos / Trayectoria / Misión) */
  .story { padding: 64px var(--gutter); }
  .story__grid { gap: 36px; }
  .story__title { font-size: 30px; }
  .story__media { height: 320px; }
  .story--light .story__media { height: 360px; }

  /* Detalle de línea / contacto */
  .contact-hero { --contact-hero-pad-b: 56px; min-height: calc(100vh - 80px); padding: 120px var(--gutter) 56px; }
  .contact-info,
  .contact-form-panel,
  .contact-copy { padding: 48px var(--gutter); }
  .contact-info { --contact-info-pad-t: 48px; padding-left: calc(var(--gutter) + 24px); }
  .form__row { flex-direction: column; }
  .contact-map iframe { height: 360px; }

  /* Split de líneas: imagen apilada bajo el texto */
  .split-media { padding: 0 var(--gutter) 48px; }

  /* Equipo: tres cards por fila, más compactas */
  .team { padding: 64px var(--gutter); }
  .team__title { font-size: 30px; }
  .team__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 16px; }

  /* Otras líneas de negocio: una columna, divisores arriba */
  .other-lines { padding: 56px var(--gutter); }
  .other-lines__grid { grid-template-columns: 1fr; gap: 28px; }
  .other-line { border-left: none; border-top: 1px solid rgba(255,255,255,0.18); padding: 24px 0 0; }
  .other-line:first-child { border-top: none; padding-top: 0; }

  /* Footer */
  .footer__top { gap: 32px; }
  .footer__cols { gap: 48px; }
}

/* ---- Teléfonos (≤ 560px) ---- */
@media (max-width: 560px) {
  :root { --gutter: 20px; }

  .header__logo svg,
  .header.is-scrolled .header__logo svg { width: 150px; height: auto; }

  .lang { padding: 0 10px; margin-right: 0; }

  /* En móvil se usa el video vertical (lo elige main.js). La imagen queda
     como respaldo de fondo mientras el video carga o si falla. */
  .hero {
    background:
      linear-gradient(rgba(14,43,98,0.6), rgba(14,43,98,0.6)),
      url("../images/img-finance-hero-mobile.jpg") center/cover;
  }
  .hero__title { font-size: 30px; text-align: center; }
  .hero__title-lead { font-size: 50px; }

  .story__title { font-size: 26px; }
  .story__media { height: 240px; }
  .story--light .story__media { height: 280px; }

  .contact-hero__title { font-size: 26px; }

  /* Equipo: una card por fila */
  .team__grid { grid-template-columns: minmax(0, 1fr); }
  .team-member__photo { aspect-ratio: auto; height: 300px; }

  /* Drawer del menú */
  .sidebar__panel { width: 100%; max-width: 100%; padding: 24px; }
  .sidebar__link { font-size: 20px; }
  .sidebar__sublink { font-size: 14px; padding-left: 24px; }

  /* Footer apilado y centrado */
  .footer { text-align: center; }
  .footer__top { justify-content: center; align-items: center; }
  .footer__cols { gap: 32px; justify-content: center; }
  .footer__col { align-items: center; min-width: 0; }
  .footer__link { max-width: none; }
  .footer__bottom {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .footer__social { justify-content: center; }
}

/* ============================================================
   THEME WP — ajustes para contenido dinámico (editor de bloques)
   ============================================================ */
/* Cuerpo de la línea de negocio (the_content) con el estilo de .contact-info__text */
.contact-info__body p {
  margin: 0 0 18px;
  font-size: 20px;
  line-height: 1.65;
  color: var(--text-strong);
  font-family: var(--font-heading);
  font-weight: var(--fw-light);
}
.contact-info__body p:last-child { margin-bottom: 0; }

/* Plantillas genéricas (page/single/archive/404): despejan el header fijo */
.wp-generic { max-width: 900px; margin: 0 auto; padding: 160px var(--gutter) 100px; min-height: 60vh; }
.wp-generic h1 { font-family: var(--font-heading); color: var(--text-strong); font-size: 36px; line-height: 1.15; margin: 0 0 24px; }
.wp-generic h2 { font-family: var(--font-heading); color: var(--text-strong); font-size: 24px; margin: 0 0 12px; }
.wp-generic .entry-content { color: var(--text-body); line-height: 1.7; }
.wp-generic .entry-content p { margin: 0 0 18px; }
.wp-generic article { margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--gray-300); }
.wp-generic a { color: var(--brand); }

.other-lines--archive { padding-top: 140px; }

/* ============================================================
   Compatibilidad con Contact Form 7 (respeta el diseño del theme)
   ============================================================ */
.form .wpcf7-form-control-wrap { display: block; width: 100%; }
.form .wpcf7-not-valid-tip { display: block; color: #c0392b; font-size: 12px; margin-top: 6px; }
.wpcf7-response-output { margin: 14px 0 0 !important; padding: 10px 14px; font-size: 14px; border-radius: var(--radius-sm); }
/* Dropzone con el [file] de CF7: el input se oculta pero sigue funcional */
.dropzone .wpcf7-form-control-wrap { display: contents; }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* Validación del desplegable de tipo de denuncia (hero) */
.contact-hero__select.is-invalid { border-color: #ff8f8f; box-shadow: 0 0 0 3px rgba(255,143,143,0.25); }
.contact-hero__select-error { display: block; margin-top: 8px; color: #ffd0d0; font-size: 13px; }
