/* ==========================================================================
   Impulsa Asesores — Seguros & Fianzas
   Hoja de estilos única para portada, Fianzas y Seguros.
   Temas: body.theme-hub · body.theme-fianzas · body.theme-seguros
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --blue: #003ca6;
  --blue-deep: #06173d;
  --blue-ink: #0b1d42;
  --orange: #fc5000;
  --orange-soft: #ff7a3d;

  --bg: #f7f3ec;
  --bg-2: #efe8dc;
  --paper: #ffffff;
  --ink: #0f1b33;
  --ink-soft: #33405a;
  --ink-mute: #66708a;
  --line: rgba(15, 27, 51, 0.12);
  --accent: var(--orange);
  --accent-2: var(--blue);
  --accent-ink: #ffffff;
  --dark: #071430;
  --dark-2: #0c1d44;
  --cream: #f4efe6;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 30px 60px -30px rgba(7, 20, 48, 0.35);
  --shadow-soft: 0 18px 40px -24px rgba(7, 20, 48, 0.28);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --nav-h: 76px;
}

body.theme-seguros {
  --bg: #f2f5fa;
  --bg-2: #e4ebf5;
  --ink: #0b1d42;
  --ink-soft: #2f3f62;
  --ink-mute: #5f6c88;
  --line: rgba(11, 29, 66, 0.12);
  --accent: var(--blue);
  --accent-2: var(--orange);
}

body.theme-hub {
  --bg: var(--dark);
  --bg-2: var(--dark-2);
  --ink: var(--cream);
  --ink-soft: rgba(244, 239, 230, 0.82);
  --ink-mute: rgba(244, 239, 230, 0.6);
  --line: rgba(244, 239, 230, 0.14);
  --accent: var(--orange);
  --accent-2: #4f86ff;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  text-wrap: balance;
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); font-variation-settings: "opsz" 144, "SOFT" 100; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section--tight { padding: clamp(56px, 8vw, 96px) 0; }
.section--paper { background: var(--paper); }
.section--alt { background: var(--bg-2); }
.section--dark { background: var(--dark); color: var(--cream); --ink: var(--cream); --ink-soft: rgba(244,239,230,.82); --ink-mute: rgba(244,239,230,.6); --line: rgba(244,239,230,.14); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.section--dark .eyebrow, .theme-hub .eyebrow { color: var(--orange-soft); }

.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--ink-mute); }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(34px, 5vw, 62px); margin: 0; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: 60px; }
  .section-head--split p { margin: 0; }
}

/* ---------- 3. Buttons ---------- */
.btn {
  --b-bg: var(--accent); --b-ink: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--b-bg); color: var(--b-ink);
  font-weight: 600; font-size: 15.5px; letter-spacing: 0.01em; cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s;
  box-shadow: 0 14px 30px -16px color-mix(in srgb, var(--b-bg) 80%, transparent);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -16px color-mix(in srgb, var(--b-bg) 90%, transparent); }
.btn .arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { --b-bg: transparent; --b-ink: var(--ink); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn--light { --b-bg: #fff; --b-ink: var(--blue-ink); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); }
.link-arrow .arrow { transition: transform 0.35s var(--ease-out); }
.link-arrow:hover .arrow { transform: translateX(5px); }

/* ---------- 4. Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.nav.is-scrolled, .nav--solid {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
@supports not (backdrop-filter: blur(1px)) {
  .nav.is-scrolled, .nav--solid { background: var(--bg); }
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.nav-logo img { height: 46px; width: auto; }
.nav-links { display: none; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; display: inline-block; padding: 10px 14px; font-size: 15px; font-weight: 500; color: var(--ink-soft);
  transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-back { display: none; font-size: 13px; color: var(--ink-mute); align-items: center; gap: 6px; }
.nav-back:hover { color: var(--ink); }

.burger {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  display: inline-grid; place-items: center; cursor: pointer;
}
.theme-hub .burger { background: transparent; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s, top .3s; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { top: 0; transform: rotate(45deg); }
.nav-open .burger span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility .35s;
}
.nav-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a.mm-link {
  font-family: var(--font-display); font-size: clamp(30px, 8vw, 44px); line-height: 1.25; padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .mm-foot { margin-top: auto; display: grid; gap: 12px; font-size: 15px; color: var(--ink-soft); }
.nav-open { overflow: hidden; }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .burger, .mobile-menu { display: none; }
  .nav-back { display: inline-flex; }
}
@media (max-width: 520px) {
  .nav-logo img { height: 38px; }
  .nav-actions .btn { display: none; }
}

/* ---------- 5. Reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Defensa: nunca ocultar textos con split */
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 6. Hero (sitios de servicio) ---------- */
.hero {
  position: relative; padding: calc(var(--nav-h) + clamp(32px, 6vw, 72px)) 0 clamp(56px, 8vw, 100px);
  min-height: 100svh; display: flex; align-items: center; overflow: clip;
}
.hero-grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { font-size: clamp(42px, 6.2vw, 84px); margin-bottom: 26px; }
.hero .lead { margin-bottom: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-mute); }
.hero-meta strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--ink); line-height: 1.1; }

.hero-figure { position: relative; }
.hero-figure .frame {
  position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow);
}
.hero-figure .frame img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.hero-figure .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,20,48,.45)); }
.float-card {
  position: absolute; left: -6%; bottom: 8%; z-index: 2;
  background: var(--paper); border-radius: 18px; padding: 18px 22px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px; max-width: 290px; animation: bob 6s ease-in-out infinite;
}
.float-card .ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); flex: none; }
.float-card b { display: block; font-size: 15px; line-height: 1.3; }
.float-card span { font-size: 13px; color: var(--ink-mute); line-height: 1.35; display: block; }
.float-card--top { left: auto; right: -5%; top: 9%; bottom: auto; animation-delay: -3s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 979px) {
  .hero { min-height: auto; }
  .hero-figure .frame { aspect-ratio: 5 / 4; }
  .float-card { left: 12px; bottom: -22px; }
  .float-card--top { display: none; }
}

/* Halo decorativo */
.halo {
  position: absolute; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 65%);
  filter: blur(20px); pointer-events: none; z-index: -1;
}

/* ---------- 7. Page header (interiores) ---------- */
.page-hero {
  position: relative; padding: calc(var(--nav-h) + clamp(48px, 8vw, 110px)) 0 clamp(48px, 7vw, 90px);
  overflow: clip;
}
.page-hero h1 { font-size: clamp(42px, 6.6vw, 88px); max-width: 16ch; }
.page-hero .lead { margin-top: 10px; }
.crumbs { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-mute); margin-bottom: 26px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { opacity: .5; }
.page-hero--image .container { display: grid; gap: 48px; align-items: end; }
@media (min-width: 980px) { .page-hero--image .container { grid-template-columns: 1.2fr 0.8fr; } }
.page-hero-img { border-radius: 24px; overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-soft); }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 8. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); padding: clamp(24px, 3.5vw, 40px); }
.section--paper .stat { background: var(--paper); }
.stat .num { font-family: var(--font-display); font-size: clamp(44px, 5.4vw, 72px); line-height: 1; color: var(--ink); display: flex; align-items: baseline; gap: 4px; }
.stat .num small { font-size: 0.42em; color: var(--accent); font-family: var(--font-body); font-weight: 600; }
.stat p { margin: 14px 0 0; font-size: 15px; color: var(--ink-soft); line-height: 1.5; }

/* ---------- 9. Cards ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.4s;
  transform-style: preserve-3d;
}
.card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.card .card-num { font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--accent); }
.card h3 { font-size: clamp(24px, 2.4vw, 30px); margin: 0; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.card .link-arrow { margin-top: auto; padding-top: 10px; }
.card .ico-lg { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.card--dark { background: var(--dark); color: var(--cream); border-color: transparent; }
.card--dark p { color: rgba(244,239,230,.78); }
.card--accent { background: var(--accent); color: #fff; border-color: transparent; }
.card--accent p { color: rgba(255,255,255,.88); }
.card--accent .card-num, .card--accent .link-arrow { color: #fff; }
a.card { cursor: pointer; }

@media (min-width: 980px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

/* Feature list (iconos pequeños) */
.features { display: grid; gap: 34px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.feature { display: grid; gap: 10px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.feature h3 { font-family: var(--font-body); font-weight: 600; font-size: 18px; letter-spacing: 0; margin: 6px 0 0; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- 10. Split (imagen + texto) ---------- */
.split { display: grid; gap: clamp(40px, 6vw, 90px); align-items: center; }
@media (min-width: 980px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--rev .split-media { order: 2; }
}
.split-media { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-soft); }
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.split-media:hover img { transform: scale(1.04); }
.split-media--wide { aspect-ratio: 5/4; }
.split h2 { font-size: clamp(34px, 4.6vw, 58px); }

/* ---------- 11. Steps ---------- */
.steps { display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); border-top: 0; } }
.step { padding: 34px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
@media (min-width: 900px) {
  .step { padding: 40px 36px 10px 0; border-bottom: 0; border-top: 1px solid var(--line); }
  .step + .step { padding-left: 36px; border-left: 1px solid var(--line); }
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-style: italic; font-size: 46px; line-height: 1; color: var(--accent);
}
.step h3 { font-family: var(--font-body); font-weight: 600; font-size: 20px; letter-spacing: 0; margin: 8px 0 0; }
.step p { margin: 0; color: var(--ink-soft); }

/* ---------- 12. Logo marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 8px 0; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: clamp(40px, 10vw, 140px); z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--mq-bg, var(--paper)), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--mq-bg, var(--paper)), transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee var(--mq-speed, 46s) linear infinite; }
.marquee--reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: clamp(28px, 4vw, 56px); padding-right: clamp(28px, 4vw, 56px); }
.marquee-group img { height: clamp(48px, 5vw, 64px); width: auto; filter: grayscale(1); opacity: .62; transition: filter .4s, opacity .4s; }
.marquee-group img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.logo-grid figure { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; display: grid; place-items: center; padding: 14px; aspect-ratio: 2.2 / 1; }
.logo-grid img { max-height: 54px; width: auto; }

/* ---------- 13. CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: clamp(24px, 3vw, 36px);
  background: var(--dark); color: var(--cream); padding: clamp(44px, 7vw, 96px) clamp(26px, 6vw, 88px);
  display: grid; gap: 30px; align-items: end; isolation: isolate;
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { font-size: clamp(34px, 4.8vw, 62px); margin: 0; color: var(--cream); }
.cta-band h2 em { color: var(--orange-soft); }
.theme-seguros .cta-band h2 em { color: #8fb3ff; }
.cta-band p { color: rgba(244,239,230,.78); margin: 14px 0 0; max-width: 52ch; }
.cta-band .mesh { z-index: -1; opacity: .9; }

/* Mesh gradient animado (@property) */
@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.mesh {
  position: absolute; inset: -20%; pointer-events: none;
  background:
    radial-gradient(40% 50% at 15% 20%, rgba(252, 80, 0, 0.55), transparent 60%),
    radial-gradient(45% 55% at 85% 30%, rgba(0, 60, 166, 0.75), transparent 60%),
    radial-gradient(50% 50% at 60% 90%, rgba(79, 134, 255, 0.35), transparent 60%),
    conic-gradient(from var(--mesh-angle) at 50% 50%, #071430, #0c1d44, #1a1240, #071430);
  filter: blur(60px);
  animation: meshSpin 28s linear infinite;
}
@keyframes meshSpin { to { --mesh-angle: 360deg; } }
.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- 14. Footer ---------- */
.footer { background: var(--dark); color: rgba(244,239,230,.75); padding: clamp(64px, 8vw, 110px) 0 32px; font-size: 15px; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 44px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer h4 { font-family: var(--font-body); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(244,239,230,.5); font-weight: 600; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 20px; }
.footer-brand .tagline { font-family: var(--font-display); font-size: 26px; line-height: 1.2; color: var(--cream); max-width: 18ch; }
.footer-brand .tagline em { color: var(--orange-soft); }
.footer .phone { font-family: var(--font-display); font-size: 28px; color: var(--cream); display: inline-block; margin-bottom: 4px; }
.socials { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(244,239,230,.2); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.socials a:hover { background: var(--orange); border-color: var(--orange); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(244,239,230,.12); display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; font-size: 13.5px; color: rgba(244,239,230,.5); }
.footer-logo-chip { display: inline-block; background: #fff; border-radius: 14px; padding: 10px 14px; margin-bottom: 20px; }
.footer-logo-chip img { height: 40px; margin: 0; }

/* ---------- 15. Offices ---------- */
.offices { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.office {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  display: grid; gap: 12px; align-content: start; transition: box-shadow .5s var(--ease-out), transform .5s var(--ease-out);
}
.office:hover { box-shadow: var(--shadow-soft); transform: translateY(-4px); }
.office .state { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.office h3 { font-size: 30px; margin: 0; }
.office address { font-style: normal; color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }
.office .o-links { display: grid; gap: 8px; font-size: 15px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 4px; }
.office .o-links a { display: inline-flex; align-items: center; gap: 10px; word-break: break-word; }
.office .o-links a:hover { color: var(--accent); }
.office .o-links svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
.office--hq { background: var(--dark); color: var(--cream); border-color: transparent; }
.office--hq address, .office--hq .o-links { color: rgba(244,239,230,.8); border-color: rgba(244,239,230,.14); }
.office--hq .state { color: var(--orange-soft); }

.region-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; background: var(--paper); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- 16. Tabs (requisitos) ---------- */
.tabs { display: inline-flex; padding: 6px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); gap: 4px; margin-bottom: 36px; flex-wrap: wrap; }
.tab { border: 0; background: transparent; padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--ink-soft); transition: background .3s, color .3s; }
.tab[aria-selected="true"] { background: var(--accent); color: #fff; }
.tab-panel[hidden] { display: none; }
.req-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .req-grid { grid-template-columns: 1.15fr 0.85fr; } }
.req-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3.5vw, 44px); }
.req-box h3 { font-size: 28px; }
.req-list { list-style: none; margin: 0; padding: 0; counter-reset: req; display: grid; gap: 0; }
.req-list li { counter-increment: req; display: grid; grid-template-columns: 44px 1fr; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink-soft); }
.req-list li:last-child { border-bottom: 0; }
.req-list li::before { content: counter(req, decimal-leading-zero); font-family: var(--font-display); font-style: italic; color: var(--accent); font-size: 20px; line-height: 1.3; }
.req-list li small { display: block; color: var(--ink-mute); font-size: 14px; margin-top: 4px; }
.req-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.note { font-size: 14.5px; color: var(--ink-mute); border-left: 2px solid var(--accent); padding: 4px 0 4px 16px; margin-top: 26px; }

/* ---------- 17. Accordion (details) ---------- */
.accordion { display: grid; gap: 12px; }
.acc { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.acc summary { list-style: none; cursor: pointer; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .plus { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; transition: transform .4s var(--ease-out), background .3s, color .3s; }
.acc[open] summary .plus { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: transparent; }
.acc .acc-body { padding: 0 28px 28px; color: var(--ink-soft); }
.acc .acc-body ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }

/* ---------- 18. Product detail blocks ---------- */
.prod { display: grid; gap: clamp(28px, 4vw, 64px); padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 20px); }
@media (min-width: 980px) { .prod { grid-template-columns: 0.8fr 1.2fr; } }
.prod-head .card-num { font-size: 13px; letter-spacing: .14em; font-weight: 600; color: var(--accent); display: block; margin-bottom: 14px; }
.prod-head h2 { font-size: clamp(34px, 4.4vw, 54px); margin-bottom: 14px; }
.prod-head .tag { font-family: var(--font-display); font-style: italic; font-size: 21px; color: var(--ink-soft); line-height: 1.35; }
.prod-body { color: var(--ink-soft); font-size: 17px; }
.prod-body h3 { font-family: var(--font-body); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); font-weight: 600; margin: 30px 0 14px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; }
.check-list li::before { content: ""; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fc5000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/14px no-repeat; }
.theme-seguros .check-list li::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23003ca6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.check-list--cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px 28px; }
.def-list { display: grid; gap: 18px; margin: 0; }
.def-list div { padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.def-list dt { font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.def-list dd { margin: 0; font-size: 16px; }

.subnav { position: sticky; top: var(--nav-h); z-index: 50; background: color-mix(in srgb, var(--bg) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 12px 0; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: inline-block; padding: 8px 16px; border-radius: 999px; font-size: 14.5px; white-space: nowrap; color: var(--ink-soft); border: 1px solid transparent; transition: border-color .3s, color .3s; }
.subnav a:hover { color: var(--ink); border-color: var(--line); }

/* ---------- 19. Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 700px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--paper); font-size: 16px; transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #c62828; }
.field .err { font-size: 13px; color: #c62828; min-height: 0; }
.form-note { font-size: 13.5px; color: var(--ink-mute); }
.form-success { display: none; padding: 18px 20px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 10%, var(--paper)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); font-size: 15px; }
.form-success.is-on { display: block; }

.contact-grid { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }
.contact-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 48px); }
.contact-ways { display: grid; gap: 14px; }
.contact-way { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease-out); }
.contact-way:hover { border-color: var(--accent); transform: translateX(4px); }
.contact-way .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); flex: none; }
.contact-way small { display: block; font-size: 13px; color: var(--ink-mute); }
.contact-way b { font-weight: 600; font-size: 17px; word-break: break-word; }

/* ---------- 20. Cotizador ---------- */
.calc { display: grid; gap: 22px; }
@media (min-width: 1000px) { .calc { grid-template-columns: 1fr 1fr; align-items: start; } }
.calc-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 42px); }
.calc-panel h2 { font-size: clamp(26px, 3vw, 34px); }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 6px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); gap: 4px; }
.seg button { border: 0; background: transparent; border-radius: 12px; padding: 12px 10px; font-weight: 600; font-size: 14.5px; cursor: pointer; color: var(--ink-soft); }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 6px 16px -10px rgba(7,20,48,.4); }
.money { position: relative; }
.money span { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-mute); font-weight: 600; }
.money input { padding-left: 38px; font-size: 20px; font-weight: 600; }
.range-field { display: grid; gap: 10px; }
.range-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 600; }
.range-head output { font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--accent); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) var(--p, 0%), var(--line) var(--p, 0%)); outline-offset: 6px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 4px 12px rgba(7,20,48,.25); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); cursor: pointer; }
.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; font-size: 15.5px; }
.toggle input { width: 22px; height: 22px; accent-color: var(--accent); }
.calc-result { background: var(--dark); color: var(--cream); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 42px); position: relative; overflow: hidden; isolation: isolate; }
@media (min-width: 1000px) { .calc-result { position: sticky; top: calc(var(--nav-h) + 20px); } }
.calc-result .mesh { z-index: -1; opacity: .55; }
.calc-total { font-family: var(--font-display); font-size: clamp(42px, 5.6vw, 68px); line-height: 1; margin: 8px 0 6px; }
.calc-total-label { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: rgba(244,239,230,.6); }
.calc-table { width: 100%; border-collapse: collapse; margin-top: 26px; font-size: 14.5px; }
.calc-table th, .calc-table td { padding: 10px 0; text-align: right; border-bottom: 1px solid rgba(244,239,230,.12); font-weight: 400; }
.calc-table th:first-child, .calc-table td:first-child { text-align: left; color: rgba(244,239,230,.7); }
.calc-table thead th { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,239,230,.5); }
.calc-table tr.total td { font-weight: 600; color: #fff; border-bottom: 0; padding-top: 14px; }
.calc-disclaimer { font-size: 13px; color: rgba(244,239,230,.6); margin-top: 22px; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.is-hidden { display: none !important; }

/* ---------- 21. Portada (hub) ---------- */
.hub-hero { position: relative; min-height: 100svh; padding: calc(var(--nav-h) + clamp(28px, 5vw, 56px)) 0 clamp(28px, 4vw, 48px); display: flex; flex-direction: column; overflow: clip; isolation: isolate; }
.hub-hero .mesh { z-index: -2; opacity: .85; }
.hub-hero .grain { z-index: -1; }
.hub-intro { display: grid; gap: 18px; margin-bottom: clamp(30px, 4.5vw, 56px); }
@media (min-width: 980px) { .hub-intro { grid-template-columns: 1.3fr 0.7fr; align-items: end; gap: 60px; } }
.hub-intro h1 { font-size: clamp(38px, 5.2vw, 76px); margin: 0; color: var(--cream); }
.hub-intro h1 em { color: var(--orange-soft); }
.hub-intro p { color: rgba(244,239,230,.78); margin: 0; font-size: clamp(17px, 1.4vw, 19px); }
.gateway { display: grid; gap: 16px; flex: 1; }
@media (min-width: 900px) {
  .gateway { grid-template-columns: 1fr 1fr; min-height: 56vh; transition: grid-template-columns .9s var(--ease-out); }
  .gateway:has(.gate--fianzas:hover) { grid-template-columns: 1.25fr 0.75fr; }
  .gateway:has(.gate--seguros:hover) { grid-template-columns: 0.75fr 1.25fr; }
}
.gate {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px;
  border-radius: clamp(22px, 3vw, 34px); overflow: hidden; padding: clamp(26px, 3.5vw, 44px); padding-top: 120px; color: #fff; isolation: isolate;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.6);
}
.gate > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease-out), filter 1s; filter: saturate(.9); }
.gate::before { content: ""; position: absolute; inset: 0; z-index: -1; transition: opacity .8s; }
.gate--fianzas::before { background: linear-gradient(180deg, rgba(7,20,48,.05) 0%, rgba(7,20,48,.35) 40%, rgba(140,40,0,.92) 100%); }
.gate--seguros::before { background: linear-gradient(180deg, rgba(7,20,48,.05) 0%, rgba(7,20,48,.35) 40%, rgba(0,34,100,.95) 100%); }
.gate:hover > img { transform: scale(1.06); filter: saturate(1.05); }
.gate-top { position: absolute; top: clamp(22px, 3vw, 34px); left: clamp(26px, 3.5vw, 44px); right: clamp(26px, 3.5vw, 44px); display: flex; justify-content: space-between; align-items: center; }
.gate-logo { background: #fff; border-radius: 14px; padding: 8px 12px; }
.gate-logo img { height: 34px; width: auto; }
.gate-index { font-family: var(--font-display); font-style: italic; font-size: 20px; opacity: .85; }
.gate h2 { font-size: clamp(54px, 7vw, 104px); margin: 0 0 12px; color: #fff; }
.gate p { max-width: 40ch; color: rgba(255,255,255,.88); margin: 0 0 22px; font-size: 16.5px; }
.gate-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.gate-tags span { padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); font-size: 13px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gate-cta { display: inline-flex; align-items: center; gap: 14px; font-weight: 600; font-size: 16px; }
.gate-cta .circle { width: 54px; height: 54px; border-radius: 50%; background: #fff; color: var(--dark); display: grid; place-items: center; transition: transform .5s var(--ease-out); }
.gate:hover .gate-cta .circle { transform: translateX(6px) rotate(-45deg); }
.gate--fianzas .gate-cta .circle { color: var(--orange); }
.gate--seguros .gate-cta .circle { color: var(--blue); }

.hub-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 28px; margin-top: clamp(22px, 3vw, 34px); font-size: 14.5px; color: rgba(244,239,230,.7); }
.hub-foot a:hover { color: #fff; }
.hub-foot .about-link { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 999px; border: 1px solid rgba(244,239,230,.25); color: var(--cream); font-weight: 600; transition: background .3s, border-color .3s; }
.hub-foot .about-link:hover { background: var(--cream); color: var(--dark); }
.hub-contact { display: flex; flex-wrap: wrap; gap: 10px 26px; }

.theme-hub .nav-logo-chip { background: #fff; border-radius: 14px; padding: 7px 12px; display: inline-block; }
.theme-hub .nav-logo-chip img { height: 38px; }
.theme-hub .nav.is-scrolled { background: color-mix(in srgb, var(--dark) 88%, transparent); }
.theme-hub .mobile-menu { background: var(--dark); }

/* ---------- 22. Nosotros ---------- */
.values { display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
@media (min-width: 800px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .values { grid-template-columns: repeat(4, 1fr); } }
.value { background: var(--paper); padding: clamp(28px, 3vw, 40px); display: grid; gap: 14px; align-content: start; min-height: 260px; }
.value .v-num { font-family: var(--font-display); font-style: italic; font-size: 44px; color: var(--accent); line-height: 1; }
.value h3 { font-size: 26px; margin: 0; }
.value p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.mv { display: grid; gap: 20px; }
@media (min-width: 980px) { .mv { grid-template-columns: 0.9fr 1.1fr; } }
.mv-card { border-radius: var(--radius); padding: clamp(30px, 4vw, 54px); position: relative; overflow: hidden; isolation: isolate; }
.mv-card h3 { font-size: clamp(30px, 3.4vw, 42px); }
.mv-card--mision { background: var(--orange); color: #fff; }
.mv-card--mision p { font-family: var(--font-display); font-size: clamp(22px, 2.3vw, 30px); line-height: 1.3; color: #fff; }
.mv-card--vision { background: var(--paper); border: 1px solid var(--line); }
.mv-card--vision ol { margin: 0; padding: 0; list-style: none; counter-reset: v; display: grid; gap: 14px; }
.mv-card--vision li { counter-increment: v; display: grid; grid-template-columns: 40px 1fr; color: var(--ink-soft); }
.mv-card--vision li::before { content: counter(v, decimal-leading-zero); font-family: var(--font-display); font-style: italic; color: var(--blue); font-size: 20px; }
.quote { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 48px); line-height: 1.2; max-width: 22ch; margin: 0; }
.quote em { color: var(--accent); }

/* ---------- 23. Misceláneos ---------- */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); font-size: 13px; font-weight: 600; }
.badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 80; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45);
  transition: transform .4s var(--ease-out);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.big-quote-band { text-align: center; }
.big-quote-band .quote { margin: 0 auto; max-width: 24ch; }
.two-col-text { columns: 1; column-gap: 48px; color: var(--ink-soft); }
@media (min-width: 900px) { .two-col-text { columns: 2; } }
.pay-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.pay-strip span { font-family: var(--font-display); font-size: 30px; padding: 10px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--paper); line-height: 1; }
.pay-strip span small { font-family: var(--font-body); font-size: 12px; letter-spacing: .12em; color: var(--ink-mute); margin-left: 6px; }

/* Movimiento intrusivo: solo esto se desactiva con reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .float-card, .badge .pulse { animation: none; }
}

/* ---------- 24. Impresión (requisitos) ---------- */
@media print {
  .nav, .mobile-menu, .footer, .wa-float, .tabs, .req-actions, .page-hero .crumbs, .cta-band, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .tab-panel[hidden] { display: block !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .req-box { border: 0; padding: 0; }
  .page-hero { padding: 0 0 12pt; }
}
