/* responsabilidad-civil.es · estilos. Look and feel inspirado en fintual.cl: blanco, paneles
   azul muy claro, Poppins 500 en titulares grandes, un solo azul de acción. */
:root {
  --ink: #1b2027;
  --ink-2: #4a5260;
  --ink-3: #6b7380;
  --blue: #005ad6;
  --blue-hover: #0049b0;
  --blue-soft: #e6effc;
  --panel: #f0f4fa;
  --panel-2: #f7faff;
  --line: #e1e7f0;
  --white: #fff;
  --green: #0a7a4a;
  --green-soft: #e3f5ec;
  --amber: #8a5a00;
  --amber-soft: #fdf1d8;
  --grey-soft: #eef0f3;
  --red: #b42318;
  --wa: #128c4b;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-full: 999px;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --f: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-xs: .8125rem; --t-sm: .9375rem; --t-md: 1.0625rem; --t-lg: 1.25rem; --t-xl: 1.5rem;
  --t-2xl: clamp(1.75rem, 1.2rem + 2vw, 2.625rem);
  --t-3xl: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);

  --shadow: 0 1px 2px rgb(27 32 39 / .04), 0 8px 24px rgb(27 32 39 / .06);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--f); font-size: var(--t-md); line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
h1, h2, h3 { font-weight: 500; line-height: 1.15; letter-spacing: -.01em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s4); }
@media (min-width: 768px) { .wrap { padding: 0 var(--s6); } }
.narrow { max-width: 820px; }
.center { text-align: center; }
.skip { position: absolute; left: var(--s4); top: -60px; background: var(--ink); color: #fff; padding: var(--s2) var(--s4); border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: var(--s2); }
.eyebrow { font-size: var(--t-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); display: flex; align-items: center; gap: var(--s2); }

/* ---------- botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5); border-radius: var(--r-sm); font: 500 var(--t-sm)/1 var(--f); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--blue-soft); color: var(--blue-hover); }
.btn-outline-white { color: #fff; border-color: rgb(255 255 255 / .6); }
.btn-outline-white:hover { border-color: #fff; color: #fff; background: rgb(255 255 255 / .08); }
.btn-lg { min-height: 56px; padding: 0 var(--s6); font-size: var(--t-md); }
.btn-sm { min-height: 44px; padding: 0 var(--s4); }
.btn-block { width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--s4); border-radius: var(--r-full); background: var(--white); border: 1px solid var(--line); color: var(--ink); font: 400 var(--t-sm) var(--f); text-decoration: none; cursor: pointer; transition: border-color .18s, background-color .18s; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip:active { background: var(--blue-soft); }

/* ---------- cabecera */
.topbar { background: var(--panel); font-size: var(--t-xs); color: var(--ink-2); }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: var(--s4); }
.topbar a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; min-height: 36px; }
@media (max-width: 600px) { .topbar-in span { display: none; } .topbar-in { justify-content: flex-end; } }
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; gap: var(--s5); min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.logo svg { width: 34px; height: 34px; }
.logo-t { font-weight: 600; font-size: 1.0625rem; line-height: 1.08; letter-spacing: -.015em; }
.logo-t b { color: var(--blue); font-weight: 600; }
.logo:hover { color: var(--ink); }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: var(--s1); margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3); border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: var(--t-sm); }
.nav a:hover { background: var(--panel); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--blue); font-weight: 500; }
.menu-btn { display: none; }
@media (max-width: 1180px) {
  .header-cta { margin-left: auto; }
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 0 11px; background: none; border: 0; border-radius: var(--r-sm); cursor: pointer; }
  .menu-btn span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: var(--s2) var(--s4) var(--s4); display: none; margin: 0; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { width: 100%; font-size: var(--t-md); }
}
@media (max-width: 420px) { .header-cta { padding: 0 var(--s3); font-size: var(--t-xs); } .logo-t { font-size: .9375rem; } .logo svg { width: 28px; height: 28px; } .header-in { gap: var(--s3); } }

/* ---------- portada */
.hero { padding: var(--s7) 0 var(--s8); }
.hero-in { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 960px) { .hero-in { grid-template-columns: 1.15fr 1fr; } .hero { padding: var(--s8) 0 var(--s9); } }
.hero h1 { font-size: var(--t-3xl); margin: var(--s4) 0 var(--s5); letter-spacing: -.025em; }
.hero-sub { font-size: var(--t-lg); color: var(--ink-2); max-width: 36ch; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.trust { list-style: none; padding: 0; margin: var(--s6) 0 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: var(--t-sm); color: var(--ink-2); }
.trust li { display: flex; align-items: center; gap: 6px; }
.trust svg { color: var(--green); }
.hero-visual { position: relative; background: var(--panel); border-radius: var(--r-lg); min-height: 460px; overflow: hidden; display: flex; }
@media (min-width: 960px) { .hero-visual { min-height: 560px; } }
.hv-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(27 32 39 / 0) 35%, rgb(27 32 39 / .45) 100%); }
.hv-cards { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s3); padding: var(--s5); }
@media (min-width: 960px) { .hv-cards { padding: var(--s6); } }
.hv-photo { object-position: 50% 80%; }
.hv-cards .hv-a { max-width: 360px; align-self: flex-start; }
@media (min-width: 960px) { .hv-cards .hv-a { align-self: flex-end; } }
.hero-visual::after { background: linear-gradient(180deg, rgb(27 32 39 / 0) 55%, rgb(27 32 39 / .4) 100%) !important; }
.hv-card { position: relative; background: #fff; border-radius: var(--r-md); padding: var(--s4) var(--s5); box-shadow: var(--shadow); max-width: 380px; }
.hv-q { align-self: flex-start; }
.hv-a { align-self: flex-end; width: 100%; }
.hv-q { max-width: 300px; }
.hv-s { align-self: flex-start; display: flex; gap: var(--s2); align-items: center; font-size: var(--t-sm); font-weight: 500; padding: var(--s3) var(--s4); }
.hv-s svg { color: var(--green); }
.hv-label { display: flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--ink-3); font-weight: 500; margin-bottom: var(--s1); }
.hv-label svg { width: 18px; height: 18px; }
.hv-big { font-size: 2rem; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.hv-big small { font-size: var(--t-sm); color: var(--ink-3); font-weight: 400; }
.hv-a p:not(.hv-big) { font-size: var(--t-sm); color: var(--ink-2); }
.hv-bar { margin-top: var(--s3); height: 8px; background: var(--panel); border-radius: var(--r-full); overflow: hidden; }
.hv-bar span { display: block; height: 100%; background: var(--blue); border-radius: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .hv-card { animation: rise .6s var(--ease) both; }
  .hv-a { animation-delay: .15s; } .hv-s { animation-delay: .3s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } }
}

.quick { margin-top: calc(var(--s7) * -1); }
.quick-card { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: var(--s6) var(--s5); display: grid; gap: var(--s5); }
@media (min-width: 860px) { .quick-card { grid-template-columns: 1fr 1.2fr; align-items: center; padding: var(--s7); } }
.quick-card h2 { font-size: var(--t-xl); }
.quick-card p { color: #c9cfd8; margin-top: var(--s2); }
.quick-form label { font-size: var(--t-sm); color: #c9cfd8; display: block; margin-bottom: var(--s2); }
.quick-row { display: flex; gap: var(--s2); flex-wrap: wrap; }
.quick-row select { flex: 1 1 220px; }
.quick-out { min-height: 1.6em; margin-top: var(--s3); font-size: var(--t-md); color: #fff !important; }
.quick-out strong { font-size: var(--t-lg); font-weight: 500; }

select, input[type="text"], input[type="email"], input[type="tel"] { width: 100%; min-height: 52px; padding: 0 var(--s4); border: 1.5px solid #c4ccd8; border-radius: var(--r-sm); font: 400 var(--t-md) var(--f); color: var(--ink); background: #fff; transition: border-color .18s; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231b2027' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; cursor: pointer; }
select:hover, input:hover { border-color: var(--ink-3); }
select:focus-visible, input:focus-visible { outline: 3px solid var(--blue-soft); border-color: var(--blue); outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--red) !important; }

.section { padding: var(--s8) 0; }
@media (min-width: 960px) { .section { padding: var(--s9) 0; } }
.soft { background: var(--panel-2); }
.section-head { margin-bottom: var(--s6); max-width: 640px; }
.section-head h2, .two h2 { font-size: var(--t-2xl); }
.section-head p { color: var(--ink-2); margin-top: var(--s3); font-size: var(--t-lg); }
.more { margin-top: var(--s5); }
.more a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; min-height: 44px; }

.pgrid { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(240px, 45%), 1fr)); }
@media (max-width: 560px) { .pgrid .pcard-b { padding: var(--s3) var(--s4) var(--s4); } .pgrid .pcard-n { font-size: .9375rem; hyphens: manual; } .pgrid .pcard-p { font-size: var(--t-xs); } }
.pcard { display: flex; flex-direction: column; border-radius: var(--r-md); background: var(--panel); color: var(--ink); text-decoration: none; overflow: hidden; transition: background-color .18s, transform .18s var(--ease), box-shadow .18s; }
.pcard-img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #dfe6f0; transition: transform .4s var(--ease); }
.pcard:hover .pcard-img { transform: scale(1.04); }
.pcard-b { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4) var(--s5) var(--s5); flex: 1; }
.pcard:hover { background: var(--blue-soft); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.pcard { min-width: 0; }
.pcard-n { font-weight: 500; font-size: var(--t-lg); line-height: 1.25; hyphens: auto; overflow-wrap: break-word; }
.pcard-p { color: var(--ink-2); font-size: var(--t-sm); margin-top: auto; }
.pcard-p strong { color: var(--ink); font-weight: 600; }
.tag { align-self: flex-start; display: inline-block; font-size: var(--t-xs); font-weight: 500; padding: 2px 10px; border-radius: var(--r-full); }
.tag-si { background: var(--green-soft); color: var(--green); }
.tag-depende { background: var(--amber-soft); color: var(--amber); }
.tag-no { background: var(--grey-soft); color: var(--ink-2); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: #fff; border-radius: var(--r-md); padding: var(--s6) var(--s5); box-shadow: var(--shadow); }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-weight: 600; margin-bottom: var(--s4); }
.steps h3 { font-size: var(--t-lg); margin-bottom: var(--s2); }
.steps p { color: var(--ink-2); }

.two { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 960px) { .two { grid-template-columns: 1fr 1.3fr; gap: var(--s8); } }
.lead-s { color: var(--ink-2); font-size: var(--t-lg); margin: var(--s4) 0 var(--s5); }

.ask { max-width: 820px; }
.ask-row { display: flex; gap: var(--s2); flex-wrap: wrap; }
.ask-row input { flex: 1 1 260px; }
.ask-sugg { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.ask-out { margin-top: var(--s5); }
.ask-ans { background: #fff; border-radius: var(--r-md); padding: var(--s5); box-shadow: var(--shadow); }
.ask-ans + .ask-ans { margin-top: var(--s3); }
.ask-ans h3 { font-size: var(--t-md); font-weight: 600; margin-bottom: var(--s2); }
.ask-ans p { color: var(--ink-2); }
.ask-ans .ask-links { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s3); font-size: var(--t-sm); }
.ask-ans .ask-links a { font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.skeleton { height: 108px; border-radius: var(--r-md); background: linear-gradient(90deg, var(--panel) 0%, #fff 50%, var(--panel) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.final { background: var(--blue); color: #fff; border-radius: var(--r-lg); padding: var(--s7) var(--s5); text-align: center; }
@media (min-width: 768px) { .final { padding: var(--s8); } }
.final h2 { font-size: var(--t-2xl); max-width: 22ch; margin: 0 auto; }
.final p { margin-top: var(--s3); color: #dbe7fb; }
.final .hero-actions { justify-content: center; }

/* ---------- páginas de contenido */
.page { padding-top: var(--s5); padding-bottom: var(--s8); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); padding: 0; margin: 0 0 var(--s6); font-size: var(--t-xs); color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: var(--s2); color: #b5bcc7; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-grid { display: grid; gap: var(--s7); }
@media (min-width: 1024px) { .page-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s8); } }
.page-head h1 { font-size: var(--t-2xl); letter-spacing: -.02em; }
.answer { font-size: var(--t-lg); line-height: 1.55; margin-top: var(--s5); color: var(--ink); padding-left: var(--s5); border-left: 3px solid var(--blue); }
.byline { margin-top: var(--s5); font-size: var(--t-xs); color: var(--ink-3); }
.page-photo { margin: var(--s6) 0 0; }
.page-photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); background: var(--panel); }
.byline a { color: var(--ink-2); }
.prose { max-width: 720px; }
.prose > * + * { margin-top: var(--s5); }
.prose h2 { font-size: var(--t-xl); margin-top: var(--s7); scroll-margin-top: 96px; }
.prose h3 { font-size: var(--t-lg); }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: var(--s2); }
.tldr { background: var(--panel); border-radius: var(--r-md); padding: var(--s5); }
.tldr ul { margin: var(--s3) 0 0; }
.tldr li { color: var(--ink) !important; }
.callout { background: var(--amber-soft); color: #5c3d00 !important; border-radius: var(--r-md); padding: var(--s4) var(--s5); }
.checks { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }
.checks > div { background: var(--panel-2); border-radius: var(--r-md); padding: var(--s5); }
.checks h3 { font-size: var(--t-md); font-weight: 600; margin-bottom: var(--s3); }
.ticks { list-style: none; padding: 0 !important; margin: 0; }
.ticks li { display: flex; gap: var(--s2); align-items: flex-start; }
.ticks svg { flex: none; color: var(--green); margin-top: 3px; }
.ticks.no svg { color: var(--ink-3); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); background: #fff; }
caption { caption-side: bottom; text-align: left; padding: var(--s3) var(--s4); font-size: var(--t-xs); color: var(--ink-3); background: var(--panel-2); }
th, td { text-align: left; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--panel); font-weight: 500; color: var(--ink); white-space: nowrap; }
tbody th { font-weight: 500; color: var(--ink); }
tbody tr:last-child > * { border-bottom: 0; }
td { color: var(--ink-2); }
@media (max-width: 560px) {
  .table-wrap { border: 0; overflow: visible; }
  table, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tbody tr { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: var(--s3); overflow: hidden; }
  tbody th { background: var(--panel); }
  td { display: flex; justify-content: space-between; gap: var(--s4); border-bottom: 1px solid var(--line); }
  td[data-label]::before { content: attr(data-label); color: var(--ink-3); flex: none; max-width: 45%; }
  tbody tr > :last-child { border-bottom: 0; }
  caption { display: block; border-radius: var(--r-md); }
}
.cta-inline { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; justify-content: space-between; background: var(--blue-soft); border-radius: var(--r-md); padding: var(--s5); }
.cta-inline p { color: var(--ink-2); }
.cta-inline .cta-inline-t { color: var(--ink); font-weight: 600; font-size: var(--t-lg); }
.cards { display: grid; gap: var(--s3); }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card-link { position: relative; display: flex; flex-direction: column; gap: var(--s1); padding: var(--s5); padding-right: var(--s8); border-radius: var(--r-md); background: var(--panel); text-decoration: none; color: var(--ink); transition: background-color .18s; }
.card-link:hover { background: var(--blue-soft); color: var(--ink); }
.card-link svg { position: absolute; right: var(--s5); top: 50%; translate: 0 -50%; color: var(--blue); }
.card-t { font-weight: 500; }
.card-d { font-size: var(--t-sm); color: var(--ink-2); }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s4); align-items: center; padding: var(--s5) 0; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); rotate: 45deg; translate: 0 -3px; transition: rotate .2s var(--ease); }
.faq-item[open] summary::after { rotate: 225deg; translate: 0 3px; }
.faq-item summary h3 { font-size: var(--t-md); font-weight: 500; color: var(--ink); }
.faq-item summary:hover h3 { color: var(--blue); }
.faq-item > div { padding: 0 0 var(--s5); }
.faq-item > div p { color: var(--ink-2); }
.sources ul { font-size: var(--t-sm); }
.glossary { margin: 0; display: grid; gap: var(--s3); }
.term { background: var(--panel-2); border-radius: var(--r-md); padding: var(--s4) var(--s5); scroll-margin-top: 96px; }
.term:target { outline: 2px solid var(--blue); }
.term dt { font-weight: 600; }
.term dd { margin: var(--s1) 0 0; color: var(--ink-2); }

.side { display: flex; flex-direction: column; gap: var(--s4); }
@media (min-width: 1024px) { .side { position: sticky; top: 96px; align-self: start; } }
.side-card { background: var(--panel); border-radius: var(--r-md); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.side-t { font-weight: 600; font-size: var(--t-lg); }
.side-card p { color: var(--ink-2); font-size: var(--t-sm); }
.ai-box { border: 1px dashed #b9c7dd; border-radius: var(--r-md); padding: var(--s5); margin: var(--s7) 0; }
.side .ai-box { margin: 0; }
.ai-box p:not(.eyebrow) { color: var(--ink-2); font-size: var(--t-sm); margin-top: var(--s2); }
.ai-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.ai-actions .chip { font-size: var(--t-xs); min-height: 40px; }

/* ---------- cotizador */
.quote-page { padding-top: var(--s5); padding-bottom: var(--s8); }
.quote { max-width: 640px; margin: 0 auto; }
.quote-head h1 { font-size: var(--t-2xl); }
.quote-head > p { color: var(--ink-2); margin-top: var(--s3); font-size: var(--t-lg); }
.progress { height: 6px; background: var(--panel); border-radius: var(--r-full); margin-top: var(--s6); overflow: hidden; }
.progress span { display: block; height: 100%; width: 20%; background: var(--blue); border-radius: inherit; transition: width .25s var(--ease); }
.progress-t { font-size: var(--t-xs); color: var(--ink-3); margin-top: var(--s2); }
.wizard { margin-top: var(--s6); }
.step { border: 0; padding: 0; margin: 0; display: none; }
.step.is-active { display: block; animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) { .step.is-active, .hv-card { animation: none; } .pcard-img { transition: none; } * { scroll-behavior: auto !important; } }
legend { font-size: var(--t-xl); font-weight: 500; margin-bottom: var(--s5); padding: 0; }
.step > label, .field label, .flabel { display: block; font-size: var(--t-sm); font-weight: 500; margin-bottom: var(--s2); }
.field-other { margin-top: var(--s4); }
.options { display: grid; gap: var(--s2); }
.options.two-col { grid-template-columns: 1fr 1fr; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; }
.opt span { display: flex; align-items: center; min-height: 56px; padding: 0 var(--s5); border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer; transition: border-color .18s, background-color .18s; }
.opt span:hover { border-color: var(--ink-3); }
.opt input:checked + span { border-color: var(--blue); background: var(--blue-soft); font-weight: 500; }
.opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.hint { font-size: var(--t-sm); color: var(--ink-2); margin-top: var(--s3); }
.rec { margin: 0 0 var(--s4); background: var(--panel); border-radius: var(--r-sm); padding: var(--s3) var(--s4); }
.rec:empty { display: none; }
.err { color: var(--red); font-size: var(--t-sm); margin-top: var(--s2); }
.wizard-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); margin-top: var(--s6); }
.wizard-nav [data-next], .wizard-nav [data-submit] { margin-left: auto; }
.result { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: var(--s6); }
.result .r-l { font-size: var(--t-sm); color: #c9cfd8; }
.result .r-p { font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem); font-weight: 500; letter-spacing: -.02em; margin: var(--s1) 0; }
.result .r-p small { font-size: var(--t-md); color: #c9cfd8; font-weight: 400; }
.result ul { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; gap: var(--s2); font-size: var(--t-sm); color: #dfe4ea; }
.result li { display: flex; gap: var(--s2); }
.result li svg { flex: none; color: #7fd1a8; margin-top: 2px; }
.lead { margin-top: var(--s6); }
.lead h2 { font-size: var(--t-xl); }
.lead > p { color: var(--ink-2); margin-top: var(--s2); }
.fields { display: grid; gap: var(--s4); margin-top: var(--s5); }
@media (min-width: 560px) { .fields { grid-template-columns: 1fr 1fr; } .fields .field:last-child { grid-column: 1 / -1; } }
.opt-l { color: var(--ink-3); font-weight: 400; }
.seg { display: flex; gap: var(--s2); flex-wrap: wrap; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4); border: 1.5px solid var(--line); border-radius: var(--r-full); cursor: pointer; font-size: var(--t-sm); }
.seg input:checked + span { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); font-weight: 500; }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.consent { display: flex; gap: var(--s3); align-items: flex-start; margin-top: var(--s5); font-size: var(--t-sm); color: var(--ink-2); cursor: pointer; }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-err { margin-top: var(--s4); background: #fdecea; color: var(--red); border-radius: var(--r-sm); padding: var(--s3) var(--s4); font-size: var(--t-sm); }
.done { text-align: center; padding: var(--s7) 0; }
.done:focus { outline: none; }
.done-ico { width: 64px; height: 64px; margin: 0 auto var(--s5); border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.done-ico svg { width: 32px; height: 32px; }
.done h2 { font-size: var(--t-2xl); }
.done p { color: var(--ink-2); margin: var(--s3) auto var(--s5); max-width: 44ch; }
.demo-note { font-size: var(--t-xs) !important; background: var(--amber-soft); color: #5c3d00 !important; border-radius: var(--r-sm); padding: var(--s3) var(--s4); }
.fine { max-width: 640px; margin: var(--s6) auto 0; font-size: var(--t-xs); color: var(--ink-3); }

/* ---------- pie */
.site-footer { background: var(--panel); padding: var(--s8) 0 var(--s7); margin-top: var(--s7); font-size: var(--t-sm); }
.home .site-footer { margin-top: 0; }
.foot-grid { display: grid; gap: var(--s6); grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .foot-brand { grid-column: auto; } }
.foot-brand p { color: var(--ink-2); margin-top: var(--s3); max-width: 36ch; }
.foot-contact a { color: var(--ink); font-weight: 500; }
.site-footer h2 { font-size: var(--t-sm); font-weight: 600; margin-bottom: var(--s3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-flex; min-height: 36px; align-items: center; color: var(--ink-2); text-decoration: none; }
.site-footer li a:hover { color: var(--blue); }
.legal { border-top: 1px solid var(--line); margin-top: var(--s7); padding-top: var(--s5); display: grid; gap: var(--s3); font-size: var(--t-xs); color: var(--ink-3); }
.legal a { color: var(--ink-2); }
/* ---------- WhatsApp flotante */
.wa { position: fixed; right: var(--s4); bottom: var(--s4); z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: var(--s3); }
@media (min-width: 768px) { .wa { right: var(--s6); bottom: var(--s6); } }
.quote-body .wa { display: none; }
.wa-btn { position: relative; display: inline-flex; align-items: center; gap: var(--s3); min-height: 60px; padding: 6px var(--s5) 6px 6px; border-radius: var(--r-full); background: linear-gradient(135deg, #17a55b 0%, #0e7a40 100%); color: #fff; text-decoration: none; box-shadow: 0 10px 28px rgb(14 122 64 / .35), 0 2px 6px rgb(0 0 0 / .12); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.wa-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 34px rgb(14 122 64 / .42), 0 2px 6px rgb(0 0 0 / .12); }
.wa-btn:active { transform: translateY(0); }
.wa-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wa-btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgb(23 165 91 / .55); pointer-events: none; }
.wa-ico { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #0e7a40; flex: none; }
.wa-ico svg { width: 28px; height: 28px; }
.wa-dot { position: absolute; right: 1px; top: 1px; width: 12px; height: 12px; border-radius: 50%; background: #3ddc84; border: 2px solid #fff; }
.wa-txt { display: flex; flex-direction: column; line-height: 1.15; }
.wa-t1 { font-size: var(--t-xs); color: #d9f5e5; }
.wa-t2 { font-size: var(--t-md); font-weight: 600; letter-spacing: -.01em; }
@media (max-width: 420px) { .wa-btn { min-height: 56px; padding-right: var(--s4); gap: var(--s2); } .wa-ico { width: 44px; height: 44px; } .wa-t1 { display: none; } }
.wa-bubble { position: relative; width: min(290px, calc(100vw - 32px)); background: #fff; border-radius: var(--r-md) var(--r-md) 6px var(--r-md); box-shadow: 0 16px 40px rgb(27 32 39 / .18), 0 2px 6px rgb(27 32 39 / .08); }
.wa-bubble::after { content: ""; position: absolute; right: 28px; bottom: -7px; width: 14px; height: 14px; background: #fff; rotate: 45deg; border-radius: 2px; }
.wa-bubble-link { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; padding: var(--s4) var(--s7) var(--s4) var(--s4); color: var(--ink); text-decoration: none; border-radius: inherit; }
.wa-bubble-link:hover { color: var(--ink); }
.wa-bubble-t { font-weight: 600; font-size: var(--t-md); }
.wa-bubble-d { font-size: var(--t-sm); color: var(--ink-2); }
.wa-bubble-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s2); font-size: var(--t-sm); font-weight: 600; color: #0e7a40; }
.wa-bubble-link:hover .wa-bubble-cta { text-decoration: underline; }
.wa-close { position: absolute; z-index: 2; top: 4px; right: 4px; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; color: var(--ink-3); cursor: pointer; }
.wa-close:hover { background: var(--panel); color: var(--ink); }
.wa-close svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .wa-btn { animation: wa-in .5s var(--ease) .6s both; }
  .wa-btn::before { animation: wa-pulse 2s ease-out 1.6s 3; }
  .wa-bubble:not([hidden]) { animation: wa-pop .35s var(--ease) both; transform-origin: 90% 100%; }
  @keyframes wa-in { from { opacity: 0; transform: translateY(16px) scale(.9); } }
  @keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgb(23 165 91 / .55); } 100% { box-shadow: 0 0 0 18px rgb(23 165 91 / 0); } }
  @keyframes wa-pop { from { opacity: 0; transform: translateY(8px) scale(.94); } }
}

/* ---------- seguro-medico-visado.com: ajustes propios
   Público de 50 a 70 años: letra base de 18px y controles grandes. */
html { font-size: 106%; }
.logo-t { font-size: 1rem; }
.checklist { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: var(--s3); }
.checklist li { display: flex; gap: var(--s3); align-items: flex-start; background: #fff; border-radius: var(--r-md); padding: var(--s4) var(--s5); box-shadow: var(--shadow); }
.prose .checklist li { background: var(--panel-2); box-shadow: none; }
.checklist svg { flex: none; margin-top: 3px; color: var(--green); }
.checklist strong { display: block; color: var(--ink); font-weight: 600; }
.checklist span { display: block; color: var(--ink-2); font-size: var(--t-sm); margin-top: 2px; }
.pgrid-3 { grid-template-columns: repeat(auto-fill, minmax(min(300px, 45%), 1fr)); }
.quick-out { color: #fff; }
.qo-t { color: #fff !important; margin: 0 0 var(--s2); }
.qo-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.qo-list li { display: flex; gap: var(--s2); color: #dfe4ea; font-size: var(--t-sm); }
.qo-list svg { flex: none; color: #7fd1a8; margin-top: 2px; }
.qo-link { display: inline-flex; min-height: 44px; align-items: center; color: #9cc3ff; font-weight: 500; }
.qo-link:hover { color: #fff; }
.people { display: grid; gap: var(--s4); }
.person label { display: block; font-size: var(--t-sm); font-weight: 500; margin-bottom: var(--s2); }
.person-row { display: flex; gap: var(--s2); }
.person-row input { max-width: 180px; }
input[type="number"] { width: 100%; min-height: 52px; padding: 0 var(--s4); border: 1.5px solid #c4ccd8; border-radius: var(--r-sm); font: 400 var(--t-md) var(--f); color: var(--ink); background: #fff; }
input[type="number"]:focus-visible { outline: 3px solid var(--blue-soft); border-color: var(--blue); outline-offset: 0; }
.add-person { margin-top: var(--s4); }
.field-days { margin-top: var(--s5); }
.field-days input { max-width: 180px; }
.step .flabel { margin-top: var(--s5); }
.result .r-sub { margin-top: var(--s5); }
.result .r-note { margin-top: var(--s4); font-size: var(--t-sm); color: #f5d79e; }
.hv-price { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); white-space: nowrap; }
.hv-a p.hv-per { margin-top: 0; font-size: var(--t-xs); color: var(--ink-3); }
.hv-tags { list-style: none; padding: 0; margin: var(--s3) 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hv-tags li { font-size: var(--t-xs); font-weight: 500; color: var(--green); background: var(--green-soft); border-radius: var(--r-full); padding: 2px 10px; }
.menu-btn { flex: none; }
@media (max-width: 560px) {
  .hero-visual { min-height: 520px; }
  .hv-photo { object-position: 60% 30%; }
  .hv-cards .hv-a { padding: var(--s3) var(--s4); }
  .hv-s { font-size: var(--t-xs); }
}
@media (max-width: 420px) { .logo-t { font-size: .875rem; } .logo svg { width: 26px; height: 26px; } }

/* ---------- red de despachos (/abogados/) */
@media (max-width: 600px) { .options.two-col { grid-template-columns: 1fr; } }
.red-copy { max-width: 820px; }
.red-cards, .red-casos { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); }
@media (min-width: 860px) { .red-cards, .red-casos { grid-template-columns: repeat(3, 1fr); } }
.red-card, .red-casos li { background: #fff; border-radius: var(--r-md); padding: var(--s6) var(--s5); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: var(--s3); }
.red-casos li { background: var(--white); }
.red-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.red-card h3, .red-casos h3 { font-size: var(--t-lg); }
.red-card p, .red-casos p { color: var(--ink-2); }
.red-flow { display: grid; gap: var(--s7); }
.red-dir .eyebrow { margin-bottom: var(--s4); }
.red-link { background: var(--panel); border-radius: var(--r-lg); padding: var(--s5); display: grid; gap: var(--s3); min-width: 0; }
.red-link label { font-weight: 500; }
.red-link input, .red-link textarea { width: 100%; min-width: 0; font: inherit; font-size: var(--t-sm); }
.red-link textarea { padding: var(--s3) var(--s4); border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; resize: vertical; color: var(--ink); }
.red-link .btn { justify-self: start; }
.copy-ok { color: var(--green); font-size: var(--t-sm); min-height: 1.4em; }
.red-req { background: #fff; border-radius: var(--r-md); padding: var(--s5); box-shadow: var(--shadow); margin-bottom: var(--s6); }
.red-req ul { margin: var(--s3) 0 0; padding-left: 1.2em; color: var(--ink-2); }
.red-req li + li { margin-top: var(--s2); }
.red-form { background: #fff; border-radius: var(--r-lg); padding: var(--s6) var(--s5); box-shadow: var(--shadow); }
@media (min-width: 768px) { .red-form { padding: var(--s7); } }
.red-fs { border: 0; padding: 0; margin: var(--s6) 0 0; min-width: 0; }
.red-fs legend { font-size: var(--t-lg); margin-bottom: var(--s2); }
.red-form .btn-block { margin-top: var(--s6); }
.red-code { font-weight: 600; word-break: break-all; background: var(--panel); border-radius: var(--r-sm); padding: var(--s3) var(--s4); }
.socio-note { display: flex; gap: var(--s3); align-items: flex-start; background: var(--panel); border-radius: var(--r-md); padding: var(--s4) var(--s5); margin: 0 0 var(--s5); font-size: var(--t-sm); color: var(--ink-2); }
.socio-note svg { flex: none; color: var(--blue); margin-top: 2px; }
/* Los hijos de la rejilla no deben ensancharla con tablas o selects largos. */
.page-grid > * { min-width: 0; }
.prose select, .prose input[type="text"], .prose input[type="email"], .prose input[type="tel"] { width: 100%; max-width: 100%; }
@media (max-width: 380px) { .header-in { gap: var(--s2); } .header-cta { padding: 0 10px; } .menu-btn { flex: none; } }

/* Primer Sello · marca y componentes propios sobre los estilos del motor (styles.css).
   Look de fintual.cl, solo modo claro. Letra base de 18 px: cómoda para todas las edades. */
:root {
  --t-xs: .875rem; --t-sm: 1rem; --t-md: 1.125rem; --t-lg: 1.3125rem; --t-xl: 1.5625rem;
}
html { font-size: 100%; }
.nav a { white-space: nowrap; }
.btn { min-height: 52px; font-size: var(--t-md); }
.btn-lg { min-height: 56px; }
.btn-sm { min-height: 48px; font-size: var(--t-sm); }
.chip { min-height: 48px; font-size: var(--t-sm); }
.logo-t { font-size: 1.125rem; line-height: 1.02; }
.logo svg { width: 36px; height: 36px; }
.logo-tag { font-size: var(--t-xs); color: var(--ink-3); border-left: 1px solid var(--line); padding-left: 10px; margin-left: 2px; line-height: 1.1; }
@media (max-width: 420px) { .logo-tag { display: none; } }
.fine { font-size: var(--t-sm); }
.consent { font-size: var(--t-sm); color: var(--ink); }
.consent-sep { background: var(--panel); border-radius: var(--r-sm); padding: var(--s4); }
.callout-legal { background: var(--panel); color: var(--ink) !important; border-left: 4px solid var(--blue); }
.lead-note { color: var(--ink-2); margin-top: var(--s3); }
.cta-soft { background: var(--panel); }
.badge-prov { display: inline-block; font-size: var(--t-sm); background: var(--amber-soft); color: var(--amber); border-radius: var(--r-sm); padding: var(--s2) var(--s3); margin: var(--s3) 0; }

/* hero */
.hero h1 { font-size: clamp(2.25rem, 1.5rem + 2.8vw, 3.5rem); max-width: 20ch; }
.hv-list { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; gap: var(--s2); }
.hv-list li { display: flex; justify-content: space-between; gap: var(--s3); font-size: var(--t-sm); color: var(--ink-2); border-top: 1px solid var(--line); padding-top: var(--s2); }
.hv-list b { color: var(--ink); font-weight: 600; text-align: right; white-space: nowrap; }
.hv-a .hv-big { font-size: var(--t-lg); }
.hv-label { font-size: var(--t-xs); color: var(--ink-2); }
.hero-visual-wide::after { display: none; }
.hero-visual-wide { min-height: 380px; }

/* promesas */
.promises-sec { padding-top: 0; }
.promises { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); }
@media (min-width: 860px) { .promises { grid-template-columns: repeat(3, 1fr); } }
.promise { background: var(--panel); border-radius: var(--r-lg); padding: var(--s6) var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.promise-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 600; }
.promise h3 { font-size: var(--t-lg); line-height: 1.25; }
.promise p { color: var(--ink-2); }

/* para quién */
.pgrid-4 { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.pcard-p { font-size: var(--t-sm); }
.helper { margin-top: var(--s6); display: grid; gap: var(--s5); align-items: center; background: #fff; border-radius: var(--r-lg); padding: var(--s4); box-shadow: var(--shadow); }
@media (min-width: 768px) { .helper { grid-template-columns: 360px 1fr; padding: var(--s5); gap: var(--s6); } }
.helper-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
.helper h3 { font-size: var(--t-xl); margin-bottom: var(--s3); }
.helper p { color: var(--ink-2); }
.helper .btn { margin-top: var(--s4); }

/* asesor y horario */
.asesor { align-items: center; }
.asesor figure { margin: 0; position: relative; }
.asesor-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
.asesor figcaption { position: absolute; left: var(--s3); top: var(--s3); background: var(--amber-soft); color: var(--amber); font-size: var(--t-xs); font-weight: 600; border-radius: var(--r-full); padding: 2px 10px; }
.hours { display: flex; gap: var(--s2); align-items: flex-start; color: var(--ink-2); font-size: var(--t-sm); margin: var(--s4) 0; }
.hours svg { flex: none; margin-top: 3px; color: var(--blue); }
.hours-bubble { margin: 0; padding: 0 var(--s4) var(--s4); font-size: var(--t-xs); position: relative; z-index: 1; }
.hours-foot { font-size: var(--t-xs); }

/* países */
.chips-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip-lg { min-height: 52px; padding: 0 var(--s5); font-size: var(--t-md); font-weight: 500; }

/* reseñas (solo reales) */
.reviews { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); }
@media (min-width: 860px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { background: var(--panel); border-radius: var(--r-md); padding: var(--s5); }
.review blockquote { margin: 0 0 var(--s3); }

/* pie */
.foot-base { margin: var(--s3) 0; }
.foot-base summary { cursor: pointer; font-weight: 500; min-height: 44px; display: flex; align-items: center; }
.foot-base ul { margin: var(--s2) 0 0; padding-left: 1.2em; }
.foot-base li + li { margin-top: var(--s1); }

/* despachos */
@media (min-width: 860px) { .red-cards-4, .red-casos-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .red-cards-4 { grid-template-columns: repeat(4, 1fr); } }
.kit-img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); }
.kit h2 { margin-top: var(--s7); }
.kit label { display: block; font-weight: 500; margin: var(--s4) 0 var(--s2); }
.kit textarea, .kit input[readonly] { width: 100%; font: inherit; font-size: var(--t-sm); padding: var(--s3) var(--s4); border: 1.5px solid var(--line); border-radius: var(--r-sm); color: var(--ink); background: var(--panel-2); }
.kit textarea { resize: vertical; margin-bottom: var(--s2); }
.kit .ask-row input { min-width: 0; }
.kit-frame { border: 1px dashed var(--line); border-radius: var(--r-md); padding: var(--s3); background: var(--panel-2); max-width: 480px; }
.kit-frame iframe { border: 0; display: block; }
.panel-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s5) 0 var(--s3); }
.panel h1 { font-size: var(--t-2xl); }
.panel h2 { font-size: var(--t-xl); margin: var(--s7) 0 var(--s4); }
.doc-cta { display: inline-flex; align-items: center; gap: 6px; margin: var(--s2) 0 0 calc(24px + var(--s3)); font-weight: 500; text-decoration: none; min-height: 44px; }

/* widget embebible */
.widget-body { background: #fff; }
.widget { max-width: 440px; margin: 0 auto; padding: var(--s5) var(--s4); }
.widget h1 { font-size: var(--t-xl); }
.widget-sub { color: var(--ink-2); margin: var(--s2) 0 var(--s4); font-size: var(--t-sm); }
.widget-by { display: inline-block; font-size: var(--t-xs); font-weight: 600; color: var(--blue); background: var(--blue-soft); border-radius: var(--r-full); padding: 2px 10px; margin-bottom: var(--s3); }
.widget-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-bottom: var(--s4); }
.widget label { display: block; font-size: var(--t-sm); font-weight: 500; margin-bottom: var(--s2); }
.widget input { width: 100%; }
.widget-out { margin-top: var(--s4); }
.widget-fine { margin-top: var(--s4); font-size: var(--t-xs); color: var(--ink-3); }

/* diagnóstico */
.diag { max-width: 760px; }
.diag input[type="number"] { max-width: 200px; }
.diag .flabel { display: block; margin-top: var(--s6); margin-bottom: var(--s3); font-weight: 500; }
.dr-head h2 { font-size: var(--t-2xl); }
.dr-disclaimer { display: flex; gap: var(--s3); align-items: flex-start; background: var(--amber-soft); color: var(--amber); border-radius: var(--r-sm); padding: var(--s3) var(--s4); margin: var(--s4) 0 var(--s5); font-size: var(--t-sm); }
.dr-disclaimer svg { flex: none; margin-top: 2px; }
.dr-intro { color: var(--ink-2); margin-bottom: var(--s5); }
.dr-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: var(--s6) var(--s5); margin-bottom: var(--s5); }
@media (min-width: 768px) { .dr-card { padding: var(--s6); } }
.dr-card h3 { font-size: var(--t-xl); margin: var(--s2) 0; }
.dr-card h4 { font-size: var(--t-md); font-weight: 600; margin: var(--s5) 0 var(--s2); }
.dr-sub { color: var(--ink-2); }
.dr-list { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s3); }
.dr-list li { display: flex; gap: var(--s3); align-items: flex-start; background: var(--panel); border-radius: var(--r-md); padding: var(--s3) var(--s4); }
.dr-list svg { flex: none; margin-top: 3px; }
.dr-list strong { display: block; font-weight: 600; }
.dr-list span { display: block; color: var(--ink-2); font-size: var(--t-sm); margin-top: 2px; }
.dr-ok svg, .dr-info svg { color: var(--green); }
.dr-list .dr-warn { background: var(--amber-soft); }
.dr-warn svg { color: var(--amber); }
.dr-docs { margin: 0; padding-left: 1.3em; color: var(--ink-2); }
.dr-docs li + li { margin-top: var(--s1); }
.dr-more { margin-top: var(--s3); }
.dr-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.dr-abogado { background: var(--blue-soft); border-radius: var(--r-lg); padding: var(--s6) var(--s5); margin-bottom: var(--s5); }
.dr-abogado h3 { font-size: var(--t-xl); }
.dr-abogado ul { margin: var(--s3) 0; padding-left: 1.2em; }
.dr-abogado p { color: var(--ink-2); margin-bottom: var(--s4); }
.dr-wa { background: var(--panel); border-radius: var(--r-lg); padding: var(--s6) var(--s5); text-align: center; }
.dr-wa h3 { font-size: var(--t-xl); }
.dr-wa p { color: var(--ink-2); margin: var(--s2) 0 var(--s4); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0e733d; color: #fff; }
.wizard-nav [data-restart] { margin-left: auto; }

/* checklist */
.doclist { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: var(--s2); }
.doclist li + li { margin-top: 0 !important; }
.doclist label { display: flex; gap: var(--s3); align-items: flex-start; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: var(--s4); cursor: pointer; min-height: 56px; }
.doclist input { width: 24px; height: 24px; flex: none; margin: 0; accent-color: var(--blue); }
.doclist input:checked + span { color: var(--ink-3); text-decoration: line-through; }
.doc-count { margin-top: var(--s3); font-weight: 500; color: var(--green); }

/* derivación */
.deriv { margin-top: var(--s6); }
.deriv h2 { margin-top: 0; }
.deriv textarea { width: 100%; font: inherit; padding: var(--s3) var(--s4); border: 1.5px solid var(--line); border-radius: var(--r-sm); resize: vertical; color: var(--ink); }
.deriv textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.deriv .fine { margin-top: var(--s4); }
.prose .deriv .hint { margin-top: var(--s2); }

/* impresión del checklist */
@media print {
  .topbar, .site-header, .site-footer, .wa, .side, .crumbs, .cta-inline, .page-photo, .callout, .byline { display: none !important; }
  .page-grid { display: block !important; }
  .doclist label { border: 1px solid #999; break-inside: avoid; }
  body { font-size: 12pt; }
}

/* Botones con texto largo dentro del contenido: que bajen de línea en móvil. */
.prose .btn, .dr-actions .btn { white-space: normal; height: auto; min-height: 52px; padding-top: var(--s2); padding-bottom: var(--s2); text-align: center; max-width: 100%; }

/* contraste AA del pie sobre el panel */
.site-footer .legal, .site-footer .legal p, .site-footer .legal summary { color: var(--ink-2); }
.panel-actions .btn { white-space: normal; height: auto; text-align: center; }

.hours > span { display: grid; gap: 2px; }
.hours .hrow { display: flex; justify-content: space-between; gap: var(--s4); max-width: 240px; }
.hours .hrow span:last-child { font-variant-numeric: tabular-nums; color: var(--ink); }
.foot-base summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border: 1px solid var(--line); border-radius: 50%; font-size: 14px; }
.foot-base[open] summary::before { content: "−"; }
/* la columna de Primer Sello destaca en la comparativa */
.comp th:nth-child(2), .comp td:nth-child(2) { background: var(--blue-soft); color: var(--ink); font-weight: 500; }
.prose p, .prose li, .prose td, .tldr li { overflow-wrap: anywhere; }
.row-top th, .row-top td { background: var(--blue-soft); }

/* ---------- Sello, el asistente de chat ---------- */
.chat { position: fixed; right: var(--s4); bottom: var(--s4); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: var(--s3); }
@media (min-width: 768px) { .chat { right: var(--s6); bottom: var(--s6); } }

/* El orbe: anillo de color que gira despacio y dos ojos que parpadean */
.orb { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 50%; isolation: isolate; }
.orb::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #005AD6, #7B61FF, #19C3B1, #FFB25B, #005AD6); animation: orb-spin 7s linear infinite; z-index: -2; }
.orb::after { content: ""; position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 12%, #e9f1ff 40%, #cfe0ff 100%); z-index: -1; box-shadow: inset 0 -3px 6px rgb(0 90 214 / .15); }
.orb-eyes { display: flex; gap: 18%; width: 46%; justify-content: center; margin-top: 4%; }
.orb-eyes i { display: block; width: 22%; aspect-ratio: 1 / 1.45; background: var(--ink); border-radius: 50%; animation: orb-blink 4.2s infinite; transform-origin: 50% 60%; }
.orb-sm { width: 44px; height: 44px; }
.orb-md { width: 42px; height: 42px; }
.orb-lg { width: 96px; height: 96px; animation: orb-float 4s ease-in-out infinite; }
@keyframes orb-spin { to { transform: rotate(360deg); } }
@keyframes orb-blink { 0%, 44%, 50%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.1); } }
@keyframes orb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.chat-launch { display: inline-flex; align-items: center; gap: var(--s3); min-height: 60px; padding: 8px var(--s5) 8px 8px; border: 0; border-radius: var(--r-full); background: #fff; color: var(--ink); font: inherit; cursor: pointer; box-shadow: 0 12px 32px rgb(27 32 39 / .18), 0 0 0 1px rgb(27 32 39 / .05); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.chat-launch:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgb(0 90 214 / .25); }
.chat-launch-t { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; text-align: left; }
.chat-launch-1 { font-weight: 600; font-size: var(--t-sm); }
.chat-launch-2 { font-size: var(--t-xs); color: var(--ink-2); }
.chat.is-open .chat-launch { display: none; }
@media (max-width: 420px) { .chat-launch-2 { display: none; } .chat-launch { min-height: 56px; padding-right: var(--s4); } }

.chat-peek { position: relative; max-width: 280px; animation: peek-in .35s var(--ease); }
.chat-peek-msg { display: block; width: 100%; text-align: left; font: inherit; font-size: var(--t-sm); color: var(--ink); background: #fff; border: 0; border-radius: 18px 18px 6px 18px; padding: var(--s3) var(--s6) var(--s3) var(--s4); box-shadow: 0 12px 30px rgb(27 32 39 / .16); cursor: pointer; }
.chat-peek-x { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-2); cursor: pointer; border-radius: 50%; z-index: 1; }
.chat-peek-x svg { width: 16px; height: 16px; }
@keyframes peek-in { from { opacity: 0; transform: translateY(8px) scale(.96); } }

.chat-panel { width: min(390px, calc(100vw - 32px)); height: min(640px, calc(100dvh - 48px)); display: flex; flex-direction: column; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgb(27 32 39 / .28); animation: panel-in .3s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@media (max-width: 600px) { .chat.is-open { inset: 0; right: 0; bottom: 0; } .chat-panel { width: 100vw; height: 100dvh; border-radius: 0; } }
.chat-head { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s3) var(--s3) var(--s4); background: linear-gradient(135deg, #005AD6, #3b4fd8 60%, #6b55e0); color: #fff; }
.chat-who { flex: 1; min-width: 0; }
.chat-who h2 { font-size: var(--t-md); font-weight: 600; }
.chat-who p { font-size: var(--t-xs); opacity: .95; display: flex; align-items: center; gap: 6px; }
.chat-online { width: 8px; height: 8px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 0 3px rgb(62 224 143 / .3); }
.chat-x { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; cursor: pointer; }
.chat-x:hover { background: rgb(255 255 255 / .22); }
.chat-x:focus-visible { outline-color: #fff; }

.chat-log { flex: 1; overflow-y: auto; padding: var(--s4) var(--s3); display: flex; flex-direction: column; gap: 6px; background-color: #eef3fb; background-image: radial-gradient(rgb(0 90 214 / .07) 1px, transparent 1.4px); background-size: 18px 18px; overscroll-behavior: contain; }
.msg { display: flex; animation: msg-in .22s var(--ease); }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
.msg-me { justify-content: flex-end; }
.msg-b { position: relative; max-width: 84%; padding: 8px 12px 6px; border-radius: 16px; font-size: var(--t-sm); line-height: 1.45; box-shadow: 0 1px 1px rgb(27 32 39 / .08); overflow-wrap: anywhere; }
.msg-bot .msg-b { background: #fff; border-top-left-radius: 4px; color: var(--ink); }
.msg-me .msg-b { background: #d9fdd3; border-top-right-radius: 4px; color: #111b21; }
.msg-t { display: block; text-align: right; font-size: .75rem; color: #5b6470; margin-top: 2px; }
.msg-ok { color: #027eb5; letter-spacing: -2px; }
.msg-link { font-weight: 500; }
.msg-btn, .msg-wa { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--s4); margin: 2px 0; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 500; text-decoration: none; }
.msg-btn:hover { background: var(--blue-hover); color: #fff; }
.msg-wa { background: var(--wa); }
.msg-wa:hover { background: #0e733d; color: #fff; }
.msg-small { display: block; font-size: var(--t-xs); color: var(--ink-2); margin-top: 6px; }
.dots { display: inline-flex; gap: 4px; padding: 6px 2px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #7b8794; animation: dot 1.1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

.chat-chips { display: flex; gap: var(--s2); padding: var(--s2) var(--s3); overflow-x: auto; background: #eef3fb; scrollbar-width: none; }
.chat-chips:empty { display: none; }
.chat-chip { flex: none; min-height: 44px; background: #fff; border-color: #bcd0f0; color: var(--blue); font-weight: 500; }
.chat-form { display: flex; gap: var(--s2); padding: var(--s3); border-top: 1px solid var(--line); background: #fff; }
.chat-form input { flex: 1; min-width: 0; min-height: 48px; border: 1.5px solid var(--line); border-radius: var(--r-full); padding: 0 var(--s4); font: inherit; font-size: var(--t-sm); }
.chat-send { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--blue); color: #fff; cursor: pointer; }
.chat-send:hover { background: var(--blue-hover); }
.chat-note { font-size: .75rem; color: var(--ink-2); padding: 0 var(--s4) var(--s3); background: #fff; margin: 0; }

.chat-teaser { display: grid; gap: var(--s5); align-items: center; background: linear-gradient(135deg, #eef3fb, #f3efff); border-radius: var(--r-lg); padding: var(--s6) var(--s5); }
@media (min-width: 768px) { .chat-teaser { grid-template-columns: auto 1fr; padding: var(--s7); gap: var(--s6); } }
.chat-teaser h2 { font-size: var(--t-2xl); }
.chat-teaser p { color: var(--ink-2); font-size: var(--t-lg); margin: var(--s3) 0 var(--s4); }

@media (prefers-reduced-motion: reduce) {
  .orb::before, .orb-eyes i, .orb-lg, .dots i, .msg, .chat-panel, .chat-peek { animation: none !important; }
}
@media print { .chat { display: none !important; } }
/* En móvil y en los formularios el lanzador es solo el orbe, y la página deja sitio debajo. */
@media (max-width: 600px) { body { padding-bottom: 84px; } }
@media (max-width: 600px) { .chat-launch-t { display: none; } .chat-launch { padding: 6px; min-height: 0; } .chat-launch .orb-sm { width: 50px; height: 50px; } }
.quote-body .chat-launch-t { display: none; }
.quote-body .chat-launch { padding: 6px; min-height: 0; }
.chat-launch:not(:has(.chat-launch-t:not([hidden]))) { gap: 0; }
@media (max-width: 600px) { .chat-launch { gap: 0; } }
.quote-body .chat-launch { gap: 0; }

/* Selector: chat con Sello o WhatsApp */
.chat-menu { width: min(320px, calc(100vw - 32px)); background: #fff; border-radius: 20px; padding: var(--s3); box-shadow: 0 18px 44px rgb(27 32 39 / .2), 0 0 0 1px rgb(27 32 39 / .05); animation: peek-in .25s var(--ease); }
.chat-menu-t { font-weight: 600; font-size: var(--t-sm); padding: var(--s2) var(--s2) var(--s3); }
.chat-opt { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 64px; padding: var(--s2) var(--s3); border: 0; border-radius: 14px; background: none; font: inherit; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.chat-opt + .chat-opt { margin-top: 4px; }
.chat-opt:hover { background: var(--panel); color: var(--ink); }
.chat-opt strong { display: block; font-weight: 600; font-size: var(--t-sm); }
.chat-opt small { display: block; font-size: var(--t-xs); color: var(--ink-2); }
.orb-xs { width: 44px; height: 44px; }
.chat-opt-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--wa); color: #fff; }
.chat-opt-ico svg { width: 24px; height: 24px; }
.hours-menu { margin: var(--s2) var(--s3) var(--s1); font-size: var(--t-xs); }
.chat.is-open .chat-menu { display: none; }
@media (prefers-reduced-motion: reduce) { .chat-menu { animation: none; } }
@media (max-width: 900px) { .topbar-in > span { display: none; } .topbar-in { justify-content: flex-end; } }
.msg-who { display: block; font-size: .75rem; font-weight: 600; color: var(--wa); margin-bottom: 2px; }
.logo-t { white-space: nowrap; font-size: 1.1875rem; }
@media (max-width: 420px) { .logo-t { font-size: 1.0625rem; } }
.cta-corto { display: none; }
@media (max-width: 420px) { .cta-largo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .cta-corto { display: inline; } }
/* Encuadre de la foto del banner de portada. */
.home .hero-visual .hv-photo { object-position: 50% 35%; }

/* Banner: dos caminos claros (orientación migratoria o seguro) */
.hero-choices { display: grid; gap: var(--s3); margin-top: var(--s6); max-width: 560px; }
@media (min-width: 560px) { .hero-choices { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; flex-direction: column; gap: 4px; min-height: 96px; padding: var(--s4) var(--s5); border-radius: var(--r-md); border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; transition: border-color .18s, transform .18s var(--ease), box-shadow .18s; }
.choice:hover { border-color: var(--blue); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.choice-t { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); font-weight: 600; font-size: var(--t-lg); line-height: 1.2; }
.choice-t svg { flex: none; }
.choice-d { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.4; }
.choice-main { background: var(--blue); border-color: var(--blue); color: #fff; }
.choice-main:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.choice-main .choice-d { color: #e3ecfb; }

/* Móvil: "Habla con nosotros" ocupa todo el ancho para que se vea bien. */
@media (max-width: 600px) {
  body { padding-bottom: 96px; }
  .chat { left: var(--s4); right: var(--s4); bottom: var(--s3); align-items: stretch; }
  .chat .chat-launch, .quote-body .chat .chat-launch { width: 100%; justify-content: center; gap: var(--s3); min-height: 60px; padding: 8px var(--s5) 8px 8px; }
  .chat .chat-launch .orb-sm { width: 44px; height: 44px; }
  .chat .chat-launch-t, .quote-body .chat .chat-launch-t { display: flex; }
  .chat .chat-launch-2 { display: block; }
  .chat-menu, .chat-peek { width: 100%; max-width: none; }
  .chat.is-open { left: 0; right: 0; bottom: 0; }
}
/* En el diagnóstico y el cotizador la barra taparía el formulario: ahí, solo el orbe. */
@media (max-width: 600px) {
  .quote-body .chat { left: auto; right: var(--s4); align-items: flex-end; }
  .quote-body .chat .chat-launch { width: auto; padding: 6px; min-height: 0; gap: 0; }
  .quote-body .chat .chat-launch-t { display: none; }
  .quote-body .chat .chat-launch .orb-sm { width: 50px; height: 50px; }
  .quote-body .chat-menu { width: min(320px, calc(100vw - 32px)); }
}

/* Logotipo: "PrimerSello" junto, "Sello" en azul para que se lea como dos palabras. */
.logo { gap: 10px; }
.logo svg { width: 42px; height: 42px; }
.logo-t { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.logo-t b { color: var(--blue); font-weight: 600; }
@media (max-width: 420px) { .logo svg { width: 34px; height: 34px; } .logo-t { font-size: 1.25rem; } }

/* Logotipo en Fraunces (opción 8 de marca/tipografias-logo.html). */
.logo-t { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-optical-sizing: auto; letter-spacing: -.01em; font-size: 1.625rem; }
.logo-t b { font-weight: 600; }
@media (max-width: 420px) { .logo-t { font-size: 1.375rem; } }
.asesor-img { object-position: 78% 40%; }

/* Botón para abrir a Sello desde la sección del asesor */
.btn-sello { display: inline-flex; align-items: center; gap: var(--s3); margin-top: var(--s3); min-height: 60px; padding: 8px var(--s5) 8px 8px; border: 1.5px solid #c9d8f5; border-radius: var(--r-full); background: linear-gradient(135deg, #eef3fb, #f3efff); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn-sello:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(0 90 214 / .18); }
.btn-sello strong { display: block; font-weight: 600; font-size: var(--t-sm); }
.btn-sello small { display: block; font-size: var(--t-xs); color: var(--ink-2); }
.btn-sello-lg { margin-top: var(--s2); min-height: 68px; padding-right: var(--s6); } .btn-sello-lg strong { font-size: var(--t-md); }

/* Portada: precio con foto en lugar de tabla */
.precio { align-items: center; }
.precio-foto { margin: 0; }
.precio-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }

/* ---------- Banner: iconos en los dos caminos ---------- */
.choice-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); margin-bottom: 4px; }
.choice-main .choice-ico { background: rgb(255 255 255 / .16); color: #fff; }
.d-corta { display: none; }

/* ---------- Banner en móvil: foto arriba, poco texto, dos botones compactos ---------- */
@media (max-width: 959px) {
  .home .hero { padding: var(--s4) 0 var(--s6); }
  .home .hero-in { gap: var(--s5); }
  .home .hero-visual { order: -1; min-height: 0; height: clamp(220px, 62vw, 380px); }
  .home .hv-cards { justify-content: flex-end; padding: var(--s4); }
  .home .hv-cards .hv-a { display: none; }
  .home .hv-s { align-self: flex-start; font-size: var(--t-xs); padding: var(--s2) var(--s3); }
  .home .hero h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3rem); margin: var(--s2) 0 var(--s3); }
  .home .hero-choices { margin-top: var(--s5); }
}
@media (max-width: 599px) {
  .home .hero .eyebrow { font-size: .75rem; }
  .home .hero-sub { display: none; }
  .home .trust { display: none; }
  .home .hero-choices { grid-template-columns: 1fr 1fr; gap: var(--s2); }
  .home .choice { min-height: 0; padding: var(--s4) var(--s3); gap: 2px; }
  .home .choice-t { font-size: var(--t-md); }
  .home .choice-t svg { display: none; }
  .home .choice-d { font-size: var(--t-xs); }
  .home .d-larga { display: none; }
  .home .d-corta { display: inline; }
}

/* ---------- Movimiento: entrada del banner y aparición al hacer scroll ---------- */
:root { --mov-dur: 520ms; --mov-ease: cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-visual { animation: subir var(--mov-dur) var(--mov-ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .hero-copy > :nth-child(3) { animation-delay: 120ms; }
  .hero-copy > :nth-child(4) { animation-delay: 180ms; }
  .hero-copy > :nth-child(5) { animation-delay: 240ms; }
  .hero-visual { animation-delay: 80ms; }
  .home .hero-visual .hv-photo { animation: acercar 1.6s var(--mov-ease) both; }
  .hv-card { animation: subir var(--mov-dur) var(--mov-ease) both; }
  .hv-s { animation-delay: 380ms; }
  .hv-a { animation-delay: 520ms; }

  /* Lo que está por debajo de la primera pantalla aparece al llegar a él (app.js). */
  .rev { opacity: 0; transform: translateY(18px); transition: opacity var(--mov-dur) var(--mov-ease), transform var(--mov-dur) var(--mov-ease); transition-delay: var(--rev-delay, 0ms); }
  .rev.rev-in { opacity: 1; transform: none; }
  .rev-zoom { transform: scale(.96); }
  .rev-zoom.rev-in { transform: none; }

  .choice, .pcard, .card-link, .promise, .btn, .chip { will-change: auto; }
  .promise { transition: transform .2s var(--mov-ease), box-shadow .2s var(--mov-ease); }
  .promise:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
}
@keyframes subir { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes acercar { from { transform: scale(1.08); } to { transform: none; } }
@media (max-width: 959px) { .home .hero-visual .hv-photo { object-position: 50% 30%; } }

/* "Habla con nosotros": la llamada a la acción principal, en azul y con un halo suave. */
.chat-launch { background: var(--blue); color: #fff; box-shadow: 0 12px 30px rgb(0 90 214 / .38), 0 0 0 1px rgb(0 90 214 / .2); }
.chat-launch:hover { background: var(--blue-hover); box-shadow: 0 16px 38px rgb(0 90 214 / .45); }
.chat-launch:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.chat-launch .chat-launch-1 { color: #fff; }
.chat-launch .chat-launch-2 { color: #dbe7fb; }
.chat-launch .orb { box-shadow: 0 0 0 3px rgb(255 255 255 / .9); border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) {
  .chat-launch { animation: halo 2.8s ease-out 1.2s 3; }
}
@keyframes halo {
  0% { box-shadow: 0 12px 30px rgb(0 90 214 / .38), 0 0 0 0 rgb(0 90 214 / .45); }
  70% { box-shadow: 0 12px 30px rgb(0 90 214 / .38), 0 0 0 16px rgb(0 90 214 / 0); }
  100% { box-shadow: 0 12px 30px rgb(0 90 214 / .38), 0 0 0 0 rgb(0 90 214 / 0); }
}

/* "Habla con nosotros" en un color propio (cálido) para que destaque sobre el azul del sitio.
   Texto oscuro: contraste AA sobre el naranja. */
:root { --cta-cal: #ff9a3c; --cta-cal-2: #ffbf4d; --cta-cal-hover: #ff8a24; --cta-cal-ink: #1b2027; }
.chat-launch { background: linear-gradient(135deg, var(--cta-cal-2), var(--cta-cal)); color: var(--cta-cal-ink); box-shadow: 0 12px 30px rgb(255 138 36 / .42), 0 0 0 1px rgb(255 138 36 / .25); }
.chat-launch:hover { background: linear-gradient(135deg, var(--cta-cal), var(--cta-cal-hover)); box-shadow: 0 16px 38px rgb(255 138 36 / .5); }
.chat-launch .chat-launch-1 { color: var(--cta-cal-ink); }
.chat-launch .chat-launch-2 { color: #2b2f36; }
@keyframes halo {
  0% { box-shadow: 0 12px 30px rgb(255 138 36 / .42), 0 0 0 0 rgb(255 138 36 / .5); }
  70% { box-shadow: 0 12px 30px rgb(255 138 36 / .42), 0 0 0 16px rgb(255 138 36 / 0); }
  100% { box-shadow: 0 12px 30px rgb(255 138 36 / .42), 0 0 0 0 rgb(255 138 36 / 0); }
}
