/* BR Seguros prototype (static). Brand: navy #001C42 + blue #0978D8 (measured on the logo), Poppins. */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/poppins-700.woff2') format('woff2'); }

:root {
  --navy: #001c42;
  --navy-2: #00285c;
  --navy-deep: #00132e;
  --blue: #0978d8;
  --blue-hover: #0665b8;
  --blue-light: #4da6f5;
  --soft: #e6eef8;
  --ink: #0b1b33;
  --muted: #45566e;
  --line: #c9d7ea;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 10px 30px -12px rgb(0 28 66 / .28);
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: 'Poppins', system-ui, sans-serif; color: var(--ink); background: var(--white); line-height: 1.6; font-size: 1rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .6em; font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }

/* Buttons: one pill system */
.btn { display: inline-flex; align-items: center; gap: .5em; min-height: 48px; padding: .7em 1.4em; border-radius: 999px; font: 600 1rem/1.2 'Poppins', sans-serif; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); color: var(--white); }
.btn-ghost { border-color: rgb(255 255 255 / .55); color: var(--white); background: transparent; }
.btn-ghost:hover { background: rgb(255 255 255 / .1); color: var(--white); border-color: var(--white); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: var(--white); }
.btn-outline:hover { background: var(--blue); color: var(--white); }

/* Header */
.site-header { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgb(255 255 255 / .08); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; flex: none; }
.brand img { width: 176px; height: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: rgb(255 255 255 / .9); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 10px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--white); background: rgb(255 255 255 / .08); }
.nav .btn { margin-left: 8px; padding: .55em 1.2em; min-height: 44px; font-size: .95rem; }
.nav .btn:hover { background: var(--blue-hover); }
.nav-phone { display: inline-flex; align-items: center; gap: 6px; }
.menu-toggle { display: none; margin-left: auto; background: transparent; border: 1px solid rgb(255 255 255 / .35); color: var(--white); border-radius: 10px; width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle .icon { width: 24px; height: 24px; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px 16px 20px; border-bottom: 1px solid rgb(255 255 255 / .1); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1rem; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .brand img { width: 150px; }
}

/* Hero (home) */
.hero { position: relative; color: var(--white); background: var(--navy); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 28 66 / .97) 0%, rgb(0 28 66 / .9) 42%, rgb(0 28 66 / .55) 100%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lead { color: rgb(255 255 255 / .86); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.picker { background: rgb(0 19 46 / .82); border: 1px solid rgb(255 255 255 / .14); border-radius: 16px; padding: 28px; backdrop-filter: blur(6px); }
.picker h2 { font-size: 1.25rem; margin-bottom: 4px; color: var(--white); }
.picker p { color: rgb(255 255 255 / .75); font-size: .95rem; margin-bottom: 18px; }
.picker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.picker-grid a { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 14px; border-radius: var(--radius); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .16); color: var(--white); text-decoration: none; font-weight: 500; transition: background-color .2s, border-color .2s; }
.picker-grid a:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.picker-grid .icon { color: var(--blue-light); width: 24px; height: 24px; }
.picker-grid a:hover .icon { color: var(--white); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; padding-bottom: 48px; }
  .hero-bg::after { background: linear-gradient(180deg, rgb(0 28 66 / .92), rgb(0 28 66 / .96)); }
}

/* Credential band */
.cred { background: var(--soft); }
.cred .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 22px; padding-bottom: 22px; }
.cred-item { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 500; font-size: .95rem; }
.cred-item .icon { color: var(--blue); width: 24px; height: 24px; }

/* Sections */
.section { padding: 88px 0; }
.section-soft { background: var(--soft); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy .lead, .section-navy p { color: rgb(255 255 255 / .82); }
.section-head { margin-bottom: 40px; max-width: 720px; }
@media (max-width: 700px) { .section { padding: 60px 0; } }

/* Insurance bento (5 cells) */
.ins-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 240px; gap: 16px; }
.ins-card { position: relative; border-radius: var(--radius); overflow: hidden; color: var(--white); text-decoration: none; display: flex; align-items: flex-end; background: var(--navy); }
.ins-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.ins-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 28 66 / 0) 30%, rgb(0 28 66 / .92) 100%); }
.ins-card:hover img { transform: scale(1.04); }
.ins-body { position: relative; z-index: 1; padding: 22px; }
.ins-body h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 4px; }
.ins-body p { color: rgb(255 255 255 / .86); margin: 0 0 10px; font-size: .95rem; }
.ins-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--white); }
.ins-card:hover { color: var(--white); }
.ins-card:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.ins-card:nth-child(2) { grid-column: span 3; }
.ins-card:nth-child(3) { grid-column: span 3; }
.ins-card:nth-child(4) { grid-column: span 3; }
.ins-card:nth-child(5) { grid-column: span 3; }
@media (max-width: 800px) {
  .ins-grid { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .ins-card:nth-child(n) { grid-column: auto; grid-row: auto; }
}

/* Why us */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.points .icon { color: var(--blue-light); width: 24px; height: 24px; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.benefit { border-top: 1px solid rgb(255 255 255 / .18); padding-top: 18px; }
.benefit .icon { color: var(--blue-light); width: 28px; height: 28px; margin-bottom: 10px; }
.benefit h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 4px; }
.benefit p { margin: 0; font-size: .95rem; }
.benefit-wide { grid-column: 1 / -1; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 520px) { .benefits { grid-template-columns: 1fr; } }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 24px 0 0; }
.steps li::before { content: ''; position: absolute; top: 23px; left: 48px; right: 0; height: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.step-ico { position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; margin-bottom: 18px; }
.step-ico .icon { width: 22px; height: 22px; }
.steps h3 { color: var(--navy); }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { padding: 0 0 0 68px; min-height: 48px; }
  .steps li::before { top: 52px; bottom: -28px; left: 23px; right: auto; width: 2px; height: auto; }
  .step-ico { position: absolute; left: 0; top: 0; margin: 0; }
}

/* CTA band */
.cta-band { background: var(--blue); color: var(--white); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.cta-band h2 { color: var(--white); margin: 0 0 4px; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.cta-band p { margin: 0; color: rgb(255 255 255 / .9); }
.cta-band .btn-light { background: var(--white); color: var(--navy); }
.cta-band .btn-light:hover { background: var(--navy); color: var(--white); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Contact preview */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { color: var(--blue); width: 24px; height: 24px; margin-top: 2px; }
.contact-list a { color: var(--ink); font-weight: 500; text-decoration: none; }
.contact-list a:hover { color: var(--blue); text-decoration: underline; }
.contact-list small { display: block; color: var(--muted); font-size: .85rem; }
.panel { background: var(--white); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } .panel { padding: 22px; } }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field legend { font-weight: 500; font-size: .95rem; color: var(--ink); }
.field input, .field select, .field textarea { font: 400 1rem/1.4 'Poppins', sans-serif; color: var(--ink); background: var(--white); border: 1.5px solid #8ea3bf; border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #66768c; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgb(9 120 216 / .35); border-color: var(--blue); }
.field .hint { color: var(--muted); font-size: .85rem; }
.field .error { color: #b3261e; font-size: .88rem; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b3261e; }
.field.invalid .error { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.consent input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 12px; }

/* Page hero (inner pages) */
.page-hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.page-hero .hero-bg::after { background: linear-gradient(90deg, rgb(0 28 66 / .96) 0%, rgb(0 28 66 / .86) 50%, rgb(0 28 66 / .45) 100%); }
.page-hero .wrap { position: relative; padding-top: 56px; padding-bottom: 64px; }
.page-hero h1 { color: var(--white); max-width: 18ch; }
.page-hero .lead { color: rgb(255 255 255 / .86); }
.crumbs { font-size: .88rem; margin-bottom: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: rgb(255 255 255 / .5); }
.crumbs a { color: rgb(255 255 255 / .82); }
.crumbs [aria-current] { color: var(--white); }
@media (max-width: 800px) { .page-hero .hero-bg::after { background: rgb(0 28 66 / .9); } .page-hero .wrap { padding-top: 36px; padding-bottom: 44px; } }

/* Coverages */
.cov-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cov { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border-radius: var(--radius); padding: 22px; }
.cov .icon { color: var(--blue); width: 26px; height: 26px; margin-top: 2px; }
.cov h3 { margin-bottom: 4px; color: var(--navy); }
.cov p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 700px) { .cov-grid { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: 16px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.other-ins { display: flex; flex-wrap: wrap; gap: 10px; }
.other-ins a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; min-height: 48px; border-radius: 999px; border: 1.5px solid rgb(255 255 255 / .3); color: var(--white); text-decoration: none; font-weight: 500; }
.other-ins a:hover { background: var(--blue); border-color: var(--blue); }
.other-ins .icon { color: var(--blue-light); }
.other-ins a:hover .icon { color: var(--white); }

/* Simulator */
.sim { max-width: 760px; margin: 0 auto; }
.sim-progress { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.sim-bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 24px; }
.sim-bar span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .3s; }
.sim-step h2 { font-size: 1.4rem; color: var(--navy); }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice label { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; min-height: 96px; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 600; color: var(--navy); background: var(--white); transition: border-color .2s, background-color .2s; }
.choice label .icon { color: var(--blue); width: 28px; height: 28px; }
.choice label small { font-weight: 400; color: var(--muted); }
.choice input:checked + label { border-color: var(--blue); background: #eaf3fd; box-shadow: inset 0 0 0 1px var(--blue); }
.choice input:focus-visible + label { outline: 3px solid var(--blue-light); outline-offset: 2px; }
@media (max-width: 640px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.sim-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.sim-nav .btn[hidden] { display: none; }
.sim-error { color: #b3261e; font-size: .92rem; margin: 8px 0 0; min-height: 1.4em; }

/* Prose (legal) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; color: var(--navy); }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 1em; }
.prose dt { font-weight: 600; color: var(--navy); }
.prose dd { margin: 0; }
@media (max-width: 560px) { .prose dl { grid-template-columns: 1fr; gap: 2px; } .prose dd { margin-bottom: 10px; } }
.note-box { background: var(--soft); border-radius: var(--radius); padding: 18px 20px; font-size: .95rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgb(255 255 255 / .82); font-size: .95rem; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 28px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer h2 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { color: rgb(255 255 255 / .88); text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.foot-brand img { width: 180px; margin-bottom: 16px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .25); display: grid; place-items: center; padding: 0; }
.social a:hover { background: var(--blue); border-color: var(--blue); }
.social .icon { width: 22px; height: 22px; }
.legal { border-top: 1px solid rgb(255 255 255 / .12); margin-top: 48px; padding-top: 24px; font-size: .82rem; line-height: 1.65; color: rgb(255 255 255 / .7); }
.legal p { margin-bottom: .8em; max-width: none; }
.legal a { display: inline; padding: 0; text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; color: rgb(255 255 255 / .65); margin-top: 12px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }

/* WhatsApp floating */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #128c4a; color: var(--white); display: grid; place-items: center; box-shadow: 0 8px 22px -6px rgb(0 0 0 / .35); }
.wa-float:hover { background: #0e7a40; color: var(--white); }
.wa-float .icon { width: 28px; height: 28px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Guideline fixes: anchors clear the sticky header, touch handling, nav CTA keeps the pill shape */
[id] { scroll-margin-top: 88px; }
a, button, input, select, textarea, label { touch-action: manipulation; -webkit-tap-highlight-color: rgb(9 120 216 / .18); }
.nav .btn { border-radius: 999px; }
.field select { background-color: var(--white); color: var(--ink); }
/* Form states (Fase 3): status line, loading button */
.form-status { margin: 4px 0 12px; font-size: .92rem; min-height: 1.4em; }
.form-status.is-error { color: #b3261e; }
.btn[disabled] { opacity: .75; cursor: progress; }
.btn.is-loading .icon { display: none; }
.btn.is-loading::after { content: ''; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: br-spin .7s linear infinite; }
@keyframes br-spin { to { transform: rotate(360deg); } }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
#conf-mail { margin: 16px 0; }
