/* ==========================================================================
   ANGOPI — Sistema visual (Kaiva Studio)
   Geist · titulares 600 con tracking cerrado · píldoras · paneles y bento
   Acento: azul del logo (#418EF2)
   ========================================================================== */

:root {
  --bg: #fbfbfb;
  --panel: #f2f2f4;
  --panel-2: #e9e9ed;
  --card: #ffffff;
  --line: #e6e6ea;
  --line-strong: #d6d6dc;

  --ink: #0a0a0c;
  --ink-2: #3a3c42;
  --muted: #6b6f78;
  --dim: #a3a6ad;

  /* Azul de marca (derivado del logo #418EF2) para marcos y tarjetas destacadas */
  --brand-950: #418ef2;
  --brand-900: #418ef2;
  --brand-800: #418ef2;
  --brand-700: #418ef2;
  --dark: var(--brand-800);
  --dark-2: rgba(255, 255, 255, 0.07);
  --dark-line: rgba(255, 255, 255, 0.16);
  --on-dark: #ffffff;
  --on-dark-muted: #ffffff;
  --on-dark-dim: rgba(255, 255, 255, 0.7);

  --blue: #418ef2;
  --blue-600: #418ef2;
  --blue-700: #418ef2;
  --blue-soft: #ffffff;

  --success: #1c8a52;
  --error: #c0261b;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(2rem, 1.35rem + 2.4vw, 3rem);
  --fs-h1: clamp(2.6rem, 1.4rem + 4.8vw, 5.25rem);
  --fs-page: clamp(2.4rem, 1.5rem + 3.4vw, 4.25rem);

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --pill: 999px;

  --shadow-sm: 0 1px 2px rgba(10, 10, 12, 0.05);
  --shadow: 0 12px 32px -16px rgba(10, 10, 12, 0.18);
  --shadow-lg: 0 40px 80px -32px rgba(10, 10, 12, 0.45);

  --container: 1160px;
  --gutter: clamp(1rem, 0.6rem + 1.8vw, 2rem);
  --section: clamp(4.5rem, 3rem + 5vw, 8rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-600); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; }
h1 { font-size: var(--fs-h1); line-height: 0.98; letter-spacing: -0.05em; }
h2 { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -0.04em; }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.025em; }
h4 { font-size: var(--fs-base); line-height: 1.3; letter-spacing: -0.015em; }
p, ul, ol { margin: 0; }
ul, ol { padding: 0; }
strong { color: var(--ink); font-weight: 600; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: var(--pill);
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 16px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.section--flush-top { padding-top: 0; }

.head { max-width: 680px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.head--center { margin-inline: auto; text-align: center; }
.head > p:not(.eyebrow) { margin-top: 16px; font-size: var(--fs-md); color: var(--muted); max-width: 560px; }
.head--center > p:not(.eyebrow) { margin-inline: auto; }
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.head-row .head { margin-bottom: 0; }

.dim { color: var(--dim); }
.accent { color: var(--blue); }
.frame .dim, .card--dark .dim { color: var(--on-dark-dim); }

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.frame .eyebrow, .card--dark .eyebrow { color: var(--on-dark-muted); }

.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }

.grid-2 { display: grid; gap: 24px; }
@media (min-width: 960px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 56px; }
  .grid-2--wide-right { grid-template-columns: 0.85fr 1.15fr; }
  .grid-2--center { align-items: center; }
}

/* ---------- Iconos ---------- */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 26px; height: 26px; }
.icon--fill { fill: currentColor; stroke: none; }

.icon-tile {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
}
.card--dark .icon-tile, .frame .icon-tile { background: rgba(255, 255, 255, 0.08); color: #fff; }
.icon-tile--blue { background: var(--blue-soft); color: var(--blue-600); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--pill);
  font: 500 0.9375rem/1 var(--font); letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: scale(0.98); }
.btn--dark { background: var(--brand-800); color: #fff; }
.btn--dark:hover { background: var(--brand-900); color: #fff; }
.btn--light { background: #fff; color: var(--brand-900); }
.btn--light:hover { background: #e9e9ed; color: var(--ink); }
.btn--blue { background: var(--blue-600); color: #fff; }
.btn--blue:hover { background: var(--blue-700); color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn--outline-light { background: rgba(255, 255, 255, 0.04); color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: var(--fs-sm); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row--center { justify-content: center; }
@media (max-width: 479px) {
  .btn-row--stack { flex-direction: column; align-items: stretch; }
  .btn-row--stack .btn { width: 100%; }
}

.link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; color: var(--ink); text-decoration: none;
}
.link .icon { transition: transform 0.2s var(--ease); }
.link:hover { color: var(--ink); }
.link:hover .icon { transform: translateX(3px); }
.card--dark .link, .frame .link { color: #fff; }

.round-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--panel); color: var(--ink);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.25s var(--ease);
}

/* ---------- Navegación flotante ---------- */
.nav-shell {
  position: fixed; inset: 14px 0 auto; z-index: 100;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.nav-bar {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1120px; margin-inline: auto;
  min-height: 60px; padding: 8px 8px 8px 22px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(10, 10, 12, 0.06);
  box-shadow: 0 10px 30px -18px rgba(10, 10, 12, 0.35);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 104px; height: auto; }
.brand .brand__light { display: none; }

.nav-links { display: none; list-style: none; gap: 2px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border-radius: var(--pill);
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(10, 10, 12, 0.05); }
.nav-links a[aria-current="page"] { color: var(--blue-600); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-cta { display: none; }
.menu-toggle {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--brand-800); color: #fff; 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; }

/* Sobre el marco oscuro, antes de hacer scroll */
.nav-shell.on-dark:not(.is-scrolled) .nav-bar { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav-shell.on-dark:not(.is-scrolled) .brand__dark { display: none; }
.nav-shell.on-dark:not(.is-scrolled) .brand__light { display: block; }
.nav-shell.on-dark:not(.is-scrolled) .nav-links a { color: rgba(255, 255, 255, 0.85); }
.nav-shell.on-dark:not(.is-scrolled) .nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-shell.on-dark:not(.is-scrolled) .nav-links a[aria-current="page"] { color: #fff; }
.nav-shell.on-dark:not(.is-scrolled) .nav-cta { background: #fff; color: var(--brand-900); }
.nav-shell.on-dark:not(.is-scrolled) .menu-toggle { background: #fff; color: var(--brand-900); }
.nav-shell.on-dark:not(.is-scrolled) .mobile-menu:not([hidden]) ~ * { display: none; }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}
@media (min-width: 1024px) and (max-width: 1120px) {
  .nav-links a { padding: 0 10px; }
}

.mobile-menu {
  pointer-events: auto;
  max-width: 1120px; margin: 10px auto 0;
  padding: 10px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; }
.mobile-menu li a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 52px; padding: 0 14px; border-radius: 14px;
  font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); text-decoration: none;
}
.mobile-menu li a:hover { background: var(--panel); }
.mobile-menu li a[aria-current="page"] { color: var(--blue-600); }
.mobile-menu li a .icon { color: var(--muted); }
.mobile-menu__actions { display: grid; gap: 8px; padding: 10px 4px 4px; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }
body.nav-open .nav-shell .nav-bar { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
body.nav-open .nav-shell .brand__dark { display: block !important; }
body.nav-open .nav-shell .brand__light { display: none !important; }
body.nav-open .nav-shell .menu-toggle { background: var(--brand-800) !important; color: #fff !important; }

/* ---------- Marco oscuro ---------- */
.frame {
  position: relative;
  overflow: hidden;
  margin: 10px;
  border-radius: var(--r-lg);
  background: var(--brand-800);
  color: var(--on-dark-muted);
  isolation: isolate;
}
.frame--plain { background: var(--brand-800); }
.frame h1, .frame h2, .frame h3 { color: #fff; }
.frame .lead { color: var(--on-dark-muted); }

.hero { padding: clamp(8rem, 6rem + 6vw, 10.5rem) 0 0; text-align: center; }
.hero h1 { max-width: 14ch; margin-inline: auto; }
.hero h1 .dim { background: linear-gradient(180deg, #b9d1f7, #7fa7e8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 600px; margin: 24px auto 0; }
.hero .btn-row { justify-content: center; margin-top: 34px; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 26px; padding: 4px 14px 4px 4px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: var(--fs-sm); font-weight: 500; color: #fff;
}
.badge__chip { padding: 4px 10px; border-radius: var(--pill); background: #fff; color: var(--brand-800); font-weight: 600; }

/* Composición de mockups */
.showcase {
  position: relative;
  display: flex; justify-content: center; align-items: flex-end;
  height: clamp(330px, 18rem + 10vw, 480px);
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
}
.showcase__side { position: relative; width: 290px; margin-bottom: 70px; text-align: left; display: none; }
.showcase__side--left { transform: rotate(-5deg) translateX(24px); z-index: 1; }
.showcase__side--right { transform: rotate(5deg) translateX(-24px); z-index: 1; }
@media (min-width: 900px) { .showcase__side { display: block; } }

/* Teléfono */
.phone {
  position: relative; z-index: 2; flex: none;
  width: min(310px, 86vw); height: 100%;
  padding: 10px 10px 0;
  border-radius: 46px 46px 0 0;
  background: #1b1d24;
  box-shadow: 0 -20px 60px -20px rgba(6, 22, 66, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  text-align: left;
}
.phone__screen { height: 100%; overflow: hidden; border-radius: 37px 37px 0 0; background: #eef1f5; display: flex; flex-direction: column; }
.phone__notch { position: absolute; top: 20px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #0b0c10; z-index: 3; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 50px 16px 12px; background: #fff; border-bottom: 1px solid #e3e6eb; }
.chat-head__avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 15px; }
.chat-head__name { display: block; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.chat-head__status { display: block; font-size: 11.5px; color: var(--success); }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; font-size: 12.5px; line-height: 1.45; }
.bubble { max-width: 84%; padding: 8px 11px; border-radius: 14px; color: #1d1f24; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); }
.bubble--in { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.bubble--out { align-self: flex-end; background: #dbe9fd; border-top-right-radius: 4px; }
.bubble__time { display: block; margin-top: 2px; font-size: 10px; color: #8b9099; text-align: right; }
.bubble__file { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin-bottom: 4px; border-radius: 8px; background: rgba(255, 255, 255, 0.75); font-weight: 600; font-size: 11.5px; }
.bubble__file .icon { color: var(--blue-600); width: 16px; height: 16px; }

/* Tarjetas de interfaz ilustradas */
.ui-card { border-radius: 22px; background: #fff; padding: 18px; box-shadow: var(--shadow-lg); color: var(--ink-2); font-size: 13px; }
.ui-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ui-card__title { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.ui-card__tag { padding: 3px 9px; border-radius: var(--pill); background: var(--panel); font-size: 11px; font-weight: 600; color: var(--ink-2); }
.ui-steps { display: flex; gap: 6px; margin-bottom: 4px; }
.ui-steps span { height: 4px; flex: 1; border-radius: 4px; background: var(--panel-2); }
.ui-steps span.is-on { background: var(--blue); }
.ui-label { display: block; margin: 12px 0 6px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ui-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ui-seg span { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); font-weight: 500; text-align: center; }
.ui-seg span.is-on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-700); }
.ui-btn { margin-top: 14px; padding: 10px; border-radius: var(--pill); background: var(--brand-800); color: #fff; text-align: center; font-weight: 500; }
.ui-logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ui-logos span { display: grid; place-items: center; height: 46px; border-radius: 12px; background: var(--panel); }
.ui-logos img { max-height: 22px; max-width: 76%; width: auto; filter: grayscale(1); opacity: 0.8; }
.ui-logos span.is-wide { grid-column: span 2; }
.ui-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 500; color: var(--ink); }
.ui-foot .icon { color: var(--blue-600); }

/* ---------- Encabezado de páginas internas ---------- */
.page-hero { padding: clamp(8rem, 6.5rem + 4vw, 9.5rem) var(--gutter) clamp(3.5rem, 2.5rem + 3vw, 5rem); text-align: center; }
.page-hero h1 { font-size: var(--fs-page); max-width: 17ch; margin-inline: auto; line-height: 1.02; letter-spacing: -0.045em; }
.page-hero .lead { max-width: 620px; margin: 20px auto 0; }
.page-hero .btn-row { justify-content: center; margin-top: 28px; }
.page-hero .chips { justify-content: center; margin-top: 32px; }
.breadcrumbs { margin-bottom: 22px; font-size: var(--fs-sm); color: var(--on-dark-muted); }
.breadcrumbs ol { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.breadcrumbs a { color: var(--on-dark-muted); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  border-radius: var(--pill);
  background: #fff; border: 1px solid var(--line);
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink); text-decoration: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip .icon { color: var(--muted); }
.frame .chip { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.frame .chip:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.frame .chip .icon { color: #fff; }

/* ---------- Logos de aseguradoras ---------- */
.logos { padding-block: clamp(2.75rem, 2rem + 2vw, 4rem); }
.logos__label { text-align: center; font-size: var(--fs-sm); color: var(--muted); margin-bottom: 26px; }
.logos__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 20px clamp(28px, 1.5rem + 2.5vw, 60px);
  list-style: none;
}
.logos__row img {
  height: 28px; width: auto; max-width: 118px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.25);
  opacity: 0.7;
  transition: opacity 0.25s var(--ease), filter 0.25s var(--ease);
}
.logos__row img.is-tall { height: 38px; }
.logos__row li:hover img { opacity: 1; filter: none; }

/* ---------- Declaración ---------- */
.statement {
  max-width: 980px; margin-inline: auto; text-align: center;
  font-size: clamp(1.6rem, 1.05rem + 2.1vw, 2.6rem);
  font-weight: 600; line-height: 1.18; letter-spacing: -0.035em;
  color: var(--ink);
}
.statement .dim { color: #b5b8be; }
.statement .accent { color: var(--blue-600); }

/* ---------- Paneles y bento ---------- */
.panel { border-radius: var(--r-lg); background: var(--panel); padding: clamp(10px, 0.4rem + 1.2vw, 20px); }
.bento { display: grid; gap: clamp(10px, 0.4rem + 0.8vw, 14px); }
@media (min-width: 900px) {
  .bento--doors { grid-template-columns: repeat(3, 1fr); }
  .bento--doors .cell-a { grid-column: 1 / 3; }
  .bento--doors .cell-b { grid-column: 3; grid-row: 1 / 3; }
  .bento--stats { grid-template-columns: 1.1fr 1fr 1fr; }
  .bento--stats .cell-dark { grid-row: 1 / 3; }
  .bento--3 { grid-template-columns: repeat(3, 1fr); }
  .bento--2 { grid-template-columns: repeat(2, 1fr); }
  .bento--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 640px) and (max-width: 899px) {
  .bento--stats, .bento--4, .bento--3, .bento--2, .bento--doors { grid-template-columns: 1fr 1fr; }
  .bento--stats .cell-dark, .bento--doors .cell-a, .bento--doors .cell-b { grid-column: 1 / -1; }
}

.card {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: var(--r);
  background: var(--card);
  padding: clamp(22px, 1.2rem + 0.8vw, 30px);
  border: 1px solid rgba(10, 10, 12, 0.04);
}
.card > h3 { margin-top: 20px; }
.card > p { margin-top: 8px; color: var(--muted); }
.card--dark {
  background: var(--brand-800);
  color: var(--on-dark-muted); border-color: transparent;
}
.card--dark h2, .card--dark h3 { color: #fff; }
.card > h2:not(.door-title) { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.05; letter-spacing: -0.045em; }
.card.product > h2 { font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.75rem); line-height: 1.1; letter-spacing: -0.035em; }
.card--dark p { color: var(--on-dark-muted); }
.card--blue { background: var(--blue-soft); border-color: transparent; }
.card--link { text-decoration: none; color: inherit; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card__foot { margin-top: auto; padding-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 500; color: var(--ink); }
.card__foot .round-btn { background: var(--brand-800); color: #fff; }
.card--dark .card__foot { color: #fff; }
.card--dark .card__foot .round-btn { background: #fff; color: var(--brand-800); }
.card--blue .card__foot .round-btn { background: var(--blue-600); }
.card--link:hover .round-btn { transform: rotate(-45deg); }

.door-title { margin-top: 22px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.05; letter-spacing: -0.04em; }
.card > .door-title + p { margin-top: 10px; max-width: 46ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; list-style: none; }
.tags li { padding: 5px 11px; border-radius: var(--pill); background: var(--panel); font-size: var(--fs-xs); font-weight: 500; color: var(--ink-2); }
.card--dark .tags li { background: rgba(255, 255, 255, 0.14); color: #fff; }
.card--blue .tags li { background: #fff; }
.card--blue .icon-tile { background: #fff; color: var(--blue-600); }

/* Mini cotizador ilustrado dentro de una tarjeta oscura */
.mini-quote { margin-top: 24px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--dark-line); font-size: 12.5px; color: #e3ecfb; }
.mini-quote .ui-card__title { color: #fff; }
.mini-quote .ui-card__tag { background: rgba(255, 255, 255, 0.08); color: #dfe2e8; }
.mini-quote .ui-steps span { background: rgba(255, 255, 255, 0.16); }
.mini-quote .ui-steps span.is-on { background: #fff; }
.mini-quote .ui-label { color: var(--on-dark-dim); }
.mini-quote .ui-seg span { border-color: rgba(255, 255, 255, 0.2); }
.mini-quote .ui-seg span.is-on { background: #fff; border-color: #fff; color: var(--brand-800); }

/* Cifras */
.stat__num { display: flex; align-items: baseline; gap: 8px; font-size: clamp(2.75rem, 2.2rem + 1.6vw, 3.5rem); font-weight: 600; line-height: 1; letter-spacing: -0.055em; color: var(--ink); }
.stat__unit { font-size: var(--fs-base); font-weight: 500; letter-spacing: -0.01em; color: var(--ink-2); }
.stat p { margin-top: 14px; color: var(--muted); font-size: var(--fs-sm); max-width: 32ch; }
.bars { display: flex; gap: 6px; margin-top: auto; padding-top: 26px; }
.bars span { height: 4px; flex: 1; border-radius: 4px; background: var(--panel-2); }
.bars span.is-on { background: var(--brand-800); }
.bars span.is-blue { background: var(--blue); }
.brand-mark { display: flex; align-items: center; gap: 12px; }
.brand-mark img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3); }
.brand-mark__text { font-size: var(--fs-sm); line-height: 1.35; color: var(--on-dark-muted); }
.card--dark .big { margin-top: 32px; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); line-height: 1.05; letter-spacing: -0.045em; color: #fff; font-weight: 600; }
.card--dark .big + p { margin-top: 14px; }
.card--dark .btn { margin-top: 28px; align-self: flex-start; }

/* ---------- Acordeón ---------- */
.feature { display: grid; gap: clamp(14px, 1rem + 1vw, 28px); align-items: start; }
@media (min-width: 960px) { .feature { grid-template-columns: 1.05fr 0.95fr; align-items: center; } }
.feature__visual { border-radius: var(--r-lg); background: var(--panel); padding: clamp(18px, 1rem + 2.5vw, 52px); }
.acc { display: grid; gap: 10px; }
.acc details { border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.acc details[open] { box-shadow: var(--shadow); border-color: transparent; }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 16px 14px 22px;
  cursor: pointer; list-style: none;
  font-weight: 600; letter-spacing: -0.02em; color: var(--ink);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "";
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.acc details[open] summary::after {
  transform: rotate(180deg);
  background: var(--brand-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.acc__body { padding: 0 22px 22px; color: var(--muted); }
.acc__body > * + * { margin-top: 12px; }
.acc__body .tags { margin-top: 14px; }

/* Póliza ilustrada */
.policy { max-width: 420px; margin-inline: auto; }
.policy__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.policy__row:last-of-type { border-bottom: 0; }
.policy__row b { font-weight: 500; color: var(--ink); }
.pill-ok, .pill-no, .pill-note { flex: none; padding: 3px 9px; border-radius: var(--pill); font-size: 11px; font-weight: 600; }
.pill-ok { background: #e6f5ec; color: #17683f; }
.pill-no { background: #fdeceb; color: #a1261c; }
.pill-note { background: var(--blue-soft); color: var(--blue-700); }
.policy__note { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--panel); font-size: 12.5px; color: var(--ink-2); display: flex; gap: 8px; }
.policy__note .icon { color: var(--blue-600); width: 16px; height: 16px; margin-top: 2px; }
.policy-stack { position: relative; }
.policy-stack .ui-card + .ui-card { position: absolute; right: -6px; bottom: -22px; width: 210px; transform: rotate(3deg); }
@media (max-width: 640px) { .policy-stack .ui-card + .ui-card { display: none; } }

/* ---------- Pasos ---------- */
.steps { display: grid; gap: clamp(10px, 0.4rem + 0.8vw, 14px); list-style: none; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } .steps--5 { grid-template-columns: repeat(5, 1fr); } }
.step { counter-increment: step; border-radius: var(--r); background: #fff; padding: 24px; border: 1px solid rgba(10, 10, 12, 0.04); display: flex; flex-direction: column; }
.step::before { content: counter(step, decimal-leading-zero); font-size: var(--fs-sm); font-weight: 500; color: var(--muted); }
.step h3 { margin-top: 40px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 0.9375rem; }
.frame .step { background: rgba(255, 255, 255, 0.07); border-color: var(--dark-line); }
.frame .step::before { color: var(--on-dark-dim); }
.frame .step p { color: var(--on-dark-muted); }

/* ---------- Historia ---------- */
.history { padding: clamp(4.5rem, 3rem + 5vw, 7rem) var(--gutter); }
.history .head { margin-bottom: 0; }
.years { display: grid; gap: 12px; list-style: none; margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
@media (min-width: 640px) { .years { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .years { grid-template-columns: repeat(4, 1fr); } }
.year { border-radius: var(--r); background: rgba(255, 255, 255, 0.07); border: 1px solid var(--dark-line); padding: 24px; }
.year__when { display: block; font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem); font-weight: 600; line-height: 1; letter-spacing: -0.05em; color: #fff; }
.year__when--sm { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); line-height: 1.1; letter-spacing: -0.035em; }
.year__where { display: inline-block; margin-top: 16px; padding: 3px 10px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.14); color: #fff; font-size: var(--fs-xs); font-weight: 500; }
.year p { margin-top: 14px; font-size: 0.9375rem; color: var(--on-dark-muted); }
.history__quote { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; border-top: 1px solid var(--dark-line); }
.history__quote blockquote { margin: 0; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); font-weight: 500; letter-spacing: -0.025em; color: #fff; max-width: 42ch; }
.history__quote cite { display: block; margin-top: 8px; font-style: normal; font-size: var(--fs-sm); color: var(--on-dark-muted); font-weight: 400; letter-spacing: 0; }

/* ---------- Equipo ---------- */
.team { display: grid; gap: clamp(10px, 0.4rem + 0.8vw, 14px); grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); list-style: none; }
.person { border-radius: var(--r); background: #fff; padding: 22px; border: 1px solid rgba(10, 10, 12, 0.04); }
.person img { width: 72px; height: 72px; border-radius: 50%; background: var(--panel); }
.person h3 { margin-top: 22px; font-size: var(--fs-base); letter-spacing: -0.02em; }
.person__role { margin-top: 2px; font-size: var(--fs-sm); color: var(--muted); }
.person a { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 0.8125rem; font-weight: 500; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.person a:hover { color: var(--blue-600); }
.person a .icon { color: var(--muted); }

/* ---------- Lista de enlaces ---------- */
.list { list-style: none; border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); }
.list a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 18px 6px; border-radius: 14px; text-decoration: none; color: var(--ink);
  transition: background-color 0.2s var(--ease), padding 0.25s var(--ease);
}
.list a:hover { background: #fff; padding-inline: 14px; color: var(--ink); }
.list__title { display: block; font-weight: 600; letter-spacing: -0.02em; }
.list__desc { display: block; font-size: var(--fs-sm); color: var(--muted); }
.list .round-btn { background: transparent; border: 1px solid var(--line-strong); }
.list a:hover .round-btn { background: var(--brand-800); border-color: var(--brand-800); color: #fff; transform: rotate(-45deg); }

/* ---------- Productos ---------- */
.product { scroll-margin-top: 110px; }
.product h2 { margin-top: 20px; font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.75rem); line-height: 1.1; letter-spacing: -0.035em; }
.product > p { margin-top: 10px; color: var(--muted); }
.checks { display: grid; gap: 10px; list-style: none; margin-top: 20px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; color: var(--ink-2); }
.checks li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232366d1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.card--dark .checks li { color: #fff; }
.card--dark .checks li::before { background: rgba(255, 255, 255, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.product__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 26px; }
.product__note { margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--panel); font-size: var(--fs-sm); color: var(--ink-2); }
.product__note a { color: var(--ink); font-weight: 600; }

/* ---------- Preguntas frecuentes ---------- */
.faq-layout { display: grid; gap: 28px; }
@media (min-width: 960px) { .faq-layout { grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; } .faq-layout > .head { position: sticky; top: 120px; } }

/* ---------- Documentos ---------- */
.doc { display: grid; grid-template-columns: auto 1fr; gap: 14px 18px; align-items: center; }
.doc h2 { font-size: var(--fs-base); letter-spacing: -0.02em; line-height: 1.3; }
.doc p { margin-top: 4px; font-size: var(--fs-sm); color: var(--muted); }
.doc .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 720px) { .doc { grid-template-columns: auto 1fr auto; } .doc .btn { grid-column: auto; } }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 22px; }
.form__row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend { font-size: var(--fs-sm); font-weight: 500; color: var(--ink); padding: 0; }
.req { color: var(--error); }
.input, .textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1px solid var(--line-strong); border-radius: 14px;
  background: #fff; color: var(--ink); font: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #9a9ea6; }
.input:focus, .textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(65, 142, 242, 0.15); }
.input[aria-invalid="true"] { border-color: var(--error); }
.field__error { font-size: var(--fs-xs); font-weight: 500; color: var(--error); }
.field__error:empty { display: none; }
.field__hint { font-size: var(--fs-xs); color: var(--muted); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--brand-800); }
.choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-grid legend { margin-bottom: 10px; width: 100%; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border-radius: var(--pill); border: 1px solid var(--line-strong); background: #fff;
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.choice span .icon { color: var(--muted); }
.choice input:hover + span { border-color: var(--ink); }
.choice input:checked + span { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }
.choice input:checked + span .icon { color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Canales */
.channels { display: grid; gap: 10px; list-style: none; align-content: start; }
.channel { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--r); background: #fff; border: 1px solid rgba(10, 10, 12, 0.04); color: var(--ink); text-decoration: none; transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease); }
.channel:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.channel__label { display: block; font-size: var(--fs-xs); color: var(--muted); }
.channel__value { display: block; font-weight: 600; letter-spacing: -0.02em; }
.channel .round-btn { margin-left: auto; }
.channel:hover .round-btn { background: var(--brand-800); color: #fff; transform: rotate(-45deg); }

.map { overflow: hidden; border-radius: var(--r); background: var(--panel-2); aspect-ratio: 4 / 3; }
.card--media { padding: 0; overflow: hidden; }
.card--media .map { border-radius: 0; aspect-ratio: auto; height: 100%; min-height: 320px; }
.prose-card { padding: clamp(24px, 1rem + 3vw, 64px); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(0.4); }

.quoter { border-radius: var(--r); background: #fff; padding: clamp(12px, 0.5rem + 1.5vw, 28px); min-height: 440px; }
.quoter__fallback { margin-top: 14px; font-size: var(--fs-sm); color: var(--muted); }
.quoter__fallback a { color: var(--ink); font-weight: 500; }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: #fff7e6; border: 1px solid #f4e2b8; font-size: var(--fs-sm); color: #5c4813; }
.notice .icon { margin-top: 2px; width: 18px; height: 18px; }
.card--dark .notice { background: rgba(255, 255, 255, 0.1); border-color: var(--dark-line); color: #fff; }

/* ---------- Texto largo ---------- */
.prose { max-width: 70ch; color: var(--ink-2); }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); letter-spacing: -0.03em; margin-top: 40px; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 6px; }

/* ---------- CTA final ---------- */
.cta { padding: clamp(5rem, 3.5rem + 5vw, 8rem) var(--gutter); text-align: center; }
.cta h2 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem); line-height: 1; letter-spacing: -0.05em; max-width: 15ch; margin-inline: auto; }
.cta p { margin: 22px auto 0; max-width: 520px; color: var(--on-dark-muted); font-size: var(--fs-md); }
.cta .btn-row { justify-content: center; margin-top: 34px; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(3.5rem, 2.5rem + 3vw, 5rem) 0 28px; font-size: var(--fs-sm); color: var(--muted); }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; } }
.footer-brand img { width: 116px; }
.footer-brand p { margin-top: 18px; max-width: 34ch; }
.footer-brand .footer-claim { color: var(--ink); font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.03em; }
.footer-col h2 { font-size: var(--fs-sm); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.footer-col address { font-style: normal; display: grid; gap: 10px; }
.social { display: flex; gap: 8px; list-style: none; margin-top: 20px; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--panel); color: var(--ink); transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.social a:hover { background: var(--brand-800); color: #fff; }
.social .icon { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: var(--fs-xs); }
.footer-bottom p { max-width: 62ch; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  box-shadow: 0 14px 30px -12px rgba(10, 10, 12, 0.5);
  transition: transform 0.2s var(--ease);
}
.wa-float:hover { color: #fff; transform: translateY(-2px) scale(1.03); }
.wa-float .icon { width: 28px; height: 28px; }

/* ---------- 404 ---------- */
.not-found { padding: clamp(9rem, 7rem + 6vw, 12rem) var(--gutter) clamp(5rem, 4rem + 4vw, 8rem); text-align: center; }
.not-found__code { font-size: clamp(5rem, 3.5rem + 7vw, 10rem); font-weight: 600; line-height: 1; letter-spacing: -0.06em; color: var(--blue); }
.not-found h1 { font-size: var(--fs-page); margin-top: 10px; letter-spacing: -0.045em; }
.not-found .lead { margin: 18px auto 0; max-width: 520px; }
.not-found .btn-row { justify-content: center; margin-top: 28px; }

/* ---------- Utilidades ---------- */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0 !important; }
.center { text-align: center; }
.span-full { grid-column: 1 / -1; }
@media (min-width: 640px) and (max-width: 899px) { .bento > .span-2 { grid-column: 1 / -1; } }
@media (min-width: 900px) { .bento > .span-2 { grid-column: span 2; } }

/* ==========================================================================
   Home 2026: estilo de Theo + brief + fotos propias
   ========================================================================== */
:root { --ease-k: cubic-bezier(0.2, 0.8, 0.2, 1); }

/* Ninguna línea final con una palabra sola (ver también main.js) */
p, li, blockquote, cite { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

.badge--light { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.badge--light .badge__chip { background: var(--brand-800); color: #fff; }

/* ---------- Portada: foto de arriba abajo, pegada a la derecha, fundida con el blanco ---------- */
.hero-v {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(660px, 100vh, 920px);
  padding: 150px 0 110px;
  background: var(--bg);
}
.hero-v__media { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; z-index: -1; }
.hero-v__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 20%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 20%, #000 42%);
  animation: hero-zoom 1.8s var(--ease-k) both;
}
.hero-v__media::after { content: ""; position: absolute; inset: auto 0 0; height: 26%; background: linear-gradient(to top, var(--bg), rgba(251, 251, 251, 0)); }
.hero-v__inner { position: relative; }
.hero-v__copy { max-width: 620px; }
.hero-v h1 { margin-top: 2px; font-size: clamp(2.7rem, 1.5rem + 4.4vw, 5.25rem); line-height: 0.98; letter-spacing: -0.05em; }
.hero-v .lead { max-width: 30rem; margin-top: 26px; }
.hero-v .btn-row { margin-top: 34px; }
.hero-v__note { margin-top: 20px; font-size: var(--fs-sm); color: var(--muted); }
.hero-v__card {
  position: absolute; right: clamp(16px, 4vw, 64px); bottom: clamp(32px, 5vw, 72px); z-index: 1;
  max-width: 290px; padding: 18px 22px; border-radius: var(--r);
  background: rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.hero-v__card strong { display: block; font-size: 1.75rem; line-height: 1; letter-spacing: -0.04em; color: var(--brand-800); }
.hero-v__card span { display: block; margin-top: 8px; font-size: var(--fs-sm); line-height: 1.45; color: var(--ink-2); }
@media (max-width: 959px) {
  .hero-v { flex-direction: column; align-items: stretch; min-height: 0; padding: 120px 0 0; }
  .hero-v__media { position: relative; order: 2; width: 100%; height: clamp(340px, 90vw, 560px); margin-top: 28px; }
  .hero-v__media img {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
  }
  .hero-v__media::after { height: 18%; }
  .hero-v__card { position: relative; order: 3; right: auto; bottom: auto; margin: -72px var(--gutter) 0; }
}

/* Entrada de la portada */
@keyframes hero-zoom { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
.hero-in { animation: rise 0.9s var(--ease-k) both; }
.hero-v__copy .hero-in:nth-child(2) { animation-delay: 0.08s; }
.hero-v__copy .hero-in:nth-child(3) { animation-delay: 0.16s; }
.hero-v__copy .hero-in:nth-child(4) { animation-delay: 0.24s; }
.hero-v__copy .hero-in:nth-child(5) { animation-delay: 0.32s; }
.hero-v__card.hero-in { animation-delay: 0.7s; }

/* ---------- Sección azul: la foto queda fija y se esconde detrás de las partes blancas ---------- */
.stage {
  position: relative; isolation: isolate;
  display: flex; align-items: center;
  min-height: 100vh; min-height: 100svh;
  margin: 10px; padding-block: clamp(5rem, 4rem + 4vw, 7rem);
  border-radius: var(--r-lg);
  -webkit-clip-path: inset(0 round var(--r-lg)); clip-path: inset(0 round var(--r-lg));
  background: var(--brand-800);
}
.stage__media { position: fixed; inset: 0; z-index: -1; }
.stage__media img { width: 100%; height: 100%; object-fit: cover; }
.stage__media img { filter: grayscale(1) contrast(1.05); }
.stage__media::after { content: ""; position: absolute; inset: 0; background: rgba(65, 142, 242, 0.78); }
.stage > .container { width: 100%; }
.stage__card {
  max-width: 720px; padding: clamp(26px, 1rem + 2.2vw, 44px);
  border-radius: var(--r-lg); background: #fff;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.55);
}
.stage__card .eyebrow { color: var(--muted); }
.manifesto { font-size: clamp(1.45rem, 1.05rem + 1.4vw, 2.15rem); line-height: 1.16; letter-spacing: -0.035em; }
.manifesto .w { color: #c9cdd4; transition: color 0.35s ease; }
.manifesto .w.on { color: var(--ink); }
.manifesto .w--accent.on { color: var(--blue); }
.facts { display: grid; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); list-style: none; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts li { display: flex; align-items: center; gap: 12px; }
.facts__num { font-size: 2rem; font-weight: 600; line-height: 1; letter-spacing: -0.05em; color: var(--brand-800); }
.facts__txt { font-size: var(--fs-sm); line-height: 1.35; color: var(--muted); }
.facts__txt strong { display: block; color: var(--ink); font-weight: 600; }

/* ---------- Personas y empresas: puertas con foto ---------- */
.doors { display: grid; gap: clamp(10px, 0.4rem + 0.8vw, 16px); }
@media (min-width: 900px) { .doors { grid-template-columns: 1fr 1fr; } }
.door {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: clamp(500px, 30rem + 12vw, 700px);
  border-radius: var(--r-lg); color: #fff; text-decoration: none;
}
.door img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-k); }
#personas img { object-position: 50% 20%; }
#empresas img { object-position: 58% 30%; }
.door::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.door:hover { color: #fff; }
.door:hover img { transform: scale(1.05); }
.door__body { display: flex; flex-direction: column; gap: 12px; width: 100%; padding: clamp(24px, 1rem + 2vw, 44px); }
.door__kicker { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); }
.door__title { font-size: clamp(1.9rem, 1.35rem + 1.6vw, 2.75rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.045em; }
.door__text { max-width: 44ch; color: rgba(255, 255, 255, 0.86); }
.door__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.door__tags span { padding: 5px 11px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.16); font-size: var(--fs-xs); font-weight: 500; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.door__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.22); font-weight: 500; }
.door__foot .round-btn { background: #fff; color: var(--brand-800); }
.door:hover .round-btn { transform: rotate(-45deg); }

/* ---------- Soluciones destacadas ---------- */
.head-row__note { max-width: 330px; color: var(--muted); }

/* ---------- Por qué elegir Angopi ---------- */
.feature__photo { overflow: hidden; border-radius: var(--r-lg); }
.feature__photo img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% center; }
.how { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.how__title { margin-bottom: 18px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Recursos ---------- */
.resources__title { margin: 32px 0 6px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.resources__title:first-child { margin-top: 0; }
.list--plain a { grid-template-columns: 1fr auto; }

/* ---------- Cierre ---------- */
.cta__channels { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; list-style: none; }
.cta__channels a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border-radius: var(--pill); border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: var(--fs-sm); font-weight: 500; color: #fff; text-decoration: none;
  transition: background-color 0.2s var(--ease);
}
.cta__channels a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease-k), transform 0.9s var(--ease-k); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .hero-in, .hero-v__media img { animation: none; }
}
@media (min-width: 960px) { #recursos .head { position: sticky; top: 120px; align-self: start; } }

/* ==========================================================================
   Ajustes: un solo azul, el del logo de Angopi (#418EF2), con negro,
   grises y blanco. Tamaños contenidos.
   ========================================================================== */
:root {
  --blue: #418ef2;
  --brand-700: #418ef2;
  --brand-800: #418ef2;
  --brand-900: #418ef2;
  --brand-950: #418ef2;
  --dark: #418ef2;
  --blue-600: #418ef2;
  --blue-700: #418ef2;
  --blue-soft: #ffffff;
  --on-dark-muted: #ffffff;
  --on-dark-dim: rgba(255, 255, 255, 0.7);

  --fs-h1: clamp(2.4rem, 1.6rem + 3vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);
  --section: clamp(4rem, 3rem + 4vw, 6.5rem);
}

/* Fondos azules lisos, sin degradados ni brillos */
.frame, .frame--plain, .card--dark { background: var(--brand-800); }
.card--blue { background: #fff; border: 1.5px solid var(--brand-800); }
.frame .dim, .card--dark .dim { color: rgba(255, 255, 255, 0.7); }

/* Portada */
.hero-v { min-height: clamp(600px, 92vh, 820px); padding: 140px 0 96px; }
.hero-v h1 { font-size: clamp(2.3rem, 1.5rem + 2.9vw, 3.9rem); line-height: 1.02; letter-spacing: -0.045em; }
.hero-v .lead { font-size: var(--fs-md); }
.hero-v__card { max-width: 260px; padding: 16px 18px; }
.hero-v__card strong { font-size: 1.4rem; }

/* Puertas con foto */
.door { min-height: clamp(420px, 22rem + 10vw, 560px); }
.door::after { background: linear-gradient(180deg, rgba(10, 10, 12, 0) 35%, rgba(10, 10, 12, 0.45) 62%, rgba(10, 10, 12, 0.82) 100%); }
.door__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.door__body { gap: 10px; padding: clamp(22px, 1rem + 1.4vw, 34px); }

/* Soluciones: tarjetas blancas con contorno */
.sols { display: grid; gap: 12px; }
@media (min-width: 640px) { .sols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sol {
  display: flex; flex-direction: column;
  padding: 22px; border-radius: var(--r);
  background: #fff; border: 1.5px solid var(--line);
  color: inherit; text-decoration: none;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.sol:hover { border-color: var(--brand-800); transform: translateY(-3px); color: inherit; }
.sol__num { font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.sol h3 { margin-top: 28px; font-size: 1.15rem; letter-spacing: -0.02em; }
.sol p { margin-top: 8px; font-size: 0.9375rem; color: var(--muted); }
.sol__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 20px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.sol__cta .icon { color: var(--blue); }
.sol__cta .icon { transition: transform 0.25s var(--ease); }
.sol:hover .sol__cta .icon { transform: translateX(3px); }
.sol-band {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  margin-top: 12px; padding: 18px 22px; border-radius: var(--r);
  background: #fff; border: 1.5px solid var(--brand-800);
  color: inherit; text-decoration: none;
}
.sol-band:hover { color: inherit; }
.sol-band__logo { width: auto; height: 28px; }
.sol-band__text { font-size: 0.9375rem; color: var(--muted); }
.sol-band__text strong { display: block; color: var(--ink); font-size: 1.05rem; }
.sol-band .round-btn { background: var(--brand-800); color: #fff; }
.sol-band:hover .round-btn { transform: rotate(-45deg); }
@media (max-width: 559px) { .sol-band { grid-template-columns: 1fr auto; } .sol-band__logo { grid-column: 1 / -1; } }

/* Por qué elegir Angopi: sin zoom en la foto */
.acc details { overflow: hidden; }

/* Historia y cierre */
.year__when { font-size: clamp(1.6rem, 1.3rem + 0.9vw, 2.1rem); }
.history__quote blockquote { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); }
.cta h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.stat__num { font-size: clamp(2.25rem, 1.9rem + 1vw, 2.75rem); }
.acc details.is-closing { box-shadow: none; border-color: var(--line); }
.acc details.is-closing summary::after {
  transform: none;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat;
}
/* La tarjeta va a la derecha para que se vea la familia de la foto */
@media (min-width: 960px) { .stage__card { margin-left: auto; } }
.hero-v h1 { font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.4rem); }
.hero-v__copy { max-width: 560px; }

/* Portada: la foto baja un poco y se funde también por arriba */
.hero-v__media { top: 64px; }
.hero-v__media::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 16%; background: linear-gradient(to bottom, var(--bg), rgba(251, 251, 251, 0)); pointer-events: none; }
@media (max-width: 959px) { .hero-v__media { top: auto; } .hero-v__media::before { display: none; } }
/* Botones y textos sobre el azul del logo: blanco y en negrita */
.btn--dark, .btn--light { font-weight: 600; }
.door__body, .door__text { color: #fff; }

/* Portada: título en tres líneas, más ancho y más cerca de la foto */
.hero-v__copy { max-width: 520px; }
.hero-v h1 { font-size: clamp(2.2rem, 1.4rem + 2.2vw, 3.2rem); }
.br-d { display: none; }
@media (min-width: 1200px) { .hero-v__copy { max-width: 700px; } .br-d { display: inline; } }

/* Títulos en Nunito Sans: formas redondas y un poco alargadas, con las puntas rectas */
:root { --font-title: "Nunito Sans", var(--font); }
h1, h2, h3, .door__title, .manifesto, .facts__num, .stat__num, .year__when, .hero-v__card strong, .footer-claim, .not-found__code, .acc summary {
  font-family: var(--font-title); font-weight: 700; letter-spacing: -0.01em; word-spacing: normal;
}
.hero-v h1, .cta h2, .sol h3, .card > h2, .page-hero h1 { letter-spacing: -0.015em; }
h3, .acc summary, .door__title, .sol h3 { font-weight: 800; letter-spacing: -0.005em; }
.manifesto { font-weight: 600; }
.hero-v h1 { font-size: clamp(2.3rem, 1.5rem + 2.4vw, 3.4rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); line-height: 1.1; }

/* ==========================================================================
   Más ancho: el contenido usa más la pantalla, con menos espacio a los lados
   ========================================================================== */
:root { --container: 1320px; --gutter: clamp(1rem, 0.4rem + 2.2vw, 2.5rem); }
.nav-bar, .mobile-menu { max-width: 1320px; }

/* ==========================================================================
   Azul del logo en los títulos y en los detalles
   ========================================================================== */
.dim { color: var(--blue); }
.frame .dim, .card--dark .dim { color: #fff; }
.eyebrow, .stage__card .eyebrow, .how__title, .resources__title { color: var(--blue); font-weight: 700; }
.frame .eyebrow { color: #fff; }
.sol__num { color: var(--blue); font-weight: 700; }
.list .round-btn { border-color: var(--blue); color: var(--blue); }
.list a:hover .round-btn { background: var(--blue); border-color: var(--blue); color: #fff; }
.person a, .person a .icon { color: var(--blue); }
.footer-col h2 { color: var(--blue); }

/* ---------- ¿Por qué elegir Angopi?: la foto manda ---------- */
.why { display: grid; gap: clamp(28px, 1.5rem + 2.5vw, 72px); align-items: center; }
@media (min-width: 960px) { .why { grid-template-columns: 1.05fr 0.95fr; } }
.why__media { position: relative; margin: 0; }
.why__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% center; border-radius: var(--r-lg); }
@media (min-width: 960px) { .why__media img { aspect-ratio: 1 / 1; } }
.why__badge {
  position: absolute; left: clamp(14px, 4%, 28px); bottom: clamp(14px, 4%, 28px);
  max-width: min(360px, calc(100% - 28px)); padding: 20px 22px;
  border-radius: var(--r); background: var(--blue); color: #fff;
}
.why__badge strong { display: block; font-family: var(--font-title); font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); font-weight: 800; line-height: 1.15; color: #fff; }
.why__badge span { display: block; margin-top: 8px; font-size: var(--fs-sm); line-height: 1.45; color: #fff; }
.why__body .head { margin-bottom: 26px; }
.acc--num summary { justify-content: flex-start; gap: 14px; }
.acc--num summary::after { margin-left: auto; }
.acc__n { min-width: 26px; font-family: var(--font-title); font-size: var(--fs-sm); font-weight: 800; color: var(--blue); }
.acc--num details { position: relative; }
.acc--num details[open]::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--blue); }

/* Así te acompañamos: pasos con número azul y una línea que los une */
.how { margin-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); }
.how__steps { position: relative; display: grid; gap: 28px; list-style: none; }
@media (min-width: 640px) { .how__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .how__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .how__steps::before { content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 2px; background: var(--line-strong); }
}
.how__steps li { position: relative; }
.how__n { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--font-title); font-weight: 800; box-shadow: 0 0 0 6px var(--bg); }
.how__steps h3 { margin-top: 18px; font-size: 1.15rem; }
.how__steps p { margin-top: 6px; max-width: 30ch; font-size: 0.9375rem; color: var(--muted); }

/* ---------- Nuestra historia: foto fija de fondo, en color, con la tarjeta sobre la luz de la ventana ---------- */
.stage--light { background: var(--bg); }
.stage--light .stage__media img { filter: none; object-position: left center; }
.stage--light .stage__media::after { background: linear-gradient(90deg, rgba(251, 251, 251, 0) 35%, rgba(251, 251, 251, 0.5) 62%, rgba(251, 251, 251, 0.75) 100%); }
@media (max-width: 959px) { .stage--light .stage__media::after { background: rgba(251, 251, 251, 0.45); } }
.history-card { max-width: 620px; }
.history-card h2 { font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.4rem); line-height: 1.1; }
.timeline { display: grid; margin-top: 26px; list-style: none; }
.timeline li { position: relative; padding: 0 0 18px 28px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }
.timeline li::after { content: ""; position: absolute; left: 5px; top: 24px; bottom: 2px; width: 2px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline__when { font-family: var(--font-title); font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.timeline p { margin-top: 4px; font-size: 0.9375rem; color: var(--muted); }
.history-card__quote { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--font-title); font-size: 1.1rem; font-weight: 800; line-height: 1.35; color: var(--ink); }
.history-card__quote cite { display: block; margin-top: 6px; font-family: var(--font); font-size: var(--fs-sm); font-style: normal; font-weight: 400; color: var(--muted); }

/* ---------- Cierre: título siempre en dos líneas ---------- */
.cta .cta__title { max-width: none; font-size: clamp(1.45rem, 0.75rem + 3.3vw, 3rem); line-height: 1.1; }
.cta__line { display: block; white-space: nowrap; }

/* ==========================================================================
   Aliados: franja blanca que sube desde abajo y queda a mitad de camino,
   con los logos pasando sin parar
   ========================================================================== */
.allies-bar {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: clamp(16px, 1rem + 1.5vw, 36px);
  width: min(calc(100% - 2 * var(--gutter)), 1320px);
  margin: -46px auto 0; padding: 18px clamp(18px, 1rem + 1vw, 32px);
  border-radius: var(--r-lg); background: #fff;
  box-shadow: 0 24px 60px -30px rgba(10, 10, 12, 0.35);
  animation: rise 1s var(--ease-k) 0.5s both;
}
.allies-bar__label { flex: none; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.marquee { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track .logos__row { flex-wrap: nowrap; justify-content: flex-start; gap: 0; }
.marquee__track .logos__row li { flex: none; padding-inline: clamp(22px, 1rem + 1.5vw, 40px); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 639px) { .allies-bar { margin-top: -36px; padding-block: 14px; } .allies-bar__label { display: none; } }

/* ==========================================================================
   Seguros y soluciones: carrusel con todos los servicios
   ========================================================================== */
.services { padding-top: clamp(4.5rem, 3.5rem + 3vw, 6.5rem); }
.services .head { margin-bottom: 24px; }
.services__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.services__bar[hidden] { display: none; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--pill); background: #fff; border: 1px solid var(--line); }
.tab { min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--pill); background: transparent; font: 600 var(--fs-sm)/1 var(--font); color: var(--ink-2); cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--blue); color: #fff; }
.services__arrows { display: flex; gap: 8px; }
.arrow { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--blue); background: #fff; color: var(--blue); cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease); }
.arrow:hover { background: var(--blue); color: #fff; }
.arrow:disabled { opacity: 0.35; cursor: default; background: #fff; color: var(--blue); }
.arrow--back { transform: rotate(180deg); }
.services__panel[hidden] { display: none; }
.services__label { margin-top: 18px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.has-tabs .services__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* La fila arranca alineada con el contenido y se puede deslizar hasta el borde de la pantalla */
.track {
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2));
  display: flex; gap: clamp(12px, 0.5rem + 0.8vw, 18px);
  list-style: none; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 22px var(--edge) 28px;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.track > li { flex: none; width: clamp(240px, 70vw, 300px); scroll-snap-align: start; }
.svc {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end; aspect-ratio: 3 / 4;
  border-radius: var(--r-lg); color: #fff; text-decoration: none;
  box-shadow: 0 1px 2px rgba(10, 10, 12, 0.06);
  transition: transform 0.45s var(--ease-k), box-shadow 0.45s var(--ease-k);
}
.svc img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.svc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 10, 12, 0) 38%, rgba(10, 10, 12, 0.5) 64%, rgba(10, 10, 12, 0.85) 100%); }
.svc:hover { color: #fff; }
.svc__body { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 22px; }
.svc__kicker { align-self: flex-start; padding: 5px 11px; border-radius: var(--pill); background: var(--blue); font-size: var(--fs-xs); font-weight: 700; }
.svc__title { font-family: var(--font-title); font-size: 1.3rem; font-weight: 800; line-height: 1.15; }
.svc__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: var(--fs-sm); font-weight: 600; }
.svc__cta .icon { transition: transform 0.25s var(--ease); }
.svc:hover .svc__cta .icon { transform: translateX(4px); }

/* ==========================================================================
   Tarjetas que suben al pasar el mouse
   ========================================================================== */
@media (hover: hover) {
  .svc:hover { transform: translateY(-10px); box-shadow: 0 28px 50px -24px rgba(10, 10, 12, 0.45); }
  .person, .how__steps li, .acc details, .timeline li { transition: transform 0.4s var(--ease-k), box-shadow 0.4s var(--ease-k); }
  .person:hover { transform: translateY(-8px); box-shadow: 0 24px 40px -26px rgba(10, 10, 12, 0.35); }
  .how__steps li:hover { transform: translateY(-6px); }
  .acc details:hover { transform: translateY(-3px); }
  .stage__card, .why__media { transition: transform 0.5s var(--ease-k); }
  .why__media:hover { transform: translateY(-6px); }
}

/* Nuestra historia: el mismo azul que la foto de «Somos Angopi» */
.stage--light { background: var(--brand-800); }
.stage--light .stage__media img { filter: grayscale(1) contrast(1.05); object-position: left center; }
.stage--light .stage__media::after { background: rgba(65, 142, 242, 0.78); }
@media (max-width: 959px) { .stage--light .stage__media::after { background: rgba(65, 142, 242, 0.78); } }
@media (prefers-reduced-motion: reduce) { .marquee__track, .allies-bar { animation: none; } }
.svc__title { font-size: 1.15rem; line-height: 1.2; }

/* Equipo centrado: tarjetas que llenan la fila y contenido al centro */
#equipo .team { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
#equipo .person { display: flex; flex-direction: column; align-items: center; text-align: center; }
.team-cta { display: flex; justify-content: center; margin-top: 28px; }

/* Encuadre de las fotos horizontales dentro de las tarjetas verticales */
.svc img[alt^="Una familia con abuelos"] { object-position: 42% center; }
.svc img[alt^="Un florista"] { object-position: 38% center; }

/* Flechas del carrusel a los lados de las fotos */
.services__stage { --edge: max(var(--gutter), calc((100vw - var(--container)) / 2)); position: relative; }
.services__stage .arrow {
  position: absolute; z-index: 2; top: calc(50% - 3px); transform: translateY(-50%);
  width: 52px; height: 52px; border: 0; background: #fff; color: var(--blue);
  box-shadow: 0 10px 28px -10px rgba(10, 10, 12, 0.45);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), opacity 0.25s var(--ease);
}
.services__stage .arrow:hover { background: var(--blue); color: #fff; }
.services__stage .arrow:disabled { opacity: 0; pointer-events: none; }
.services__stage .arrow--prev { left: max(8px, calc(var(--edge) - 26px)); }
.services__stage .arrow--next { right: max(8px, calc(var(--edge) - 26px)); }
.services__stage .arrow .icon { width: 20px; height: 20px; }
html:not(.has-tabs) .services__stage .arrow { display: none; }
@media (max-width: 639px) { .services__stage .arrow { width: 42px; height: 42px; } }
.svc img[alt^="Un profesional independiente"] { object-position: 62% center; }
/* Carrusel de punta a punta: las tarjetas ocupan todo el ancho de la pantalla,
   con el mismo margen de 10 px que los marcos azules */
.track { --edge: 10px; padding-inline: 10px; scroll-padding-inline: 10px; }
.services__stage .arrow--prev { left: 26px; }
.services__stage .arrow--next { right: 26px; }
/* El carrusel avanza solo: en computador va sin "imán" para que el movimiento sea continuo;
   en pantallas táctiles las tarjetas encajan al deslizar con el dedo */
.track { scroll-snap-type: none; }
@media (hover: none) { .track { scroll-snap-type: x mandatory; } .services.is-auto .track { scroll-snap-type: none; } }
.history-card__quote .accent { color: var(--blue); }
/* Los íconos de descarga no giran al pasar el mouse (las flechas de enlace sí) */
.list--download a:hover .round-btn { transform: none; }
/* Somos Angopi: la foto se voltea (espejo) para que la familia quede a la derecha y la tarjeta va a la izquierda */
#respaldo .stage__media img { transform: scale(-1.3, 1.3); transform-origin: 52% 60%; }
@media (min-width: 960px) { #respaldo .stage__card { margin-left: 0; } }
