/* ==========================================================================
   BLOG — ANFITRION — estilos comunes (index + articulos)
   ==========================================================================
   Mismo esqueleto que el blog del Talonario (ancho 720px optimo para lectura
   larga, nav sticky, callouts, CTA box), pero con la paleta de Anfitrion:
   pizarra + miel sobre pastel sea salt. Fraunces para titulos, Inter para
   cuerpo — identico a la landing /eventos/.

   La paleta se replica aca a proposito: el blog es standalone y no debe
   depender del CSS de la landing. Si cambia la marca, sincronizar con
   frontend/eventos/index.html.
   ========================================================================== */

:root {
    --bg: #ECEEE9; --card: #F5F6F2; --bg2: #E2E5DE;
    --line: #D9DDD3;
    --ink: #1E2622; --muted: #5F6763; --faint: #828983;
    --green: #3E5A5C; --green-d: #2F484A; --green-l: #DBE5E5;
    --gold: #D8B57A; --gold-ink: #8B6A2F;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif; background: var(--bg);
    color: var(--ink); margin: 0; line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav */
header.nav {
    background: rgba(236,238,233,.9); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40;
    padding: 12px 0;
}
header.nav .wrap {
    max-width: 900px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-badge {
    width: 34px; height: 34px; border-radius: 10px; background: var(--green);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 1.2rem; }
.logo-sub { font-size: .65rem; color: var(--faint); letter-spacing: .05em; text-transform: uppercase; }
.cta {
    background: var(--green); color: #EEF0EA; padding: 10px 18px; border-radius: 999px;
    font-weight: 700; font-size: .85rem; text-decoration: none; display: inline-block;
    white-space: nowrap;
}
.cta:hover { background: var(--green-d); text-decoration: none; }

/* Article */
main.article { max-width: 720px; margin: 0 auto; padding: 30px 20px 60px; }
.breadcrumb { color: var(--faint); font-size: .78rem; margin-bottom: 24px; }
.badge {
    display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--gold-ink); background: rgba(216,181,122,.22);
    padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
article h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.7rem, 5vw, 2.2rem); font-weight: 600; line-height: 1.18;
    margin: 0 0 16px; letter-spacing: -.02em; color: var(--ink);
}
article h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.45rem; font-weight: 600; margin: 42px 0 14px;
    letter-spacing: -.015em; color: var(--ink);
}
article h3 {
    font-size: 1.05rem; font-weight: 700; margin: 28px 0 10px; color: var(--ink);
}
article .lead { font-size: 1.12rem; color: var(--muted); line-height: 1.6; margin: 0 0 14px; }
article .meta { color: var(--faint); font-size: .78rem; margin: 0 0 30px; }
article p { color: var(--muted); font-size: 1rem; line-height: 1.75; margin: 0 0 14px; }
article ul, article ol { color: var(--muted); font-size: 1rem; line-height: 1.75; padding-left: 24px; margin: 0 0 18px; }
article li { margin-bottom: 8px; }
article strong { color: var(--ink); }
article a { color: var(--green); font-weight: 600; }

/* Callout (avisos, tips, advertencias) */
.callout {
    background: rgba(216,181,122,.14); border-left: 3px solid var(--gold);
    padding: 14px 18px; border-radius: 10px; margin: 24px 0;
    color: var(--ink); font-size: .95rem; line-height: 1.6;
}
.callout.success { background: rgba(62,90,92,.10); border-left-color: var(--green); }
.callout.info { background: rgba(62,90,92,.07); border-left-color: var(--green); }
.callout strong { color: var(--ink); }

/* CTA box al final del articulo */
.cta-box {
    background: linear-gradient(135deg, var(--green-l), rgba(219,229,229,.35));
    border: 1px solid var(--green); border-radius: 16px;
    padding: 28px 24px; text-align: center; margin: 40px 0;
}
.cta-box h3 { font-family: 'Fraunces', Georgia, serif; color: var(--ink); font-size: 1.3rem; margin: 0 0 8px; font-weight: 600; }
.cta-box p { color: var(--muted); margin: 0 0 18px; }

/* Tabla comparativa */
article table {
    width: 100%; border-collapse: collapse; margin: 20px 0;
    font-size: .9rem; background: var(--card);
    border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
article th, article td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
article th {
    background: var(--bg2); color: var(--ink); font-weight: 700;
    text-transform: uppercase; font-size: .7rem; letter-spacing: .06em;
}
article tr:last-child td { border-bottom: none; }

/* Tarjetas del index del blog */
.post-list { max-width: 900px; margin: 0 auto; padding: 20px 20px 60px; display: grid; gap: 16px; }
.post-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    padding: 22px; transition: transform .15s ease, box-shadow .15s ease;
    display: block; color: inherit;
}
.post-card:hover {
    text-decoration: none; transform: translateY(-2px);
    box-shadow: 0 14px 30px -18px rgba(30,38,34,.35);
}
.post-card h2 {
    font-family: 'Fraunces', Georgia, serif; font-size: 1.25rem; font-weight: 600;
    margin: 10px 0 8px; color: var(--ink); line-height: 1.3;
}
.post-card p { color: var(--muted); font-size: .92rem; margin: 0; line-height: 1.6; }
.blog-hero { max-width: 900px; margin: 0 auto; padding: 40px 20px 10px; }
.blog-hero h1 {
    font-family: 'Fraunces', Georgia, serif; font-size: clamp(1.9rem, 5vw, 2.5rem);
    font-weight: 600; margin: 8px 0 10px; letter-spacing: -.02em; color: var(--ink);
}
.blog-hero p { color: var(--muted); font-size: 1.05rem; max-width: 60ch; margin: 0; }
.eyebrow {
    font-size: .7rem; text-transform: uppercase; letter-spacing: .14em;
    font-weight: 700; color: var(--gold-ink); margin: 0;
}
@media (min-width: 720px) {
    .post-list { grid-template-columns: 1fr 1fr; }
}

/* Footer */
footer {
    border-top: 1px solid var(--line); background: var(--bg2);
    padding: 24px 20px; text-align: center; color: var(--faint);
    font-size: .8rem; margin-top: 60px;
}
footer a { color: var(--green); margin: 0 6px; }
