/* Blog Avila Insurance — estilo alineado con avilainsurance.net
   Colores: azul marino #1B1E31, lima #C5E73A, lavanda #B9A8F7, #F5F3FF
   Tipografía: Inter (si está instalada) con pila del sistema. Sin fuentes externas, sin cookies, sin analíticas. */

:root {
  --navy: #1B1E31;
  --navy-deep: #12142A;
  --lime: #C5E73A;
  --lime-dark: #B2D426;
  --lav: #B9A8F7;
  --lav-soft: #F5F3FF;
  --ink: #1B1E31;
  --muted: #4A4E69;
  --line: #E3DFF5;
  --footer-text: #B6B9CC;
  --radius: 12px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
}
@media (min-width: 720px) { body { font-size: 18px; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: var(--lav); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--navy); }
:focus-visible { outline: 3px solid var(--lav); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 20;
  background: var(--lime); color: var(--navy); padding: 10px 16px; font-weight: 700;
  border-radius: 0 0 var(--radius) 0; text-decoration: none;
}
.skip:focus { left: 0; }

/* Encabezado */
.site-header { background: var(--navy); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .02em; font-size: 1.05rem; white-space: nowrap; }
.brand span { color: var(--lime); font-weight: 700; }
.site-nav a { color: #fff; text-decoration: none; font-size: .95rem; font-weight: 600; margin-left: 18px; white-space: nowrap; }
.site-nav a:first-child { margin-left: 0; }
.site-nav a:hover { color: var(--lime); }

/* Botones */
.btn {
  display: inline-block; background: var(--lime); color: var(--navy);
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  padding: 15px 24px; border-radius: var(--radius); border: 0; cursor: pointer;
}
.btn:hover { background: var(--lime-dark); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #2A2E4A; }
.btn-line { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px var(--lav); }
.btn-line:hover { background: rgba(185,168,247,.18); }

/* Portada */
.hero { background: var(--navy); color: #fff; padding: 56px 0 64px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--lime); margin: 0 0 14px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.12; font-weight: 800; margin: 0 0 18px; color: #fff; max-width: 18em; }
.hero p.lead { font-size: 1.1rem; color: #DCDDE8; max-width: 36em; margin: 0 0 26px; }
.hero .byline { font-size: .95rem; color: var(--footer-text); margin: 18px 0 0; }

.section { padding: 56px 0; }
.section.soft { background: var(--lav-soft); }
.section h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.2; font-weight: 800; margin: 0 0 12px; }
.section .sub { color: var(--muted); max-width: 40em; margin: 0 0 28px; }

.cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--lav-soft); border-top: 5px solid var(--lav); border-radius: var(--radius); padding: 24px 22px; display: flex; flex-direction: column; }
.card h3 { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.25; font-weight: 800; }
.card p { margin: 0 0 18px; color: var(--muted); flex: 1; }
.card a.more { font-weight: 700; }

.pillar { padding: 28px 0; border-top: 1px solid var(--line); }
.pillar:first-of-type { border-top: 0; }
.pillar h3 { font-size: 1.4rem; margin: 0 0 6px; font-weight: 800; }
.pillar p { margin: 0 0 12px; color: var(--muted); }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.post-list a { font-weight: 700; }
.post-list small { display: block; color: var(--muted); font-weight: 400; }
.soon { background: #fff; border: 2px dashed var(--lav); border-radius: var(--radius); padding: 14px 18px; color: var(--muted); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Quién escribe */
.author { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.author img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--lav); flex: none; }
.author .who { flex: 1; min-width: 240px; }
.author h2, .author h3 { margin: 0 0 2px; font-size: 1.3rem; font-weight: 800; }
.author .role { margin: 0 0 10px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.author p { margin: 0 0 10px; }

/* Artículo */
.crumbs { font-size: .9rem; color: var(--muted); margin: 28px 0 10px; }
.crumbs a { color: var(--muted); }
article.post h1 { font-size: clamp(1.9rem, 5.5vw, 2.7rem); line-height: 1.15; font-weight: 800; margin: 0 0 14px; }
.post-meta { color: var(--muted); font-size: .92rem; margin: 0 0 24px; }
.post-meta strong { color: var(--ink); }
.post .summary { background: var(--lav-soft); border-left: 5px solid var(--lime); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 20px; margin: 0 0 28px; }
.post .summary h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; }
.post .summary ul { margin: 0; padding-left: 1.2em; }
.post h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); line-height: 1.25; font-weight: 800; margin: 40px 0 12px; }
.post h3 { font-size: 1.2rem; font-weight: 800; margin: 28px 0 8px; }
.post p, .post li { margin: 0 0 14px; }
.post ul, .post ol { padding-left: 1.3em; margin: 0 0 16px; }
.post blockquote { margin: 20px 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--lav); color: var(--muted); }
.callout { background: var(--lav-soft); border: 2px solid var(--lav); border-radius: var(--radius); padding: 16px 20px; margin: 22px 0; }
.callout p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 20px 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95rem; }
th { background: var(--navy); color: #fff; text-align: left; padding: 10px 12px; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }

.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.sources { font-size: .95rem; color: var(--muted); }
.sources h2 { color: var(--ink); }
.sources li { margin-bottom: 8px; }

.cta-box { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px 24px; margin: 44px 0 28px; }
.cta-box h2 { color: #fff; margin: 0 0 8px; font-size: 1.5rem; }
.cta-box p { color: #DCDDE8; margin: 0 0 18px; }
.cta-box .small { font-size: .88rem; color: var(--footer-text); margin: 14px 0 0; }

.author-box { background: var(--lav-soft); border-radius: var(--radius); padding: 22px 20px; margin: 0 0 28px; }
.author-box h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }

.related { margin: 0 0 28px; }
.related h2 { font-size: 1.2rem; margin: 0 0 8px; }

.disclaimer { font-size: .85rem; line-height: 1.55; color: var(--muted); background: var(--lav-soft); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 40px; }

/* Pie */
.site-footer { background: var(--navy-deep); color: var(--footer-text); padding: 36px 0; font-size: .92rem; }
.site-footer a { color: #fff; text-decoration-color: var(--lav); }
.site-footer .cols { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-footer .cols { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: .95rem; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .08em; }
.site-footer p { margin: 0 0 6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .copy { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
