/* ==========================================================================
   KB Seguros — Centro Profesional de Seguros
   Hoja de estilos principal. Sin dependencias externas.
   Para cambiar colores o fuentes, edita las variables de :root.
   ========================================================================== */

/* ---------- Fuentes (autoalojadas, licencia OFL) ----------
   Solo dos: Bodoni Moda en los títulos y Manrope en todo lo demás. */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }

/* ---------- Variables de marca ---------- */
:root {
  /* Paleta tomada del logo: azul KB en varios tonos (sin fondos negros) */
  --ink: #13213B;          /* texto principal (azul marino casi negro) */
  --muted: #4A5671;        /* texto secundario */
  --dark: #0A2C5C;         /* fondos oscuros: azul marino del logo (barra superior, sección médica, pie) */
  --dark-hover: #123A73;
  --brand: #0449AA;        /* azul del logo (botones, acentos) */
  --brand-dark: #033A88;
  --mist: #F2F5FA;         /* fondo claro de secciones (tinte del azul) */
  --sky: #E3EBF8;          /* fondo de íconos */
  --line: #DFE4EC;         /* bordes */
  --field: #CBD2DD;        /* borde de campos */
  --on-dark: #C8D5EA;      /* texto sobre fondo oscuro */
  --on-dark-accent: #7FA6E6; /* azul claro sobre fondo oscuro */
  --focus: #7FA6E6;
  --serif: "Bodoni Moda", Didot, Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --header-h: 80px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--ink); background: #FFFFFF; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.icon { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--bold { stroke-width: 2; }
.icon--sm { width: 18px; height: 18px; }
.icon--xs { width: 16px; height: 16px; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: #FFFFFF; color: var(--ink); padding: 12px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 16px; }

/* ---------- Tipografía de sección ---------- */
.eyebrow { font-size: 13px; font-weight: 700; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }
.h2 { margin-top: 14px; font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); }
.lead { font-size: 17px; line-height: 1.6; color: var(--muted); }

.section { padding: 96px 0; }
.section--mist { background: var(--mist); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.section-head > div { max-width: 660px; }
.section-head .lead { max-width: 400px; }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
}

/* Títulos en Bodoni: versión "texto" (opsz 11), con los trazos finos más gruesos
   para que se lean bien en pantalla. */
.h2, .hero h1, .notfound h1 { font-optical-sizing: none; font-variation-settings: "opsz" 11; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 28px; border-radius: 3px; border: 1.5px solid transparent; font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1; text-decoration: none; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn--primary { background: var(--brand); color: #FFFFFF; }
.btn--primary:hover { background: var(--brand-dark); color: #FFFFFF; }
.btn--outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #FFFFFF; }
.btn--dark { background: var(--dark); color: #FFFFFF; }
.btn--dark:hover { background: var(--dark-hover); color: #FFFFFF; }
.btn--white { background: #FFFFFF; color: var(--dark); }
.btn--white:hover { background: var(--sky); color: var(--dark); }
.btn--outline-light { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.6); }
.btn--outline-light:hover { background: #FFFFFF; color: var(--dark); border-color: #FFFFFF; }
.btn--sm { height: 44px; padding: 0 22px; font-size: 12px; }
.btn--block { display: flex; width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--brand); text-decoration: none; }
.link-arrow:hover { color: var(--brand-dark); text-decoration: underline; }

.icon-chip { width: 48px; height: 48px; border-radius: 12px; background: var(--sky); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-chip--sm { width: 44px; height: 44px; }
.icon-chip--white { background: #FFFFFF; }

/* ---------- Encabezado ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .header { background: rgba(255, 255, 255, 0.95); backdrop-filter: saturate(1.4) blur(10px); } }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; flex-shrink: 0; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand img { width: auto; height: 52px; }
.brand__text { display: block; }
.brand__name { display: block; font-size: 15px; font-weight: 700; line-height: 1.15; letter-spacing: -0.005em; text-transform: uppercase; }
.brand__nl { display: block; }
.brand__sub { display: block; margin-top: 5px; font-size: 9.5px; font-weight: 600; line-height: 1; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink); }

.nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 0; }
.nav a:hover { color: var(--brand); }

.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; line-height: 1.1; color: var(--ink); text-decoration: none; }
.header__phone-label { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.header__phone-num { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.header__phone:hover .header__phone-num { color: var(--brand); }

.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: #FFFFFF; color: var(--ink); cursor: pointer; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px 24px 16px; background: #FFFFFF; border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px -16px rgba(10, 32, 70, 0.22); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .header__phone { display: none; }
  .brand img { width: auto; height: 44px; }
  .brand__name { font-size: 14px; }
  .brand__sub { margin-top: 4px; font-size: 7.5px; letter-spacing: 0.34em; }
  .header__actions .btn--sm { display: none; }
  .header .wrap { gap: 12px; }
  .header__actions { gap: 10px; }
  .header__actions .btn--sm { padding: 0 16px; }
}
.nav a, .brand__sub { white-space: nowrap; }
@media (min-width: 1081px) and (max-width: 1180px) { .header__phone { display: none; } .nav { gap: 22px; } }

/* ---------- Portada ----------
   Primero la foto, a todo el ancho; debajo, el título, el botón y los accesos.
   Al bajar (lo hace main.js): en computadora la foto se extiende por detrás del
   título y el título queda encima, en blanco; en el celular la foto se mueve un
   poco más lento que la página. */
.hero { --banner-h: clamp(320px, 56vh, 600px); background: #FFFFFF; border-bottom: 1px solid var(--line); }
.hero__banner { position: relative; margin: 0; height: var(--banner-h); overflow: hidden; background: var(--mist); }
.hero__banner img { position: absolute; left: 0; top: -60px; width: 100%; height: calc(100% + 60px); object-fit: cover; object-position: 50% 20%; }
.hero .wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 48px; }
.hero__copy { max-width: 880px; margin: 0 auto; text-align: center; }
.hero h1, .hero__title-over { margin-top: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 6vw, 84px); line-height: 1.04; letter-spacing: -0.015em; color: var(--ink); }
.hero h1 em, .hero__title-over em { font-style: normal; color: var(--brand); }
.hero__lead { max-width: 620px; margin: 24px auto 0; font-size: 19px; line-height: 1.6; color: var(--muted); }
.hero__ctas { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.seal { position: absolute; top: -68px; right: 24px; z-index: 2; width: 136px; height: 136px; border-radius: 50%; background: #FFFFFF; color: var(--brand); box-shadow: 0 16px 36px -14px rgba(10, 32, 70, 0.35); }
.seal svg { display: block; width: 100%; height: 100%; }
.seal img { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; transform: translate(-50%, -50%); }
.hero__checks { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-size: 15px; color: var(--muted); }
.hero__checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero__checks .icon { width: 18px; height: 18px; color: var(--brand); }
.hero__clients { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); align-items: start; gap: 12px 28px; }
.hero__clients-title { padding-top: 15px; font-size: 15px; line-height: 22px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.hc { display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; color: var(--ink); text-decoration: none; }
.hc__icon { width: 40px; height: 40px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--sky); color: var(--brand); }
.hc__icon .icon { width: 20px; height: 20px; }
.hc__name { display: block; padding-top: 9px; font-size: 15px; line-height: 22px; font-weight: 700; color: var(--brand); }
.hc__desc { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.hc:hover .hc__name { text-decoration: underline; }
@media (max-width: 900px) {
  .hero__clients { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hero__clients-title { padding-top: 4px; }
}
@media (max-width: 640px) {
  .hero { --banner-h: 300px; }
  .hero .wrap { padding-top: 64px; padding-bottom: 32px; }
  .hero__lead { font-size: 17px; }
  .hero__ctas .btn { flex: 1 1 100%; max-width: 360px; }
  .seal { top: -48px; right: 16px; width: 96px; height: 96px; }
  .seal img { width: 34px; height: 34px; }
  .hero__checks { flex-direction: column; align-items: center; gap: 8px; }
  .hero__clients { margin-top: 36px; padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__banner img { top: 0; height: 100%; transform: none !important; }
}

/* Efecto al bajar en pantallas grandes (lo activa main.js): la foto se extiende
   hacia abajo, por detrás del título, y se acerca un poco. La parte del título que
   queda sobre la foto se ve en blanco, justo hasta el borde de la foto. */
.hero__banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 32, 70, 0.72) 0%, rgba(10, 32, 70, 0.3) 30%, rgba(10, 32, 70, 0) 55%); opacity: var(--shade, 0); pointer-events: none; }
.hero--anim .hero__banner { height: calc(var(--banner-h) + var(--extend, 0px)); margin-bottom: calc(-1 * var(--extend, 0px)); }
.hero--anim .hero__banner img { top: 0; height: 100%; transform-origin: 50% 0; will-change: transform; }
.hero--anim .hero__copy { position: relative; }
.hero__title-over { position: absolute; left: 0; right: 0; color: #FFFFFF; text-shadow: 0 2px 24px rgba(10, 32, 70, 0.4); font-optical-sizing: none; font-variation-settings: "opsz" 11; pointer-events: none; user-select: none; clip-path: inset(0 0 100% 0); }
.hero__title-over em { color: #D6E4FB; }

/* ---------- Franja de confianza ---------- */
.trust { border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.trust__item { display: flex; align-items: center; gap: 14px; }
.trust__title { font-size: 17px; font-weight: 700; }
.trust__text { margin-top: 2px; font-size: 14px; color: var(--muted); }

/* ---------- Servicios ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; transition: border-color .15s ease, box-shadow .15s ease; }
.card:hover { border-color: #B8C6DD; box-shadow: 0 12px 32px -20px rgba(10, 32, 70, 0.35); }
.card h3 { margin-top: 4px; font-size: 19px; font-weight: 700; }
.card p { flex-grow: 1; font-size: 15px; line-height: 1.6; color: var(--muted); }
@media (max-width: 640px) { .card { padding: 24px; gap: 12px; } }

/* ---------- Seguro médico ---------- */
.medical { background: var(--mist); color: var(--ink); }
.medical .wrap { display: flex; flex-wrap: wrap; gap: 56px; }
.medical__copy { flex: 1 1 440px; min-width: 0; }
.medical .h2 { color: var(--ink); }
.medical__copy p { margin-top: 24px; font-size: 17px; line-height: 1.65; color: var(--on-dark); }
.medical__copy p + p { margin-top: 16px; }
.medical__copy .btn { margin-top: 32px; }
.checklist { flex: 1 1 520px; min-width: 0; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; align-content: start; }
.checklist li { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.checklist .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--brand); }

/* ---------- Nosotros (valores) ---------- */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.value { padding: 28px; background: var(--mist); border-radius: 16px; }
.value h3 { margin-top: 18px; font-size: 18px; font-weight: 700; }
.value p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.value .icon-chip { background: #FFFFFF; }

/* ---------- Aseguradoras (carrusel) ---------- */
#aseguradoras { overflow-x: clip; }
.marquee { display: grid; gap: 14px; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.marquee__row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); }
.marquee__track { margin: 0; padding: 0; list-style: none; display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee__row--reverse .marquee__track { animation-direction: reverse; animation-duration: 54s; }
.marquee__track li { flex: 0 0 auto; width: 184px; height: 104px; margin-right: 14px; display: flex; align-items: center; justify-content: center; padding: 14px 18px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; }
.marquee__track img { width: auto; height: auto; max-width: 100%; max-height: 72px; object-fit: contain; }
.marquee:hover .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-33.3333%); } }
@media (max-width: 640px) {
  .marquee { gap: 10px; }
  .marquee__track li { width: 136px; height: 80px; margin-right: 10px; padding: 10px 12px; }
  .marquee__track img { max-height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-left: 0; margin-right: 0; }
  .marquee__row, .marquee__track { display: contents; animation: none; }
  .marquee__track li { margin-right: 0; }
  .marquee__track .is-dup { display: none; }
}
/* Para cambiar un logo: reemplaza el archivo en assets/img/aseguradoras/ con el mismo nombre. */

/* ---------- Equipo ---------- */
.team-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tm { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px 32px 36px; border-left: 1px solid var(--line); }
.tm:first-child { padding-left: 0; border-left: 0; }
.tm img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 5px #FFFFFF, 0 0 0 6px var(--line); }
.tm__name { font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 1.9vw, 24px); line-height: 1.25; color: var(--ink); }
.tm__role { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--brand); }
.tm__name, .tm__role { font-optical-sizing: none; font-variation-settings: "opsz" 11; }
@media (max-width: 900px) {
  .team-list { grid-template-columns: minmax(0, 1fr); }
  .tm, .tm:first-child { flex-direction: row; align-items: center; gap: 20px; padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .tm:first-child { border-top: 0; }
  .tm img { width: 76px; height: 76px; flex-shrink: 0; }
}

/* ---------- Capacitación ---------- */
.training { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: clamp(28px, 4vw, 56px); background: #FFFFFF; border: 1px solid var(--line); border-radius: 24px; }
.training__copy { flex: 1 1 360px; min-width: 0; }
.training__copy .h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.15; }
.training__copy .lead { margin-top: 18px; }
.training__copy .btn { margin-top: 28px; }
.training__items { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.training__item { display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px; background: var(--mist); border-radius: 16px; }
.training__item h3 { font-size: 17px; font-weight: 700; }
.training__item p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- Contacto + cotizador ---------- */
.contact--band { background: var(--mist); color: var(--ink); }
.contact--band .h2 { text-wrap: balance; }

.quoter { max-width: 920px; margin: 48px auto 0; padding: clamp(20px, 3.4vw, 44px); background: #FFFFFF; color: var(--ink); border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 30px 70px -36px rgba(10, 32, 70, 0.28); scroll-margin-top: calc(var(--header-h) + 16px); }
.quoter__note { margin-top: 16px; text-align: center; font-size: 13px; color: var(--muted); }

.stepper { margin: 0; padding: 0 0 24px; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.stepper__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.stepper__item::before { content: ""; position: absolute; top: 17px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.stepper__item:first-child::before { display: none; }
.stepper__item.is-active::before, .stepper__item.is-done::before { background: var(--brand); }
.stepper__dot { position: relative; z-index: 1; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #FFFFFF; border: 2px solid var(--field); font-size: 15px; font-weight: 700; color: var(--muted); }
.stepper__item.is-active, .stepper__item.is-done { color: var(--ink); }
.stepper__item.is-active .stepper__dot, .stepper__item.is-done .stepper__dot { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }
.stepper__item.is-active .stepper__dot { box-shadow: 0 0 0 5px var(--sky); }

.step__title { margin-top: 28px; font-size: clamp(21px, 2.2vw, 26px); font-weight: 700; line-height: 1.25; color: var(--ink); }
.step__title:focus { outline: none; }
.step__sub { margin-top: 6px; font-size: 15px; color: var(--muted); }
.step__error { margin-top: 12px; font-size: 14px; font-weight: 600; color: #B42318; }
.step__nav { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.step__nav .btn { height: 52px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--field); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

.tiles-wrap { margin: 22px 0 0; padding: 0; border: 0; min-width: 0; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; display: block; }
.tile input, .pill input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tile__box { height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px; text-align: center; background: var(--mist); border: 1.5px solid transparent; border-radius: 6px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, transform .15s ease; }
.tile__icon { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #FFFFFF; color: var(--brand); box-shadow: 0 6px 14px -8px rgba(4, 73, 170, 0.45); transition: background-color .15s ease, color .15s ease; }
.tile__icon .icon { width: 26px; height: 26px; }
.tile__label { font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.tile:hover .tile__box { border-color: var(--brand); background: #FFFFFF; transform: translateY(-2px); }
.tile input:checked + .tile__box { border-color: var(--brand); background: var(--sky); }
.tile input:checked + .tile__box .tile__icon { background: var(--brand); color: #FFFFFF; }
.tile input:focus-visible + .tile__box, .pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.qs { display: flex; flex-direction: column; gap: 18px; }
.qs > .step__title + .step__sub { margin-top: -12px; margin-bottom: 4px; }
.step[data-step="3"] .qs { margin-top: 20px; }
.q { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.q__label { padding: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.q__label .req { color: #B42318; }
.q-row { display: flex; flex-wrap: wrap; gap: 14px; }
.q-row > .q { flex: 1 1 180px; }
.input { width: 100%; height: 50px; padding: 0 14px; background: #FFFFFF; border: 1px solid var(--field); border-radius: 3px; color: var(--ink); font-family: inherit; font-size: 16px; }
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: var(--brand); }
.input[aria-invalid="true"] { border-color: #B42318; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; display: inline-flex; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--field); border-radius: 3px; background: #FFFFFF; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.pill:hover span { border-color: var(--brand); }
.pill input:checked + span { background: var(--brand); border-color: var(--brand); color: #FFFFFF; font-weight: 600; }

.direct { max-width: 920px; margin: 44px auto 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "intro quoter" "direct direct"; gap: 48px 64px; align-items: start; }
.contact__intro { grid-area: intro; }
.contact__intro .lead { margin-top: 18px; }
.howto { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.howto__t { font-size: 17px; font-weight: 700; color: var(--ink); }
.howto__d { margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.contact__grid .quoter { grid-area: quoter; max-width: none; margin: 0; }
.contact__grid .direct { grid-area: direct; max-width: none; margin: 0; padding-top: 28px; border-top: 1px solid var(--line); }
.contact__grid .direct__title { text-align: left; }
.contact__grid .direct__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 24px; }
.contact__grid .direct__list li { flex-direction: row; gap: 14px; padding: 0; background: none; border: 0; }
.contact__grid .direct__list .direct__wide { grid-column: span 2; }
@media (max-width: 1000px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "quoter" "direct"; }
  .contact__grid .direct__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .contact__grid .direct__list { grid-template-columns: minmax(0, 1fr); }
  .contact__grid .direct__list .direct__wide { grid-column: auto; }
}
.direct__title { text-align: center; font-size: 15px; font-weight: 600; color: var(--ink); }
.direct__list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.direct__list li { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 16px; }
.direct__icon { width: 40px; height: 40px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--sky); color: var(--brand); }
.direct__icon .icon { width: 20px; height: 20px; }
.direct__label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.direct__list li > div { min-width: 0; }
.direct__value { margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.direct__value a { color: var(--ink); text-decoration: none; }
.direct__link { color: var(--brand); text-decoration: none; }
.direct__value a:hover, .direct__link:hover { color: var(--brand); text-decoration: underline; }
.direct__link { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }

@media (max-width: 900px) {
  .direct__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .quoter { border-radius: 20px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile__box { height: 118px; }
  .stepper__label { font-size: 13px; }
  .step__nav .btn--primary { flex: 1 1 auto; }
  .direct__list { grid-template-columns: minmax(0, 1fr); }
  .direct__list li { flex-direction: row; }
}

/* ---------- Aviso de temporada ciclónica ---------- */
.season { background: var(--brand); color: #FFFFFF; font-size: 13px; }
.season .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 16px; padding-top: 9px; padding-bottom: 9px; padding-right: 56px; position: relative; text-align: center; }
.season a { display: inline-flex; align-items: center; gap: 6px; color: #FFFFFF; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.season a:hover { color: #FFFFFF; }
.season__close { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: #FFFFFF; cursor: pointer; }

@media (max-width: 640px) {
  .season .wrap { justify-content: flex-start; text-align: left; }
}

/* ---------- Servicios: personas / empresas ---------- */
.seg { display: inline-flex; margin-bottom: 28px; padding: 4px; border: 1.5px solid var(--brand); border-radius: 3px; gap: 4px; max-width: 100%; }
.seg__btn { height: 44px; padding: 0 20px; border: 0; border-radius: 2px; background: transparent; color: var(--ink); font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.seg__btn:hover { background: var(--mist); }
.seg__btn[aria-selected="true"] { background: var(--brand); color: #FFFFFF; }
.cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card .card__kicker { flex-grow: 0; margin-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.2; color: var(--brand); }
.card .card__kicker + h3 { margin-top: -6px; }
/* Esquinas sobrias en tarjetas (en línea con los botones) */
.card, .value, .insurers li, .member, .training, .training__item, .quote, .quoter, .direct__list li, .icon-chip { border-radius: 6px; }
@media (max-width: 640px) {
  .seg { display: flex; }
  .seg__btn { flex: 1 1 0; padding: 0 10px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Fotos ---------- */
.about__values-head { margin-top: 88px; margin-bottom: 32px; }
.about__label { margin-bottom: 16px; }
#nosotros .section-head .h2 { margin-top: 0; }
.about__title { margin-top: 10px; font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; color: var(--ink); font-optical-sizing: none; font-variation-settings: "opsz" 11; }
@media (max-width: 640px) { .about__values-head { margin-top: 56px; margin-bottom: 24px; } }
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: stretch; }
.about__media { margin: 0; }
.about__media img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; border-radius: 6px; }
.about__grid .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.medical .wrap { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.medical__media { margin: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.medical__media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 38% 50%; border-radius: 6px; }
.medical__body .h2 { font-size: clamp(30px, 3.2vw, 44px); text-wrap: balance; }
.medical__text { margin-top: 20px; font-size: 17px; line-height: 1.65; color: var(--muted); }
.medical__body .checklist { margin-top: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.medical__body .btn { margin-top: 32px; }

.training { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0; padding: 0; overflow: hidden; align-items: stretch; }
.training__media { margin: 0; }
.training__media img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; object-position: 25% 50%; }
.training__body { padding: clamp(28px, 4vw, 56px); }
.training__body .h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.15; }
.training__body .lead { margin-top: 16px; }
.training__facts { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.training__facts li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--ink); }
.training__facts span { padding-top: 2px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.training__body .btn { margin-top: 28px; }

@media (max-width: 900px) {
  .about__grid, .medical .wrap, .training { grid-template-columns: minmax(0, 1fr); }
  .medical .wrap { gap: 40px; }
  .medical__media { position: static; }
  .about__media img, .medical__media img { min-height: 0; height: 280px; aspect-ratio: auto; }
  .training__media img { min-height: 0; height: 260px; }
}
@media (max-width: 640px) {
  .about__grid .values, .medical__body .checklist { grid-template-columns: minmax(0, 1fr); }
  .training__facts li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* ---------- Pie de página ---------- */
.footer { background: var(--brand); color: #DCE6F7; }
.footer .wrap { padding-top: 0; padding-bottom: 104px; } /* espacio para el botón flotante de WhatsApp */
.footer__top { padding-top: 64px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer__brand { flex: 1 1 320px; max-width: 400px; }
.footer__brand .brand img { width: 60px; height: 60px; padding: 7px; background: #FFFFFF; border-radius: 14px; object-fit: contain; }
.footer__brand .brand__name { color: #FFFFFF; }
.footer__brand .brand__sub { color: #DCE6F7; }
.footer__brand p { margin-top: 20px; font-size: 15px; line-height: 1.6; }
.footer__social { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 12px; font-size: 15px; font-weight: 600; }
.footer__social .icon { width: 20px; height: 20px; }
.footer__col { flex: 0 1 220px; }
.footer__col h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #FFFFFF; }
.footer__col ul { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer a { color: #DCE6F7; text-decoration: none; }
.footer a:hover { color: #FFFFFF; text-decoration: underline; }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.22); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }

/* ---------- Botón flotante de WhatsApp ---------- */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border-radius: 999px; background: var(--brand); color: #FFFFFF; font-weight: 600; text-decoration: none; box-shadow: 0 0 0 3px #FFFFFF, 0 12px 28px -8px rgba(10, 32, 70, 0.5); transition: background-color .15s ease; }
.fab:hover { background: var(--brand-dark); color: #FFFFFF; }
@media (max-width: 640px) {
  .fab { width: 56px; padding: 0; justify-content: center; right: 16px; bottom: 16px; }
  .fab__label { display: none; }
}

/* ---------- Página 404 ---------- */
.notfound { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--mist); text-align: center; }
.notfound__box { max-width: 520px; }
.notfound img { width: auto; height: 110px; margin: 0 auto; }
.notfound h1 { margin-top: 28px; font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5vw, 52px); line-height: 1.1; }
.notfound p { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.notfound .btn { margin-top: 32px; }

/* ---------- Ajustes para celular ---------- */
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .card { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 4px 16px; padding: 20px; }
  .card > .icon-chip { grid-row: 1 / span 2; width: 44px; height: 44px; }
  .card > .card__kicker, .card > h3, .card .card__kicker + h3 { grid-column: 2; margin: 0; }
  .card > p:not(.card__kicker), .card > .link-arrow { grid-column: 1 / -1; }
  .card > p:not(.card__kicker) { margin-top: 10px; }
  .value { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 10px 16px; padding: 20px; }
  .value .icon-chip { width: 44px; height: 44px; }
  .value h3 { margin: 0; }
  .value p { grid-column: 1 / -1; margin-top: 0; }
  .footer__top { padding-top: 48px; }
  .footer__col { flex: 1 1 100%; }
  .footer__col ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .tm, .tm:first-child { padding-left: 6px; }
  .seg { display: flex; width: 100%; }
  .seg__btn { flex: 1 1 0; padding: 0 10px; letter-spacing: 0.08em; }
  .training__body .btn, .medical__body .btn { display: flex; width: 100%; }
}

/* ---------- Equipo de trabajo (6 personas) y misión / visión ---------- */
.tm__ph { width: 96px; height: 96px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--sky); color: var(--brand); box-shadow: 0 0 0 5px #FFFFFF, 0 0 0 6px var(--line); font-size: 26px; font-weight: 600; letter-spacing: 0.02em; }
.team-list .tm:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.team-list .tm:nth-child(n+4) { border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .team-list .tm { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .team-list .tm:first-child { border-top: 0; }
  .tm__ph { width: 76px; height: 76px; font-size: 22px; }
}
@media (max-width: 640px) {
  .team-list .tm, .team-list .tm:nth-child(3n+1) { padding-left: 6px; }
}

/* ---------- Misión, visión y valores ----------
   Mismo lenguaje que Equipo y Capacitación: líneas finas, sin tarjetas ni íconos. */
.mvv { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: stretch; margin-top: 96px; }
.mvv__media { margin: 0; }
.mvv__media img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; border-radius: 6px; }
.mvv__body { display: flex; flex-direction: column; justify-content: center; }
.mvv__list { margin: 28px 0 0; border-top: 1px solid var(--line); }
.mvv__list > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.mvv__list dt { padding-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }
.mvv__list dd { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink); }
.values-label { margin-top: 72px; }
.values-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.values-list li { padding: 30px 28px 34px; border-left: 1px solid var(--line); }
.values-list li:first-child { padding-left: 0; border-left: 0; }
.values-list h4 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 1.9vw, 24px); line-height: 1.25; color: var(--ink); font-optical-sizing: none; font-variation-settings: "opsz" 11; }
.values-list p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--muted); }
@media (max-width: 1080px) {
  .values-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values-list li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .values-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .mvv { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 64px; }
  .mvv__media { order: 2; }
  .mvv__media img { min-height: 0; height: 260px; }
  .values-label { margin-top: 48px; }
}
@media (max-width: 640px) {
  .mvv__list > div { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px 0; }
  .values-list { grid-template-columns: minmax(0, 1fr); }
  .values-list li, .values-list li:nth-child(odd) { padding: 22px 0 24px; border-left: 0; border-top: 1px solid var(--line); }
  .values-list li:first-child { border-top: 0; }
}

/* ---------- Celulares angostos ----------
   El título de la portada cabe en dos líneas y el correo no se sale de la pantalla. */
@media (max-width: 640px) {
  .hero h1, .hero__title-over { font-size: clamp(34px, 10.5vw, 44px); }
}
a[href^="mailto:"] { overflow-wrap: anywhere; }

/* ---------- Seguro médico: exclusión debajo de la lista ---------- */
.medical__note { margin-top: 18px; font-size: 15px; line-height: 1.6; color: var(--muted); }
/* Números que no se parten en dos líneas */
.nowrap { white-space: nowrap; }

/* ---------- Detalles antes de publicar ---------- */
/* El escudo del sello conserva su forma */
.seal img { object-fit: contain; }
/* Teléfonos más fáciles de tocar en el celular */
.direct__value a[href^="tel:"] { display: inline-block; line-height: 24px; }
