/* Landing Asesor — estilos. Los colores de marca se sobrescriben desde el Personalizador. */
:root {
	--brand-900: #0b2a4a;
	--brand-950: color-mix(in srgb, var(--brand-900) 80%, #000);
	--brand-700: color-mix(in srgb, var(--brand-900) 78%, #fff);
	--accent-500: #1fa36b;
	--accent-600: color-mix(in srgb, var(--accent-500) 85%, #000);
	--accent-100: color-mix(in srgb, var(--accent-500) 14%, #fff);
	--soft: #f3f7f6;
	--ink-900: #13212e;
	--ink-700: #3d4b57;
	--ink-500: #66737e;
	--line: #dfe6ea;
	--white: #fff;
	--danger: #b3402f;
	--shadow-sm: 0 1px 3px rgba(11, 42, 74, .08);
	--shadow-md: 0 6px 24px rgba(11, 42, 74, .10);
	--shadow-lg: 0 16px 40px rgba(11, 42, 74, .18);
	--radius-sm: 10px;
	--radius-md: 16px;
	--radius-lg: 24px;
	--fs-sm: clamp(.9rem, .87rem + .15vw, .98rem);
	--fs-base: clamp(1rem, .97rem + .2vw, 1.08rem);
	--fs-lg: clamp(1.1rem, 1.05rem + .3vw, 1.25rem);
	--fs-xl: clamp(1.3rem, 1.2rem + .6vw, 1.6rem);
	--fs-2xl: clamp(1.8rem, 1.5rem + 1.2vw, 2.4rem);
	--fs-4xl: clamp(2.3rem, 1.8rem + 3vw, 3.9rem);
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-base); line-height: 1.6; color: var(--ink-900); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-600); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: inherit; }
p { margin: 0 0 1em; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.small { font-size: var(--fs-sm); }
.muted { color: var(--ink-500); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent-500); outline-offset: 2px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .85em 1.5em; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; transition: transform .15s, background .15s, box-shadow .15s; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent-500); color: var(--white); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent-500) 35%, transparent); }
.btn-primary:hover { background: var(--accent-600); }
.btn-outline { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-ghost { border-color: var(--brand-900); color: var(--brand-900); }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: wait; transform: none; }

/* Barra superior y cabecera */
.topbar { background: var(--accent-500); color: var(--white); font-size: .88rem; text-align: center; padding: 6px 0; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-900); margin-right: auto; }
.brand-logo { max-height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; }
.brand-sub { font-weight: 800; font-size: .74rem; letter-spacing: .22em; color: var(--accent-600); text-transform: uppercase; }
.main-nav .menu { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.main-nav a { color: var(--ink-700); text-decoration: none; font-weight: 600; font-size: .95rem; }
.main-nav a:hover { color: var(--accent-600); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; font-size: 1.3rem; padding: 4px 12px; cursor: pointer; color: var(--brand-900); }

/* Hero */
.hero { background: radial-gradient(circle at 85% 10%, color-mix(in srgb, var(--accent-500) 30%, transparent), transparent 45%), linear-gradient(150deg, var(--brand-900), var(--brand-950)); color: var(--white); padding: clamp(40px, 7vw, 90px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 800; color: var(--accent-600); margin-bottom: .6em; }
.eyebrow.on-dark { color: color-mix(in srgb, var(--accent-500) 55%, #fff); }
.hero h1 { font-size: var(--fs-4xl); letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: color-mix(in srgb, var(--accent-500) 60%, #fff); }
.hero-sub { font-size: var(--fs-lg); color: rgba(255,255,255,.85); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.hero-stats { list-style: none; padding: 0; margin: 0 0 22px; display: flex; gap: clamp(18px, 4vw, 44px); }
.hero-stats strong { display: block; font-size: var(--fs-2xl); line-height: 1; }
.hero-stats span { font-size: .88rem; color: rgba(255,255,255,.75); }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; color: rgba(255,255,255,.85); }

/* Tarjeta de cotización */
.quote-card { background: var(--white); color: var(--ink-900); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-lg); }
.quote-kicker { color: var(--accent-600); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin-bottom: .3em; }
.quote-card h2 { font-size: var(--fs-xl); color: var(--brand-900); margin-bottom: .2em; }
.quote-lead { color: var(--ink-500); font-size: var(--fs-sm); }
.notice { background: #fff6e0; padding: 12px; border-radius: var(--radius-sm); }

/* Secciones */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-soft { background: var(--soft); }
.section-dark { background: linear-gradient(160deg, var(--brand-900), var(--brand-950)); color: var(--white); }
.section-title { font-size: var(--fs-2xl); color: var(--brand-900); letter-spacing: -.01em; }
.section-title.on-dark { color: var(--white); }
.section-lead { color: var(--ink-700); max-width: 64ch; font-size: var(--fs-lg); margin-bottom: 2em; }
.section-lead.on-dark { color: rgba(255,255,255,.82); }
.center .section-lead, .section-lead.center { margin-inline: auto; }
#cobertura .section-lead { margin-inline: auto; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-sm); }
.step-num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent-100); color: var(--accent-600); font-weight: 800; margin-bottom: 14px; }
.steps h3 { font-size: var(--fs-lg); color: var(--brand-900); }
.steps p { color: var(--ink-700); margin: 0; font-size: var(--fs-sm); }

.isapre-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.isapre-list li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; text-align: center; font-weight: 800; color: var(--brand-900); }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-sm); }
.card p { color: var(--ink-700); flex: 1; }
.card h3 { color: var(--brand-900); font-size: var(--fs-xl); }
.card-icon { font-size: 2rem; }
.card-featured { border: 2px solid var(--accent-500); box-shadow: var(--shadow-md); }
.card .btn { align-self: flex-start; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md); padding: 24px; }
.feature span { font-size: 1.6rem; }
.feature h3 { font-size: var(--fs-lg); margin-top: 8px; }
.feature p { color: rgba(255,255,255,.78); margin: 0; font-size: var(--fs-sm); }

.blog-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.blog-card-body { padding: 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.blog-card h3 { color: var(--brand-900); font-size: var(--fs-lg); margin: 4px 0; }
.blog-card p { color: var(--ink-700); font-size: var(--fs-sm); flex: 1; }
.tag { align-self: flex-start; background: var(--accent-100); color: var(--accent-600); font-weight: 700; font-size: .78rem; padding: 3px 10px; border-radius: 999px; }
.meta { color: var(--ink-500); font-size: .82rem; }
.read-more { color: var(--accent-600); font-weight: 700; font-size: .92rem; }
#blog .center { margin-top: 30px; }

.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: 12px; padding: 0 22px; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--brand-900); }
.faq-item summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent-600); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--ink-700); padding-bottom: 18px; margin: 0; }

.cta-final { background: var(--accent-500); color: var(--white); padding: clamp(48px, 7vw, 80px) 0; }
.cta-final h2 { font-size: var(--fs-2xl); }
.cta-final .btn-primary { background: var(--brand-900); box-shadow: none; }

/* Páginas internas */
.page-hero { background: linear-gradient(150deg, var(--brand-900), var(--brand-950)); color: var(--white); padding: clamp(40px, 6vw, 72px) 0; }
.page-hero h1 { font-size: var(--fs-2xl); }
.page-hero p { color: rgba(255,255,255,.8); margin: 0; }
.entry-content { padding: 48px 0 72px; }
.entry-content h2 { color: var(--brand-900); margin-top: 1.6em; }
.entry-content h3 { color: var(--brand-900); margin-top: 1.3em; }
.entry-thumb { border-radius: var(--radius-lg); margin-bottom: 28px; }
.entry-cta { margin-top: 48px; background: var(--soft); border-left: 5px solid var(--accent-500); border-radius: var(--radius-md); padding: 28px; }
.entry-cta h2 { margin-top: 0; font-size: var(--fs-xl); }
.pagination { margin-top: 32px; text-align: center; }
.pagination .page-numbers { padding: 6px 12px; }

/* Pie */
.site-footer { background: var(--brand-950); color: rgba(255,255,255,.78); padding: 56px 0 24px; font-size: var(--fs-sm); }
.site-footer a { color: rgba(255,255,255,.9); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-brand { font-weight: 800; color: var(--white); font-size: 1.1rem; }
.footer-title { font-weight: 800; color: var(--white); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: .82rem; color: rgba(255,255,255,.6); }

.wa-float { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: var(--shadow-lg); z-index: 60; }

/* Responsive */
@media (max-width: 960px) {
	.hero-grid { grid-template-columns: 1fr; }
	.steps { grid-template-columns: repeat(2, 1fr); }
	.cards-3, .features { grid-template-columns: 1fr 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.nav-toggle { display: block; }
	.header-cta { display: none; }
	.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 12px 16px 18px; }
	.main-nav.is-open { display: block; }
	.main-nav .menu { flex-direction: column; gap: 4px; }
	.main-nav a { display: block; padding: 10px 4px; }
}
@media (max-width: 600px) {
	.steps, .cards-3, .features, .footer-grid { grid-template-columns: 1fr; }
	.hero-stats { gap: 18px; }
	.hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.btn, .blog-card { transition: none; }
}

[hidden] { display: none !important; }
