/*
Theme Name: Compara Mejores Seguros 2026
Description: Tema rediseñado para comparamejoresseguros.com. Enfoque en legibilidad, accesibilidad, rendimiento y buenas prácticas de AdSense.
Version: 1.0
Text Domain: csm2026
*/

@font-face { font-family: "Poppins"; src: url("fonts/Poppins-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("fonts/Roboto-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("fonts/Roboto-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("fonts/Roboto-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
	/* Paleta tomada del logo: marino y azul rey del texto, celeste del escudo, verde del check */
	--navy: #0A2F6E;
	--navy-900: #061D45;
	--blue: #0598EC;
	--blue-700: #0253A2;
	--blue-50: #E8F4FD;
	--green: #6CB80F;
	--green-700: #2D8212;
	--green-800: #236A0D;
	--green-50: #EEF7E3;
	--brand-gradient: linear-gradient(90deg, #0253A2 0%, #0598EC 55%, #6CB80F 100%);
	--ink: #14233D;
	--muted: #52607A;
	--line: #DDE5EF;
	--bg: #FFFFFF;
	--bg-tint: #F3F7FC;
	--success: #2D8212;
	--radius: 14px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(6,29,69,.06), 0 6px 20px rgba(6,29,69,.07);
	--shadow-hover: 0 2px 4px rgba(6,29,69,.08), 0 14px 32px rgba(2,83,162,.14);
	--font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
	--container: 1180px;
	--gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.7 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.4vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--muted); font-size: 15px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.ico { width: 22px; height: 22px; flex: none; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent; font: 600 16px/1.2 var(--font-head); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue-700); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-accent { background: var(--green-700); color: #fff; box-shadow: 0 4px 14px rgba(45,130,18,.25); }
.btn-accent:hover { background: var(--green-800); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-50); color: var(--navy); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; }
.link-arrow .ico { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--brand-gradient) top / 100% 3px no-repeat, rgba(255,255,255,.96); backdrop-filter: saturate(1.5) blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(6,29,69,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-logo { display: block; height: 62px; width: auto; }
@media (max-width: 640px) { .brand-logo { height: 46px; } }
.brand-mark { width: 34px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; font-family: var(--font-head); line-height: 1.05; }
.brand-text span { font-size: 13px; font-weight: 600; color: var(--blue-700); letter-spacing: .04em; text-transform: uppercase; }
.brand-text strong { font-size: 19px; font-weight: 700; }
.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.site-nav a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); font: 500 15px/1.2 var(--font-body); text-decoration: none; }
.site-nav a:hover { background: var(--bg-tint); color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--blue-700); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.site-nav .nav-cta { margin-left: 8px; }
.site-nav .nav-cta a { color: #fff; padding: 8px 18px; border-radius: 999px; box-shadow: none; }
.site-nav .nav-cta a:hover { background: var(--green-800); color: #fff; }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font: 600 15px var(--font-head); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav a { white-space: nowrap; }
@media (min-width: 1121px) and (max-width: 1260px) {
	.site-nav a { padding: 10px 8px; font-size: 14px; }
	.site-nav .nav-cta { margin-left: 4px; }
}
@media (max-width: 1120px) {
	.nav-toggle { display: inline-flex; }
	.site-nav { position: fixed; inset: 72px 0 0 0; background: #fff; padding: 16px var(--gutter) 32px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; }
	.nav-open .site-nav { transform: none; visibility: visible; }
	.nav-open { overflow: hidden; }
	.site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.site-nav a { padding: 16px 12px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
	.site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); }
	.site-nav .nav-cta { margin: 20px 0 0; }
	.site-nav .nav-cta a { text-align: center; padding: 14px; font-size: 17px; border: 0; }
}

/* ---------- Migas ---------- */
.breadcrumbs { font-size: 14px; color: var(--muted); padding: 14px 0 0; }
.breadcrumbs .container { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue-700); text-decoration: underline; }
.breadcrumbs .sep { color: #A3ACBD; }
.breadcrumbs [aria-current] { color: var(--ink); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Héroes ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--blue-700); font: 600 13px/1.3 var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--green); flex: none; }
.lead { font-size: 19px; color: var(--muted); }
.lead p { margin: 0; }
.hero, .page-hero { background:
	radial-gradient(900px 420px at 88% -10%, rgba(5,152,236,.16), transparent 62%),
	radial-gradient(640px 320px at -5% 105%, rgba(108,184,15,.10), transparent 60%),
	linear-gradient(180deg, var(--blue-50) 0%, #fff 100%); }
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 36px; list-style: none; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font: 700 30px/1 var(--font-head); color: var(--blue-700); }
.hero-stats strong::after { content: ""; display: block; width: 28px; height: 3px; margin-top: 8px; border-radius: 2px; background: var(--green); }
.hero-stats span { color: var(--muted); font-size: 15px; margin-top: 6px; }
.hero-panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.hero-panel-title { font: 600 15px var(--font-head); color: var(--muted); margin-bottom: 12px; }
.quick-list { list-style: none; }
.quick-list a { display: flex; align-items: center; gap: 14px; padding: 14px 10px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 8px; }
.quick-list li:last-child a { border-bottom: 0; }
.quick-list a:hover { background: var(--bg-tint); color: var(--navy); }
.quick-list a > .ico:first-child { color: var(--blue-700); background: var(--blue-50); border-radius: 10px; padding: 8px; width: 40px; height: 40px; }
.quick-list a span { flex: 1; }
.quick-list a > .ico:last-child { width: 18px; color: #A3ACBD; }
.page-hero { padding: 36px 0 40px; }
.page-hero--compact { padding-bottom: 28px; }
.page-hero--ficha .hero-grid { grid-template-columns: 1.15fr .85fr; }
.hero-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
@media (max-width: 860px) {
	.hero-grid, .page-hero--ficha .hero-grid { grid-template-columns: 1fr; gap: 32px; }
	.hero { padding: 32px 0 40px; }
	.hero-stats { gap: 24px; }
	.lead { font-size: 17px; }
}

/* ---------- Secciones ---------- */
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--tint { background: var(--bg-tint); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head p:not(.eyebrow) { color: var(--muted); }
.section-head--spaced { margin-top: 64px; }
.section-head--row { display: flex; justify-content: space-between; align-items: end; gap: 16px; max-width: none; flex-wrap: wrap; }
.group-title { font-size: 24px; margin: 40px 0 20px; }
.group-title:first-child { margin-top: 0; }
@media (max-width: 640px) { .section { padding: 44px 0; } }

/* ---------- Tarjetas ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; list-style: none; }
.card a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s, border-color .2s; }
.card a:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: #BFDDF6; }
.card-media { display: block; aspect-ratio: 16/10; background: var(--bg-tint); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.card-title { font: 600 18px/1.3 var(--font-head); color: var(--navy); }
.card-text { font-size: 15px; color: var(--muted); line-height: 1.55; flex: 1; }
.card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 500; font-size: 15px; color: var(--blue-700); }
.card-more .ico { width: 16px; height: 16px; }
.card-grid--logos { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card--logo .card-media { aspect-ratio: 16/9; background: #fff; padding: 20px 28px; border-bottom: 1px solid var(--line); }
.card--logo .card-media img { object-fit: contain; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature, .info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feature p, .info-card p { color: var(--muted); }
.feature-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 12px; background: var(--blue-50); color: var(--blue-700); margin-bottom: 16px; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.info-card h2 { font-size: 21px; }
@media (max-width: 860px) { .feature-grid, .info-grid { grid-template-columns: 1fr; } }

.check-list { list-style: none; }
.check-list li { position: relative; padding: 6px 0 6px 30px; color: var(--ink); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%; background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D8212' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }

.benefits { margin-top: 40px; }
.benefits ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; list-style: none; }
.benefits li { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--bg-tint); border-radius: var(--radius-sm); border-left: 3px solid var(--green); font-weight: 500; }
.benefits .ico { color: var(--green-700); width: 28px; height: 28px; }
.pull-quote { margin: 40px 0 0; padding: 28px 32px; border-left: 4px solid var(--green); background: var(--blue-50); border-radius: 0 var(--radius) var(--radius) 0; font: 600 21px/1.45 var(--font-head); color: var(--navy); }

.photo-band { position: relative; margin: 40px 0 0; border-radius: 20px; overflow: hidden; background: var(--navy); }
.photo-band img { width: 100%; height: 320px; object-fit: cover; opacity: .9; }
.photo-band figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 64px 36px 28px; background: linear-gradient(180deg, rgba(6,29,69,0) 0%, rgba(6,29,69,.88) 100%); color: #fff; font: 600 clamp(19px, 2.2vw, 26px)/1.35 var(--font-head); }
@media (max-width: 640px) { .photo-band img { height: 220px; } .photo-band figcaption { padding: 48px 20px 18px; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-700), var(--blue)); color: #fff; font: 700 17px var(--font-head); margin-bottom: 16px; }
.steps p { color: var(--muted); font-size: 16px; margin: 0; }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative; font: 600 17px/1.4 var(--font-head); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--blue-50); color: var(--blue-700); display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 20px; margin: 0; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-band { position: relative; background: radial-gradient(600px 300px at 100% 0%, rgba(5,152,236,.35), transparent 65%), linear-gradient(120deg, var(--navy-900) 0%, var(--navy) 55%, var(--blue-700) 100%); color: #fff; padding: 52px 0; }
.cta-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--brand-gradient); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 6px; }
.cta-band p { margin: 0; color: #C8DAF2; }

/* ---------- Comparador ---------- */
.cmp { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .cmp { grid-template-columns: 1fr; } }
.cmp-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.cmp-form fieldset { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.cmp-form legend { font: 600 18px var(--font-head); color: var(--navy); margin-bottom: 14px; padding: 0; }
.cmp-tipos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cmp-tipo { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: 500 15px/1.25 var(--font-body); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.cmp-tipo span { display: inline-flex; width: 30px; height: 30px; flex: none; align-items: center; justify-content: center; border-radius: 8px; background: var(--blue-50); color: var(--blue-700); }
.cmp-tipo .ico { width: 18px; height: 18px; }
.cmp-tipo:hover { border-color: var(--blue); }
.cmp-tipo[aria-pressed="true"] { border-color: var(--blue-700); background: var(--blue-50); color: var(--navy); font-weight: 600; box-shadow: inset 0 0 0 1px var(--blue-700); }
.cmp-tipo[aria-pressed="true"] span { background: var(--blue-700); color: #fff; }
.cmp-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cmp-field label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.cmp-field input, .cmp-field select, .cmp-mail input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: 400 16px var(--font-body); }
.cmp-field input:focus, .cmp-field select:focus, .cmp-mail input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(5,152,236,.2); }
.cmp-field [aria-invalid="true"] { border-color: #C62828; }
.cmp-side { background: var(--bg-tint); border-radius: 20px; padding: 26px; }
.cmp-steps { list-style: none; counter-reset: s; margin-bottom: 16px; }
.cmp-steps li { counter-increment: s; position: relative; padding: 0 0 16px 42px; font-size: 16px; color: var(--muted); }
.cmp-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-700), var(--blue)); color: #fff; font: 700 14px/30px var(--font-head); text-align: center; }
.cmp-steps strong { color: var(--navy); }

.cmp-results-wrap { scroll-margin-top: 90px; }
.cmp-results { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.cmp-item { display: grid; grid-template-columns: 44px 130px minmax(0, 1fr) 230px; gap: 20px; align-items: center; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.cmp-item--top { border: 2px solid var(--green); box-shadow: 0 6px 24px rgba(45,130,18,.12); }
.cmp-pos { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: var(--blue-50); color: var(--blue-700); font: 700 18px var(--font-head); }
.cmp-item--top .cmp-pos { background: var(--green-700); color: #fff; }
.cmp-logo img { width: 130px; height: 64px; object-fit: contain; }
.cmp-info h3 { margin: 0 0 4px; font-size: 19px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cmp-info p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.cmp-info .cmp-links { margin-top: 8px; font-size: 14px; }
.cmp-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--green-50); color: var(--green-800); font: 600 12px/1.5 var(--font-head); }
.cmp-precio { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.cmp-desde { font-size: 13px; color: var(--muted); }
.cmp-precio strong { font: 700 28px/1.15 var(--font-head); color: var(--navy); }
.cmp-item--top .cmp-precio strong { color: var(--green-800); }
.cmp-per, .cmp-rango, .cmp-anual { font-size: 13px; color: var(--muted); }
.cmp-anual { font-weight: 500; color: var(--ink); }
@media (max-width: 860px) {
	.cmp-item { grid-template-columns: 40px 1fr; grid-template-areas: "pos logo" "info info" "precio precio"; gap: 12px 16px; padding: 18px; }
	.cmp-pos { grid-area: pos; } .cmp-logo { grid-area: logo; } .cmp-info { grid-area: info; }
	.cmp-precio { grid-area: precio; align-items: flex-start; text-align: left; padding-top: 12px; border-top: 1px solid var(--line); }
}
.cmp-cubre { margin-top: 28px; padding: 24px 26px; background: var(--bg-tint); border-radius: var(--radius); }
.cmp-cubre h3 { margin-bottom: 8px; }
.cmp-share { margin-top: 24px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); }
.cmp-share h3 { margin-bottom: 14px; }
.cmp-share-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-whatsapp { background: #1EBE5A; color: #fff; }
.btn-whatsapp:hover { background: #179C49; color: #fff; }
.cmp-mail { display: flex; gap: 8px; flex: 1 1 380px; }
.cmp-mail input { flex: 1; min-width: 0; }
@media (max-width: 520px) { .cmp-mail { flex-direction: column; } .cmp-share-row .btn { width: 100%; } }
.cmp-disclaimer { display: flex; gap: 12px; margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.cmp-disclaimer .ico { color: var(--blue-700); }

/* ---------- Chips ---------- */
.chip-nav { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.chip:hover { border-color: var(--blue-700); color: var(--blue-700); }
.chip[aria-current="page"] { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font: 600 12px/1.6 var(--font-head); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }

/* ---------- Artículos y listados ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 24px; padding-bottom: 64px; align-items: start; }
@media (max-width: 1020px) { .article-layout { grid-template-columns: 1fr; gap: 40px; } }
.article { max-width: 760px; }

/* Blog más ancho: listado, categorías, búsquedas y artículos */
body.page-template-tmp_blog, body.category, body.search, body.single-post { --container: 1400px; }
body.page-template-tmp_blog .article-layout, body.category .article-layout, body.search .article-layout, body.single-post .article-layout { grid-template-columns: minmax(0, 1fr) 320px; }
body.single-post .article { max-width: none; }
body.single-post .prose { font-size: 19px; }
body.page-template-tmp_blog .post-grid--2, body.category .post-grid--2, body.search .post-grid--2 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1020px) {
	body.page-template-tmp_blog .article-layout, body.category .article-layout, body.search .article-layout, body.single-post .article-layout { grid-template-columns: 1fr; }
	body.page-template-tmp_blog .post-grid--2, body.category .post-grid--2, body.search .post-grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	body.page-template-tmp_blog .post-grid--2, body.category .post-grid--2, body.search .post-grid--2 { grid-template-columns: 1fr; }
}
.article-header h1 { margin-top: 14px; font-size: clamp(28px, 3.8vw, 40px); }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; margin-top: 16px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .ico { width: 16px; height: 16px; }
.article-media { margin: 28px 0; }
.article-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 16/9; object-fit: cover; }
.toc { background: var(--bg-tint); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 22px 26px; margin: 0 0 32px; }
.toc-title { font: 600 15px var(--font-head); color: var(--navy); margin-bottom: 8px; }
.toc ol { padding-left: 20px; }
.toc li { padding: 3px 0; font-size: 16px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.prose { font-size: 18px; line-height: 1.75; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 1.8em 0 .6em; }
.prose h3 { font-size: 20px; margin: 1.5em 0 .5em; }
.prose p, .prose ul, .prose ol, .prose table { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--green-700); }
.prose strong { color: var(--navy); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--blue); color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-tint); color: var(--navy); font-family: var(--font-head); font-weight: 600; }
.prose img { border-radius: var(--radius-sm); }
.prose .wpcf7 { margin: 1.5em 0; }

.disclaimer { display: flex; gap: 14px; margin: 40px 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; color: var(--muted); }
.disclaimer .ico { color: var(--blue-700); margin-top: 2px; }
.disclaimer p { margin: 0; }
.related { margin-top: 48px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-grid--2 { grid-template-columns: repeat(2, 1fr); }
.post-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1020px) { .post-grid, .post-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid, .post-grid--2, .post-grid--3 { grid-template-columns: 1fr; } }
.post-card a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.post-card a:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.post-card-media { display: block; aspect-ratio: 16/9; background: var(--bg-tint); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px; flex: 1; align-items: flex-start; }
.post-card-title { font-size: 19px; margin: 0; }
.post-card-text { color: var(--muted); font-size: 15px; line-height: 1.55; flex: 1; }
.post-card-meta { color: var(--muted); font-size: 13px; }
.post-card--featured { grid-column: 1 / -1; }
.post-card--featured a { flex-direction: row; }
.post-card--featured .post-card-media { flex: 0 0 52%; aspect-ratio: auto; min-height: 280px; }
.post-card--featured .post-card-body { padding: 32px; justify-content: center; }
.post-card--featured .post-card-title { font-size: clamp(22px, 2.4vw, 28px); }
@media (max-width: 760px) {
	.post-card--featured a { flex-direction: column; }
	.post-card--featured .post-card-media { min-height: 0; aspect-ratio: 16/9; }
	.post-card--featured .post-card-body { padding: 20px; }
}
.pagination { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 40px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.empty { padding: 32px; background: var(--bg-tint); border-radius: var(--radius); }

/* ---------- Barra lateral ---------- */
.sidebar { display: flex; flex-direction: column; gap: 24px; height: 100%; }
.side-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.side-title { font: 600 17px var(--font-head); color: var(--navy); margin-bottom: 12px; }
.side-cta { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--navy) 0%, var(--blue-700) 100%); border: 0; color: #C8DAF2; }
.side-cta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--brand-gradient); }
.side-cta .side-title { color: #fff; }
.side-list { list-style: none; }
.side-list a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; }
.side-list li:last-child a { border-bottom: 0; }
.side-list a:hover, .side-list a[aria-current] { color: var(--blue-700); }
.side-list span { color: var(--muted); font-size: 13px; }
.side-sticky { position: sticky; top: 96px; }
@media (max-width: 1020px) { .side-sticky { position: static; } }

/* ---------- Publicidad (claramente separada del contenido) ---------- */
.ad { margin: 40px auto; text-align: center; min-height: 120px; }
.ad-inline { margin: 36px 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ad-label { display: block; margin-bottom: 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8A93A6; }
.ad-side { margin: 0; min-height: 250px; }

/* ---------- Búsqueda y formularios ---------- */
.search-form { display: flex; gap: 8px; max-width: 560px; margin-top: 24px; }
.search-form input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font: 16px var(--font-body); background: #fff; }
.search-form input:focus { outline: none; border-color: var(--blue-700); box-shadow: 0 0 0 3px var(--blue-50); }
.search-form .btn { padding: 10px 20px; }
@media (max-width: 480px) { .search-form .btn span { display: none; } }
.wpcf7 input:not([type=submit]):not([type=checkbox]):not([type=radio]), .wpcf7 select, .wpcf7 textarea { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid #C9D1DE; border-radius: var(--radius-sm); font: 16px var(--font-body); background: #fff; color: var(--ink); }
.wpcf7 textarea { min-height: 140px; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { outline: none; border-color: var(--blue-700); box-shadow: 0 0 0 3px var(--blue-50); }
.wpcf7 label { display: block; font-weight: 500; font-size: 15px; }
.wpcf7 p { margin-bottom: 16px; }
.wpcf7 input[type=submit] { min-height: 48px; padding: 12px 28px; border: 0; border-radius: 999px; background: var(--green-700); color: #fff; font: 600 16px var(--font-head); cursor: pointer; box-shadow: 0 4px 14px rgba(45,130,18,.25); }
.wpcf7 input[type=submit]:hover { background: var(--green-800); }

/* ---------- Pie ---------- */
.site-footer { position: relative; background: var(--navy-900); color: #B4C3DD; font-size: 15px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--brand-gradient); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.brand--light { color: #fff; background: #fff; padding: 10px 16px; border-radius: 14px; }
.brand--light .brand-logo { height: 48px; }
.brand--light .brand-text span { color: #8CCBEE; }
.footer-brand p { margin-top: 16px; }
.footer-note { font-size: 13px; color: #8F9AB5; }
.footer-title { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: #D5DCEB; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--green); }
.footer-title::after { content: ""; display: block; width: 24px; height: 3px; margin-top: 8px; border-radius: 2px; background: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 13px; color: #8F9AB5; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
