/* NJ Liders · versión real: menú de seguros, páginas SEO, cifras, zonas, pie completo,
   barra de contacto en móvil y adaptación a todas las pantallas (320 px → 2560 px). */

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
html.menu-lock, html.menu-lock body { overflow: hidden; }
body { overflow-x: clip; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- cabecera y megamenú ---------- */
.nav-wrap { display: contents; }
.has-sub { position: relative; display: flex; align-items: center; gap: 2px; }
.sub-toggle { background: none; border: 0; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: inherit; cursor: pointer; padding: 0; }
.sub-toggle svg { transition: rotate .3s var(--ease); }
.has-sub.open .sub-toggle svg { rotate: 180deg; }
.mega a::after { display: none !important; }
.mega-head { display: block; font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--ink); text-decoration: none; margin-bottom: 10px; opacity: 1 !important; }
a.mega-head:hover { color: var(--blue-600); }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega li a { --sx: 50%; --sy: 50%; display: flex; gap: 10px; align-items: center; padding: 8px 10px !important; border-radius: 10px; font-size: .92rem !important; color: var(--text); opacity: 1 !important; transition: background .2s, color .2s; position: relative; }
.mega li a:hover { background: radial-gradient(160px circle at var(--sx) var(--sy), var(--blue-100), var(--bg)); color: var(--navy-800); }
.mega .mi { color: var(--blue-600); display: grid; place-items: center; flex: none; }

@media (min-width: 1081px) {
  .has-sub:hover .sub-toggle svg { rotate: 180deg; }
  .mega { position: absolute; top: calc(100% + 16px); left: 50%; translate: -50% 10px; width: min(960px, 94vw); background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 40px 80px -30px rgba(0,34,79,.35); padding: 26px; opacity: 0; visibility: hidden; transition: opacity .25s, translate .35s var(--ease), visibility .25s; color: var(--ink); }
  .mega::before { content: ""; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
  .has-sub:hover .mega, .has-sub.open .mega, .has-sub:focus-within .mega { opacity: 1; visibility: visible; translate: -50% 0; }
  .mega { width: min(1060px, 94vw); }
  .mega-inner { display: grid; grid-template-columns: 2.1fr 1fr 1fr .9fr; gap: 24px; }
  .mega li a { white-space: nowrap; }
  .mega-col:first-child ul { grid-template-columns: 1fr 1fr; column-gap: 6px; }
  .mega-col:first-child { grid-column: span 1; }
}
@media (min-width: 1081px) and (max-width: 1240px) { .nav-links { gap: 22px; } }

/* menú en móvil y tableta (hasta 1080 px) */
@media (max-width: 1080px) {
  .burger { display: block; position: relative; z-index: 2; }
  .nav-links { position: fixed; inset: 0; padding: 84px 22px 28px; background: #fff; flex-direction: column; align-items: stretch; gap: 0; transform: translateY(-102%); transition: transform .45s var(--ease); z-index: -1; color: var(--ink); overflow-y: auto; overscroll-behavior: contain; max-height: 100dvh; }
  .nav-links.open { transform: none; }
  .nav-links > li { border-bottom: 1px solid var(--line); }
  .nav-links > li.nav-cta { border: 0; }
  .nav-links a { padding: 15px 0; font-size: 1.12rem; display: block; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 18px; width: 100%; }
  .has-sub { flex-wrap: wrap; justify-content: space-between; }
  .has-sub > .sub-link { flex: 1; }
  .sub-toggle { width: 46px; height: 46px; background: var(--bg); border-radius: 12px; }
  .mega { display: none; width: 100%; padding: 4px 0 16px; }
  .has-sub.open .mega { display: block; animation: fadeUp .35s var(--ease); }
  .mega-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
  .mega-head { margin: 8px 0 6px; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-600); }
  .mega li a { padding: 9px 8px !important; font-size: .95rem !important; }
  .site-header.menu-open { background: transparent; box-shadow: none; backdrop-filter: none; }
  .site-header.menu-open .brand { position: relative; z-index: 2; }
}
@media (max-width: 420px) { .mega-inner { grid-template-columns: 1fr; } }

/* ---------- migas de pan ---------- */
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--blue-600); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- portada: el H1 lleva la palabra clave ---------- */
h1.eyebrow { font-family: var(--font); font-size: .82rem; line-height: 1.4; letter-spacing: .14em; font-weight: 600; color: var(--blue-600); }
.hero .hero-title { font-family: var(--font-display); line-height: 1.04; letter-spacing: -.03em; margin: 0; }
/* ola de luz que recorre las letras de la palabra destacada */
.ready .hero .hero-title em .ch { animation: chIn 1s var(--ease) both, glowWave 4.5s ease-in-out infinite; animation-delay: calc(var(--ci, 0) * 34ms + .1s), calc(var(--ci, 0) * 90ms + 2.2s); }
@keyframes glowWave { 0%, 30%, 100% { color: var(--blue-600); text-shadow: none; } 15% { color: #39c3f7; text-shadow: 0 0 22px rgba(7,164,230,.55); } }
.btn svg { flex: none; }
.btn.shine::after { animation: btnSheen 5s ease-in-out 2.5s infinite; }
@keyframes btnSheen { 0%, 70% { left: -130%; } 100% { left: 150%; } }

/* ---------- páginas de seguros ---------- */
.hero-sub { min-height: auto; }
.hero-sub .hero-grid { padding: 140px 0 90px; }
.hero-sub .hero-title { color: var(--navy-800); font-size: clamp(2.3rem, 5.4vw, 4.3rem); font-weight: 800; }
.hero-sub .lead { margin: 22px 0 32px; }
.hero-sub .hero-art { height: 420px; }
.hero-icon { --r: 0deg; position: absolute; inset: 0; display: grid; place-items: center; color: var(--blue); opacity: .16; z-index: -1; pointer-events: none; }
.hero-icon svg { width: min(300px, 70%); height: auto; rotate: var(--r); stroke-width: 1.1; }

.lp-intro { background: #fff; }
.lp-intro-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.lp-p { margin-top: 18px; font-size: 1.06rem; line-height: 1.75; color: var(--text); max-width: 64ch; }
.lp-cov { background: var(--bg); }
.lp-rel { background: #fff; padding-top: clamp(56px, 7vw, 90px); }

/* cifras con contador */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { --sx: 50%; --sy: 50%; position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px; display: flex; flex-direction: column; gap: 8px; transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; }
.stat::before { content: ""; position: absolute; inset: 0; background: radial-gradient(220px circle at var(--sx) var(--sy), color-mix(in srgb, var(--blue) 16%, transparent), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.stat:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--blue) 50%, #fff); box-shadow: 0 26px 40px -26px rgba(0,34,79,.35); }
.stat:hover::before { opacity: 1; }
.stat strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.3rem, 4.6vw, 3.4rem); line-height: 1; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.stat > span { color: var(--muted); font-size: .94rem; }
.lp-intro .stat:nth-child(2), .lp-intro .stat:nth-child(3) { translate: 0 18px; }
.stats-band { padding: clamp(48px, 6vw, 80px) 0; background: #fff; }
.stats-row { grid-template-columns: repeat(4, 1fr); }

/* tarjetas con enlace */
.tilt h3 a { color: inherit; text-decoration: none; }
.tilt h3 a:hover { color: var(--blue-600); }
.tilt.star h3 a:hover { color: var(--blue); }
a.stretch::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tilt .link { text-decoration: none; }
.tilt a.link { color: var(--navy-800); }
.tilt.star a.link, .tilt.star .link-q { color: #cfe0f5; }
.card-acts { display: flex; gap: 6px 20px; flex-wrap: wrap; align-items: center; margin-top: 6px; position: relative; z-index: 2; }
.card-acts .link { margin-top: 0; }
.link-q { color: var(--blue-600) !important; }
.more-link { margin-top: 34px; text-align: center; }
.more-link .btn { white-space: normal; text-align: center; }
.profile-acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* páginas relacionadas */
.rel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rel-card { --sx: 50%; --sy: 50%; position: relative; overflow: hidden; display: flex; gap: 14px; align-items: center; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--ink); font-weight: 600; line-height: 1.3; transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; min-height: 88px; }
.rel-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(200px circle at var(--sx) var(--sy), color-mix(in srgb, var(--blue) 14%, transparent), transparent 70%); opacity: 0; transition: opacity .3s; }
.rel-card:hover { transform: translateY(-5px); border-color: var(--blue); box-shadow: 0 24px 40px -26px rgba(0,34,79,.4); }
.rel-card:hover::before { opacity: 1; }
.rel-card .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--blue-100); color: var(--blue-600); display: grid; place-items: center; flex: none; position: relative; transition: background .3s, color .3s, rotate .4s var(--ease); }
.rel-card:hover .ic { background: var(--blue); color: #00182e; rotate: -8deg; }
.rel-card .rt { flex: 1; position: relative; }
.rel-card .ra { color: var(--blue-600); transition: translate .3s var(--ease); position: relative; }
.rel-card:hover .ra { translate: 5px 0; }

/* zonas */
.zones { background: radial-gradient(900px 500px at 85% 0%, color-mix(in srgb, var(--blue) 24%, transparent), transparent 70%), linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #cfe0f5; position: relative; overflow: hidden; }
.zones h2 { color: #fff; }
.zones .eyebrow { color: var(--blue); }
.zones .lp-p { color: #b7c9e3; }
.zones-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.zone-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.zone-list a { --sx: 50%; --sy: 50%; display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; text-decoration: none; font-weight: 600; transition: background .3s, border-color .3s, transform .35s var(--ease); position: relative; overflow: hidden; min-height: 64px; }
.zone-list a::before { content: ""; position: absolute; inset: 0; background: radial-gradient(180px circle at var(--sx) var(--sy), color-mix(in srgb, var(--blue) 30%, transparent), transparent 70%); opacity: 0; transition: opacity .3s; }
.zone-list a:hover { border-color: var(--blue); transform: translateY(-3px); }
.zone-list a:hover::before { opacity: 1; }
.zone-list svg { color: var(--blue); flex: none; position: relative; }
.zone-list span { position: relative; }
.zone-list small { display: block; color: #8ea3c3; font-weight: 500; font-size: .78rem; margin-top: 2px; }

/* compañías */
.companies { padding-top: clamp(56px, 7vw, 90px); padding-bottom: clamp(56px, 7vw, 90px); background: #fff; }
.companies .section-head { margin-bottom: 36px; }
.comp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.comp-grid li { --sx: 50%; --sy: 50%; display: flex; align-items: center; justify-content: center; height: 96px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; position: relative; overflow: hidden; }
.comp-grid li::before { content: ""; position: absolute; inset: 0; background: radial-gradient(140px circle at var(--sx) var(--sy), var(--blue-100), transparent 70%); opacity: 0; transition: opacity .3s; }
.comp-grid li:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); box-shadow: 0 14px 30px -18px rgba(0, 34, 79, .35); }
.comp-grid li:hover::before { opacity: 1; }
.comp-grid img { max-height: 58px; width: auto; max-width: 100%; height: auto; object-fit: contain; filter: grayscale(1); opacity: .78; transition: filter .3s, opacity .3s; position: relative; }
.comp-grid li:hover img { filter: none; opacity: 1; }
@media (hover: none) { .comp-grid img { filter: none; opacity: 1; } }

/* contacto */
.contact-list .mails a { overflow-wrap: anywhere; }
.map-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 22px; display: grid; gap: 16px; box-shadow: 0 40px 70px -46px rgba(0,34,79,.4); }
.map-card p { color: var(--text); }
.map-card .btn { justify-self: start; }
.map-art { aspect-ratio: 16/10; border-radius: 18px; position: relative; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--blue) 35%, transparent), transparent 55%), repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 34px), repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 34px), linear-gradient(150deg, var(--navy-700), var(--navy-900)); }
.map-art .pin { color: var(--blue); animation: pinBounce 2.2s var(--ease) infinite; filter: drop-shadow(0 10px 14px rgba(0,0,0,.4)); }
.map-art::after { content: ""; position: absolute; width: 18px; height: 6px; border-radius: 50%; background: rgba(7,164,230,.5); top: calc(50% + 26px); animation: pinShadow 2.2s var(--ease) infinite; }
@keyframes pinBounce { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes pinShadow { 0%, 100% { scale: 1; opacity: .8; } 50% { scale: .6; opacity: .4; } }

/* contraste suficiente (WCAG AA) */
.brand-name b { color: var(--blue-600); }
.site-header .brand-name b, .tilt.star .brand-name b { color: var(--blue-600); }

/* ---------- pie ---------- */
.site-footer { padding: clamp(48px, 6vw, 72px) 0 28px; background: #e9f1fa; color: #4a5874; }
.site-footer .brand-name b { color: #03709e; }
.site-footer .foot-links a { color: #4a5874; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; margin-bottom: 22px; border-bottom: 1px solid rgba(0,34,79,.12); }
.foot-brand p { margin: 14px 0 18px; max-width: 36ch; color: #4a5874; }
.foot-brand .brand { color: var(--ink); }
.foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact svg { flex: none; color: var(--blue-600); margin-top: 2px; }
.foot-contact a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.foot-contact a:hover { color: var(--blue-600); }
.foot-h { font-family: var(--font-display); font-weight: 700; color: var(--ink); margin: 0 0 12px; font-size: 1rem; }
.foot-h a { color: inherit; text-decoration: none; }
.foot-h a:hover { color: var(--blue-600); }
.foot-h2 { margin-top: 24px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-col li a { color: #4a5874; text-decoration: none; display: inline-block; padding: 5px 0; transition: color .2s, translate .25s var(--ease); }
.foot-col li a:hover { color: var(--ink); translate: 4px 0; }
.foot-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
/* firma «Desarrollado por AISystem» (como en Velvet) */
.site-footer { padding-bottom: 0; }
.firma { margin-top: 26px; background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); padding: 18px 0; }
.firma-in { display: flex; justify-content: center; }
.aisystem { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 16px 6px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); color: #b9c7dc; font: 500 11px/1 var(--font); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; transition: border-color .3s, color .3s, background .3s; }
.aisystem img { width: 62px; height: auto; opacity: .88; transition: opacity .3s, transform .4s var(--ease); }
@media (hover: hover) { .aisystem:hover { border-color: var(--blue); color: #fff; background: rgba(7,164,230,.1); } .aisystem:hover img { opacity: 1; transform: scale(1.06); } }

/* ---------- fotos ---------- */
.hero-art.has-photo { --px: 0; --py: 0; }
.hero-photo { position: absolute; inset: 6% 2% 8% 12%; margin: 0; border-radius: 30px; overflow: hidden; box-shadow: 0 50px 90px -40px rgba(0,34,79,.55); transform: translate(calc(var(--px) * -14px), calc(var(--py) * -14px)); transition: transform .4s var(--ease); z-index: 0; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(7,164,230,.12), transparent 40%, rgba(0,22,51,.35)); pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; animation: kenburns 16s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.hero-art.has-photo .float { z-index: 2; width: 220px; padding: 16px 18px; }
.hero-art.has-photo .float strong { font-size: 1.12rem; }
.hero-art.has-photo .float p { font-size: .84rem; }
.hero-art.has-photo .float.f1 { top: 0; left: 0; right: auto; bottom: auto; }
.hero-art.has-photo .float.f2 { display: none; }
.hero-art.has-photo .float.f3 { bottom: 0; right: -2%; left: auto; top: auto; }
.js-anim:not(.ready) .hero-photo { opacity: 0; clip-path: inset(10% 10% 10% 10% round 30px); }
.ready .hero-photo { animation: photoIn 1.2s var(--ease) .35s both; }
@keyframes photoIn { from { opacity: 0; clip-path: inset(18% 18% 18% 18% round 30px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 30px); } }

.tilt .card-img { margin: -28px -28px 10px; aspect-ratio: 16/9; overflow: hidden; border-radius: 22px 22px 0 0; background: var(--bg); }
.tilt .card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.tilt:hover .card-img img { transform: scale(1.07); }
.tilt.star .card-img { aspect-ratio: 21/9; }
.tilt .card-img + .ic { margin-top: -38px; position: relative; z-index: 1; box-shadow: 0 10px 20px -10px rgba(0,34,79,.4); background: #fff; }
.tilt.star .card-img + .ic { background: var(--navy-700); }

.profile-visual .pv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 18s ease-in-out infinite alternate; }
.profile-visual .pv-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,22,51,.1) 20%, rgba(0,22,51,.82)); }
.profile-visual .big { align-self: end; justify-self: start; text-align: left; text-shadow: 0 6px 30px rgba(0,0,0,.4); }
.profile-visual { place-items: end start; padding: 34px; }

/* ---------- barra de contacto en móvil ---------- */
.mbar { display: none; }
@media (max-width: 860px) {
  .mbar { position: fixed; left: 10px; right: 84px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 65; display: flex; gap: 8px; transform: translateY(160%); transition: transform .45s var(--ease); }
  .mbar.on { transform: none; }
  .mbar a { flex: 1; min-height: 52px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; text-decoration: none; font-size: .95rem; box-shadow: 0 16px 34px -14px rgba(0,34,79,.55); }
  .mbar-call { background: #fff; color: var(--navy-800); border: 1.5px solid var(--line); flex: .8 !important; }
  .mbar-quote { background: var(--blue); color: #00182e; }
  .site-footer { padding-bottom: 0; }
  .firma { padding-bottom: 84px !important; }
}

/* ---------- carruseles en móvil (páginas más cortas) ---------- */
.snap-dots { display: none; }
@media (max-width: 640px) {
  .snap { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; grid-template-columns: none !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: -20px; padding: 4px 20px 10px; scroll-padding-inline: 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .snap::-webkit-scrollbar { display: none; }
  .snap > * { scroll-snap-align: start; }
  .snap > .rise { opacity: 1; translate: none; }
  .snap .tilt.star { grid-column: auto; }
  .snap-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
  .snap-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--line); transition: width .3s var(--ease), background .3s; }
  .snap-dots i.on { width: 22px; background: var(--blue); }
  .rel-grid.snap { grid-auto-columns: 78%; }
}

/* ---------- páginas legales ---------- */
.legal-main { padding: clamp(110px, 14vw, 150px) 0 clamp(56px, 8vw, 110px); background: var(--bg); }
.legal-wrap { max-width: 860px; }
.legal-main h1 { font-family: var(--font-display); color: var(--ink); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin: 0 0 28px; }
.legal-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 44px); color: var(--text); }
.legal-body h2 { font-family: var(--font-display); color: var(--ink); font-size: 1.25rem; margin: 30px 0 10px; }
.legal-body h2:first-of-type { margin-top: 18px; }
.legal-body p, .legal-body li { line-height: 1.7; }
.legal-body ul { padding-left: 1.2em; }
.legal-body a { color: var(--blue-600); overflow-wrap: anywhere; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: .94rem; }
.legal-body th, .legal-body td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.legal-body th { background: var(--blue-100); color: var(--ink); }
.legal-body .upd { margin-top: 30px; font-size: .88rem; color: var(--muted); }
@media (max-width: 700px) {
  .legal-body table, .legal-body tbody, .legal-body tr, .legal-body td { display: block; width: 100%; }
  .legal-body thead { display: none; }
  .legal-body tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
  .legal-body td { border: 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
  .legal-body td:last-child { border-bottom: 0; }
  .legal-body td:first-child { background: var(--blue-100); font-weight: 600; color: var(--ink); }
}

/* ---------- adaptación a pantallas ---------- */
@media (min-width: 1700px) {
  html { font-size: 17.5px; }
  .wrap { width: min(1440px, 100% - 96px); }
  .hero-art, .hero-sub .hero-art { height: 520px; }
}
@media (min-width: 2200px) {
  html { font-size: 19px; }
  .wrap { width: min(1600px, 100% - 120px); }
}
@media (max-width: 1180px) {
  .rel-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .lp-intro-grid, .zones-grid { grid-template-columns: 1fr; gap: 36px; }
  .lp-intro .stat:nth-child(2), .lp-intro .stat:nth-child(3) { translate: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .hero-sub .hero-grid { padding: 120px 0 64px; }
  .hero-sub .hero-art { height: 280px; }
}
@media (max-width: 860px) {
  .why-item { border-bottom-color: rgba(0,34,79,.12); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 40px); }
  section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .hero-sub .hero-art { display: block; height: auto; aspect-ratio: 16/10; margin-top: 4px; }
  .hero-sub .hero-art .float { display: none; }
  .hero-sub .hero-photo, .home .hero-photo { inset: 0; border-radius: 22px; }
  .hero-sub .hero-grid { padding: 108px 0 52px; }
  .hero-sub .hero-title { font-size: clamp(1.9rem, 8.6vw, 2.5rem); }
  .hero .hero-title { font-size: clamp(2.3rem, 11vw, 2.8rem); }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-meta { margin-top: 28px; gap: 8px 18px; font-size: .86rem; }
  .stats { gap: 10px; }
  .stat { padding: 18px 16px; border-radius: 18px; }
  .stat > span { font-size: .84rem; }
  .comp-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .comp-grid li { height: 66px; padding: 8px; border-radius: 12px; }
  .comp-grid img { max-height: 40px; }
  .zone-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .zone-list a { padding: 12px; gap: 8px; font-size: .92rem; min-height: 56px; }
  .zone-list small { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .foot-col li a { padding: 7px 0; font-size: .88rem; }
  .foot { flex-direction: column; align-items: flex-start; }
  .foot-links { gap: 4px 18px; }
  .firma { padding: 14px 0; }
  .aisystem { letter-spacing: .16em; }
  summary { font-size: 1.02rem; padding: 18px 0; }
  .lp-p { font-size: 1rem; }
  /* portada más corta en móvil */
  .why-grid { grid-template-columns: 1fr 1fr !important; gap: 0 16px; }
  .why-item { padding: 18px 0 14px !important; border-right: 0 !important; }
  .why-item h3 { font-size: 1rem; margin: 8px 0 4px; }
  .why-item p { font-size: .86rem; }
  .profile-visual { aspect-ratio: 16/10; padding: 20px; border-radius: 22px; }
  .profile-visual .big { font-size: 1.9rem; }
  .profile-panel h3 { font-size: 1.5rem; }
  .checklist { margin: 16px 0 20px; gap: 8px; }
  .steps { gap: 14px; }
  .step { padding-top: 14px; }
  .step::before { font-size: 1.8rem; margin-bottom: 4px; }
  .stats-band { padding: 36px 0; }
  .marquee.outline { padding: 18px 0; }
  .contact .contact-list { gap: 16px; margin-top: 22px; }
  .home .hero { min-height: 100svh; }
  .home .hero-grid { padding: 100px 0 40px; gap: 18px; }
  .home .hero .lead { margin: 18px 0 24px; }
  .home .hero-meta { margin-top: 20px; }
  .home .hero-art { height: 220px; }
  .home .float { padding: 12px 14px; border-radius: 16px; }
  .home .float strong { font-size: 1.05rem; }
  .home .float p { display: none; }
  .home .float.f1 { top: auto; bottom: 10px; left: 10px; width: 44%; } .home .float.f2 { top: 10px; right: 10px; width: 44%; } .home .float.f3 { display: none; }
  .scroll-hint { display: none; }
  .quote-side { padding: 24px 22px; gap: 10px; }
  .quote-side ul { display: none; }
  .quote-main { padding: 22px 18px; }
  .chips { grid-template-columns: 1fr 1fr; gap: 8px; }
  .chip span { padding: 11px 12px; min-height: 46px; font-size: .92rem; }
  .foot-grid { padding-bottom: 24px; }
  .foot-col li a { padding: 4px 0; font-size: .86rem; }
  .foot-h { margin-bottom: 6px; font-size: .95rem; }
  .foot-h2 { margin-top: 16px; }
  .foot-brand p { margin: 10px 0 12px; }
  .site-footer { font-size: .86rem; }
  .quote-box { border-radius: 22px; }
  .map-card .btn { justify-self: stretch; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 28px); }
  .snap { margin-inline: -14px; padding-inline: 14px; }
  .brand-name { font-size: 1.35rem; }
  .comp-grid { grid-template-columns: repeat(2, 1fr); }
  .tabs .tab { font-size: .84rem; padding: 10px 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .hero-title em .ch, .btn.shine::after, .map-art .pin, .map-art::after { animation: none !important; }
  html { scroll-behavior: auto; }
}
