/* aindez.com: the look of aindez.si (aindez.ai's dark theme): near-black page, mint green, serif headlines,
   big rounded cards with a light outline and pill buttons. */
:root {
  --verde: #34e39b;
  --on-verde: #04160f;
  --bg: #14161a;
  --bg-2: #0f1114;
  --card: #1b1e23;
  --ink: #e6e3dc;
  --ink-2: #9da1a8;
  --ink-3: #808690;
  --rule: #e6e3dc2b;
  --borde: #e6e3dc59;
  --acento: #34e39b;      /* green as text */
  --header: rgba(20, 22, 26, .92);
  --sombra: 0 18px 40px rgba(0, 0, 0, .3);
  --max: 1180px;
  --serif: "Source Serif 4", Georgia, serif;
}
/* light mode, picked with the sun/moon switch: the cream and navy of the country sites */
[data-tema="claro"] {
  --verde: #17D863;
  --on-verde: #04160f;
  --bg: #f7f5f0;
  --bg-2: #efece5;
  --card: #efece5;      /* soft, never pure white: it glares on a cream page */
  --ink: #20223F;
  --ink-2: #4a5160;
  --ink-3: #6b7280;
  --rule: #20223f1a;
  --borde: #20223f3d;
  --acento: #0e8a43;
  --header: rgba(247, 245, 240, .94);
  --sombra: 0 18px 40px -20px rgba(32, 34, 63, .35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--acento); }

/* header */
header.main { position: sticky; top: 0; z-index: 10; background: var(--header); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand img { height: 32px; width: auto; }
.nav-der { display: flex; align-items: center; gap: 10px; }
.idioma { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-decoration: none; color: var(--ink); border: 1.5px solid var(--borde); border-radius: 999px; padding: 6px 14px; }
.idioma:hover { border-color: var(--ink); }
.social { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; color: var(--ink-2); }
.social svg { width: 19px; height: 19px; fill: currentColor; }
.social:hover { color: var(--acento); background: var(--rule); }
.tema { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; border: 1.5px solid var(--borde); color: var(--ink); }
.tema svg { width: 17px; height: 17px; fill: currentColor; }
.tema:hover { border-color: var(--ink); color: var(--acento); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px; background: var(--verde); color: var(--on-verde); font-weight: 700; font-size: 16px; text-decoration: none; }
.btn:hover { filter: brightness(1.06); }

/* hero: headline and country picker */
.hero { padding: 56px 0 64px; }
.hero .grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5vw, 64px); margin: 12px 0 18px; color: var(--ink); }
.hero h1 i { color: var(--acento); }
.hero .lead { font-size: 19px; color: var(--ink-2); max-width: 540px; margin-bottom: 30px; }
.paises { background: var(--card); border: 1.5px solid var(--borde); border-radius: 26px; padding: 28px; box-shadow: var(--sombra); }
.paises h2 { font-size: 26px; color: var(--ink); }
/* country list, iPhone-menu style: no boxes, hairlines between rows, flag on the left, a soft arrow on the right */
.lista { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }   /* rows never grow wider than the card */
.pais { display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--rule); text-decoration: none; transition: color .15s; }
.pais:last-child { border-bottom: 0; padding-bottom: 2px; }
.pais:hover .flecha, .pais:focus-visible .flecha { color: var(--acento); transform: translateX(2px); }
.pais:hover b, .pais:focus-visible b { color: var(--acento); }
.pais:active { background: var(--rule); }
.bandera { font-size: 24px; line-height: 1; }
.pais b { display: block; font-size: 16px; transition: color .15s; }
.pais > span:nth-child(2) { flex: 1; min-width: 0; }
.pais small { display: block; color: var(--ink-3); font-size: 13px; }
.pais .det { color: var(--ink-2); }
.flecha { margin-left: auto; color: var(--ink-3); font-size: 18px; transition: color .15s, transform .15s; }


footer { background: var(--bg-2); color: var(--ink-3); font-size: 14px; border-top: 1px solid var(--rule); }
.pie { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.redes { display: inline-flex; align-items: center; gap: 2px; }
.pie .redes { margin-left: auto; }

/* 404: same frame as the home, a big 404 and the country list */
.nf { min-height: calc(100svh - 129px); display: flex; align-items: center; padding: 48px 0; }
.nf .grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; width: 100%; }
.nf-num { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(88px, 12vw, 150px); line-height: .9; color: var(--acento); letter-spacing: -.03em; }
.nf h1 { font-size: clamp(32px, 4vw, 48px); margin: 14px 0 14px; color: var(--ink); }
.nf .paises h2 { margin-bottom: 16px; }
.nf .lead { font-size: 18px; color: var(--ink-2); max-width: 480px; margin-bottom: 28px; }

@media (prefers-reduced-motion: reduce) { .pais, .pais b, .flecha { transition: none; } }

/* compact desktop screens: keep each section inside the viewport */
@media (min-width: 981px) and (max-height: 800px) {
  .pais { padding: 10px 4px; }
  .hero { padding: 36px 0 44px; }
  .hero h1 { font-size: 52px; }
  .paises { padding: 22px; }
}
@media (max-width: 980px) {
  .hero .grid, .nf .grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .brand img { height: 26px; }
  .hero { padding: 32px 0 40px; }
  .hero .lead { display: none; }
  .hero h1 { margin-bottom: 0; }
  .paises { padding: 20px 16px; border-radius: 22px; }
  .pie { font-size: 13px; padding-top: 12px; padding-bottom: 12px; }
}

/* One screen, like aindez.si: header, the content centered in the remaining height, footer. */
body.pag-inicio { min-height: 100svh; display: flex; flex-direction: column; }
.portada { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.portada .hero { padding: 32px 0; }
body.pag-inicio .pie { min-height: 50px; }

@media (max-width: 980px) {
  .nav-der { gap: 6px; }
  .portada .hero { padding: 12px 0 14px; }
  .portada .hero .grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .portada .hero .eyebrow { display: none; }
  .portada .hero h1 { font-size: clamp(28px, 7.6vw, 44px); margin: 0 0 12px; }
  .portada .paises { padding: 14px 12px; }
  .portada .paises h2 { font-size: 20px; }
}
@media (max-width: 640px) {
  body.pag-inicio .pie { min-height: 44px; font-size: 12px; padding-top: 6px; padding-bottom: 6px; }
  /* on phones the detail stays on one line */
  .pais { padding: 7px 2px; }
  .bandera { font-size: 22px; }
  .pais small { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .social { width: 32px; }
}

/* blog: a narrow reading column; the index lists each post as a row, the post is a long article (it scrolls). */
.nav-link { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink-2); padding: 6px 10px; border-radius: 999px; }
.nav-link:hover, .nav-link.activo { color: var(--ink); }
.nav-link.activo { color: var(--acento); }
.blog { padding: 48px 0 72px; }
.estrecho { max-width: 760px; }
.blog h1 { font-size: clamp(34px, 4.4vw, 50px); margin: 10px 0 14px; color: var(--ink); }
.blog .lead { font-size: 19px; color: var(--ink-2); line-height: 1.5; }
.blog .meta { display: block; font-size: 13px; color: var(--ink-3); }
.blog .meta .nota { color: var(--acento); }
.entradas { margin-top: 36px; border-top: 1px solid var(--rule); }
.entrada { position: relative; display: block; padding: 24px 40px 24px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.entrada h2 { font-size: 24px; margin: 8px 0 8px; color: var(--ink); transition: color .15s; }
.entrada p { color: var(--ink-2); font-size: 16px; }
.entrada .mas { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 20px; transition: color .15s, transform .15s; }
.entrada:hover h2 { color: var(--acento); }
.entrada:hover .mas { color: var(--acento); transform: translate(2px, -50%); }
.vacio { padding: 32px 0; color: var(--ink-3); }
.post .volver { display: inline-block; font-size: 14px; color: var(--ink-2); text-decoration: none; margin-bottom: 22px; }
.post .volver:hover { color: var(--acento); }
.post .lead { margin-top: 0; }
.cuerpo { margin-top: 36px; font-size: 17.5px; line-height: 1.65; }
.cuerpo > * + * { margin-top: 18px; }
.cuerpo h2 { font-size: 28px; margin-top: 44px; color: var(--ink); }
.cuerpo h3 { font-size: 22px; margin-top: 32px; color: var(--ink); }
.cuerpo h2 + *, .cuerpo h3 + * { margin-top: 14px; }
.cuerpo a { color: var(--acento); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cuerpo strong { color: var(--ink); }
.cuerpo ul, .cuerpo ol { padding-left: 24px; }
.cuerpo li + li { margin-top: 8px; }
/* quote: a soft panel, no hard outline, text a step lighter than the body so it reads calmly */
.cuerpo blockquote { margin: 28px 0; padding: 22px 26px; border-radius: 22px; background: var(--rule); border: 0; border-left: 3px solid color-mix(in srgb, var(--verde) 55%, transparent); color: var(--ink-2); font-family: var(--serif); font-size: 20px; line-height: 1.45; font-style: normal; font-weight: 400; }
.cuerpo blockquote p { margin: 0; }
@media (max-width: 640px) { .cuerpo blockquote { padding: 18px 20px; font-size: 19px; border-radius: 16px; } }
.cuerpo hr { border: 0; border-top: 1px solid var(--rule); margin: 40px 0; }
.cuerpo code { font: 15px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--card); border: 1px solid var(--rule); border-radius: 6px; padding: 1px 6px; }
.tabla { overflow-x: auto; }
.cuerpo table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.cuerpo th, .cuerpo td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.cuerpo th { color: var(--ink-3); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.cuerpo hr + p { font-size: 15px; color: var(--ink-3); }
@media (max-width: 640px) {
  .blog { padding: 28px 0 48px; }
  .blog .lead { font-size: 17px; }
  .cuerpo { font-size: 17px; }
  .cuerpo h2 { font-size: 24px; margin-top: 36px; }
  .entrada { padding-right: 28px; }
  .nav-link { padding: 6px 8px; }
}
/* post subtitle: serif italic in the accent green, under the title */
.subtitulo { font-family: var(--serif); font-style: normal; font-weight: 600; color: var(--acento); line-height: 1.25; }
.post .subtitulo { font-size: clamp(22px, 2.6vw, 30px); margin: -4px 0 18px; }
.entrada .subtitulo { font-size: 18px; margin: -2px 0 8px; }
@media (max-width: 640px) { .post .subtitulo { font-size: 21px; } }
/* post layout like a magazine article: cover image, breadcrumb, author line, closing box, share, author and latest */
.portada-post { width: 100%; height: auto; border-radius: 22px; margin-bottom: 26px; border: 1px solid var(--rule); }
.migas { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.migas a { color: var(--ink-2); text-decoration: none; }
.migas a:hover { color: var(--acento); }
.post .meta { margin: 0 0 6px; }
.post .meta b { color: var(--ink-2); font-weight: 600; }
.post .cuerpo { margin-top: 30px; }
.cierre { margin-top: 40px; padding: 22px 26px; border-radius: 22px; background: var(--card); border: 1.5px solid var(--borde); }
.cierre p { font-weight: 700; font-size: 18px; line-height: 1.45; color: var(--ink); }
.compartir { display: flex; align-items: center; gap: 4px; margin-top: 28px; font-size: 13px; color: var(--ink-3); }
.compartir span { margin-right: 8px; }
.autor { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); }
.autor p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
.autor b { color: var(--ink); }
.ultimo { margin-top: 40px; }
.ultimo .entradas { margin-top: 10px; }
.ultimo .entrada { padding: 16px 40px 16px 0; }
.ultimo .entrada h2 { font-size: 20px; margin: 4px 0 0; }
@media (max-width: 640px) { .portada-post { border-radius: 16px; margin-bottom: 18px; } .cierre { padding: 18px 20px; } }
.fuentes { margin-top: 0; }
.fuentes hr { margin: 28px 0 16px; }
.cuerpo .accion { margin-top: 26px; } .cuerpo .accion .btn { text-decoration: none; }
.banner { display: block; margin-top: 28px; border-radius: 22px; overflow: hidden; border: 1px solid var(--rule); } .banner img { width: 100%; height: auto; transition: transform .2s; } .banner:hover img { transform: scale(1.01); } @media (max-width: 640px) { .banner { border-radius: 16px; } }
.post .meta b a, .autor b a { text-decoration: none; color: inherit; } .post .meta b a:hover, .autor b a:hover { color: var(--acento); }
/* on phones the reading time drops to its own line under the byline */
@media (max-width: 640px) { .post .meta .lectura { display: block; } .post .meta .lectura .sep { display: none; } }
/* inline diagrams in posts: themed with the page's own tokens */
.cuerpo .figura { margin: 32px 0; }
.diagrama { width: 100%; height: auto; display: block; font-family: Inter, system-ui, sans-serif; }
.diagrama .titulo { font-family: var(--serif); font-size: 30px; font-weight: 600; fill: var(--ink); }
.diagrama .vs { font-family: var(--serif); font-style: italic; font-size: 34px; fill: var(--ink-3); }
.diagrama .plataforma { fill: var(--card); stroke: var(--borde); stroke-width: 2; }
.diagrama .etiqueta { font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; fill: var(--ink-3); }
.diagrama .modulo, .diagrama .sistema { fill: var(--bg); stroke: var(--borde); stroke-width: 1.5; }
.diagrama .mod { font-size: 18px; font-weight: 600; fill: var(--ink); }
.diagrama .agente { fill: var(--bg); stroke: var(--borde); stroke-width: 1.5; }
.diagrama .punto { fill: var(--verde); }
.diagrama .agente-t, .diagrama .aprueba { font-size: 17px; font-weight: 600; fill: var(--ink-2); }
.diagrama .enlace { stroke: var(--borde); stroke-width: 2; stroke-dasharray: 6 6; }
.diagrama .centro { fill: var(--verde); }
.diagrama .centro-t { font-size: 22px; font-weight: 800; fill: var(--on-verde); }
.diagrama .cap { font-size: 18px; fill: var(--ink-2); }
@media (max-width: 640px) { .diagrama .mod { font-size: 22px; } .diagrama .cap { font-size: 22px; } .diagrama .titulo { font-size: 34px; } }
/* comparison tables: the row label in the first column reads as a heading */
.cuerpo td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
/* phones: the comparison table stacks; each row is a card with its label on top and one block per column */
@media (max-width: 640px) {
  .cuerpo table, .cuerpo tbody, .cuerpo tr, .cuerpo td { display: block; width: 100%; }
  .cuerpo thead { display: none; }
  .cuerpo tr { padding: 14px 0 16px; border-bottom: 1px solid var(--rule); }
  .cuerpo td { border: 0; padding: 4px 0; white-space: normal; }
  .cuerpo td:first-child { font-family: var(--serif); font-size: 19px; padding-bottom: 8px; }
  .cuerpo td:not(:first-child) { padding-left: 12px; border-left: 2px solid var(--rule); margin-top: 8px; }
  .cuerpo td:not(:first-child)::before { content: attr(data-col); display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--acento); margin-bottom: 2px; }
}
/* blog index: each post with its share image beside the text (on top on phones) */
.blog .estrecho:has(.con-foto) { max-width: 900px; }
.entrada.con-foto { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: center; }
.entrada .foto { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--rule); transition: transform .2s; }
.entrada:hover .foto { transform: scale(1.015); }
.entrada .texto { display: block; min-width: 0; }
@media (max-width: 640px) {
  .entrada.con-foto { grid-template-columns: 1fr; gap: 14px; }
  .entrada .foto { border-radius: 12px; }
}
/* blog index, magazine style: header, one large feature, then a three-column grid of cards with cover, title, author, excerpt */
.portada-blog .wrap { max-width: var(--max); }
.portada-blog .lead { margin-bottom: 34px; }
.destacado { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: center; text-decoration: none; padding: 26px; border-radius: 28px; background: var(--card); border: 1px solid var(--rule); }
.destacado .foto, .tarjeta .foto { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 18px; border: 1px solid var(--rule); display: block; transition: transform .25s; }
.destacado:hover .foto, .tarjeta:hover .foto { transform: scale(1.012); }
.destacado .texto { display: block; min-width: 0; }
.destacado h2 { font-size: clamp(30px, 3.2vw, 42px); margin: 10px 0 8px; color: var(--ink); line-height: 1.08; transition: color .15s; }
.destacado .subtitulo { font-size: 21px; margin: 0 0 14px; }
.destacado .bajada { color: var(--ink-2); font-size: 16px; margin: 12px 0 22px; }
.destacado .btn { padding: 11px 22px; font-size: 15px; }
.destacado:hover h2, .tarjeta:hover h3 { color: var(--acento); }
.por { display: block; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-3); }
.grilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; margin-top: 44px; }
.tarjeta { display: block; text-decoration: none; }
.tarjeta h3 { font-size: 23px; line-height: 1.15; margin: 16px 0 6px; color: var(--ink); transition: color .15s; }
.tarjeta p { color: var(--ink-2); font-size: 15px; margin-top: 10px; }
@media (max-width: 980px) {
  .destacado { grid-template-columns: 1fr; gap: 22px; padding: 18px; }
  .grilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .destacado { padding: 14px; border-radius: 20px; }
  .destacado h2 { font-size: 28px; }
  .destacado .subtitulo { font-size: 18px; }
  .grilla { grid-template-columns: 1fr; gap: 30px; margin-top: 32px; }
  .destacado .foto, .tarjeta .foto { border-radius: 14px; }
}
/* author block with photo */
.autor-fila { display: flex; align-items: center; gap: 18px; margin-top: 12px; }
.autor-fila p { margin-top: 0; }
.avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--rule); }
/* newsletter: inline box and its page */
.oculto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sus-bloque { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 48px; padding: 28px 30px; border-radius: 24px; background: var(--card); border: 1px solid var(--rule); }
.sus-bloque h2 { font-size: 26px; margin: 8px 0 6px; color: var(--ink); }
.sus-bloque p { color: var(--ink-2); font-size: 15.5px; }
.sus-form { display: flex; gap: 10px; }
.sus-form input[type=email] { flex: 1; min-width: 0; padding: 13px 18px; border-radius: 999px; border: 1.5px solid var(--borde); background: var(--bg); color: var(--ink); font: inherit; font-size: 15.5px; }
.sus-form input[type=email]:focus { outline: none; border-color: var(--verde); }
.sus-form .btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: 13px 22px; font-size: 15.5px; }
.sus-form.grande { margin-top: 26px; max-width: 520px; }
.suscribir { padding: 48px 0 80px; }
.sus-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.sus-foto { width: 100%; height: auto; border-radius: 24px; border: 1px solid var(--rule); }
.suscribir h1 { font-size: clamp(32px, 3.8vw, 46px); margin: 10px 0 14px; }
.sus-legal { margin-top: 16px; font-size: 13px; color: var(--ink-3); max-width: 520px; }
.sus-aviso { margin: 22px 0 18px; padding: 14px 18px; border-radius: 14px; font-weight: 600; }
.sus-aviso.ok { background: color-mix(in srgb, var(--verde) 18%, transparent); color: var(--ink); }
.sus-aviso.err { background: color-mix(in srgb, #e5484d 18%, transparent); color: var(--ink); }
.post .sus-bloque { grid-template-columns: 1fr; gap: 18px; }
@media (max-width: 980px) { .sus-grid, .sus-bloque { grid-template-columns: 1fr; gap: 22px; } }
@media (max-width: 640px) {
  .sus-form { flex-direction: column; }
  .sus-bloque { padding: 22px 18px; }
  .nav-sus { display: none; }
}
/* blog category bar, like Fintualist's section bar: small uppercase links under the header, newsletter on the right */
.categorias { border-bottom: 1px solid var(--rule); background: var(--bg); }
.categorias .fila { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 46px; }
.lista-cat { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.lista-cat::-webkit-scrollbar { display: none; }
.categorias a { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); white-space: nowrap; padding: 14px 0 12px; border-bottom: 2px solid transparent; }
.categorias a:hover { color: var(--ink); }
.categorias a.activa { color: var(--acento); border-bottom-color: var(--verde); }
.categorias .sus-link { color: var(--acento); }
.titulo-blog { margin-top: 0; }
.cat { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--acento); margin-top: 2px; }
.tarjeta .cat { margin-top: 16px; }
.tarjeta .cat + h3 { margin-top: 6px; }
.destacado .meta { display: block; margin-bottom: 18px; }
@media (max-width: 640px) {
  .categorias .sus-link { display: none; }
  .lista-cat { gap: 20px; }
}

/* ===== blog home, after factorial.com/cl/blog ===== */
.portada-blog { padding-top: 0; }
.hero-blog { padding: 56px 0 18px; }
.hero-blog .titular { font-family: Inter, system-ui, sans-serif; font-weight: 800; letter-spacing: -.035em; font-size: clamp(38px, 5.2vw, 68px); line-height: 1.08; margin-top: 14px; max-width: 980px; color: var(--ink); }
.resalte { display: inline-block; padding: 0 .28em .06em; margin-top: .12em; border-radius: .32em; background: color-mix(in srgb, var(--verde) 22%, transparent); border: 1.5px solid color-mix(in srgb, var(--verde) 55%, transparent); color: var(--acento); font-family: var(--serif); font-style: italic; font-weight: 600; letter-spacing: -.01em; }
.capsulas { position: relative; display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 0 30px; }
.capsula { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink-2); padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--rule); }
.capsula:hover { color: var(--ink); border-color: var(--borde); }
.capsula.activa { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.capsula.sus { margin-left: auto; color: var(--acento); background: transparent; border-color: transparent; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--verde) 20%, transparent); color: var(--acento); }
.firma { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 13.5px; color: var(--ink-3); }
.firma .por { font-size: 14px; }

/* featured: the cover full width, the text on a dark veil at the bottom */
.destacado { position: relative; display: block; padding: 0; border: 1px solid var(--rule); border-radius: 26px; overflow: hidden; background: var(--card); }
.destacado .foto { width: 100%; aspect-ratio: 2 / 1; height: auto; object-fit: cover; object-position: 50% 15%; border: 0; border-radius: 0; }
.destacado .velo { position: absolute; left: 0; right: 0; bottom: 0; padding: 120px 36px 30px; display: block;
  background: linear-gradient(to top, rgba(10, 12, 15, .94) 30%, rgba(10, 12, 15, .7) 62%, transparent); }
.destacado .velo h2 { font-size: clamp(28px, 3.4vw, 44px); margin: 12px 0 6px; color: #f1eee8; }
.destacado .velo .subtitulo { color: #34e39b; font-size: 20px; margin: 0 0 12px; }
.destacado .velo .firma, .destacado .velo .por { color: #b9bcc2; }
.destacado:hover .velo h2 { color: #34e39b; }

/* grid: two columns of cards */
.grilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; margin-top: 40px; }
.tarjeta .foto { aspect-ratio: 16 / 9; border-radius: 20px; }
.tarjeta .chip { margin-top: 18px; }
.tarjeta h3 { font-family: Inter, system-ui, sans-serif; font-weight: 700; letter-spacing: -.015em; font-size: 24px; margin: 12px 0 8px; }
.tarjeta p { margin: 0 0 12px; }

@media (max-width: 980px) {
  .destacado .foto { aspect-ratio: 16 / 10; }
  .grilla { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-blog { padding: 32px 0 10px; }
  .hero-blog .titular { font-size: 34px; }
  .capsula.sus { display: none; }
  .destacado { border-radius: 18px; }
  .destacado .foto { aspect-ratio: 4 / 3; }
  .destacado .velo { position: static; padding: 18px 18px 20px; background: var(--card); }
  .destacado .velo h2 { font-size: 26px; color: var(--ink); }
  .destacado .velo .subtitulo { color: var(--acento); font-size: 18px; }
  .destacado .velo .firma, .destacado .velo .por { color: var(--ink-3); }
}

/* first screen of the blog home fits a desktop viewport: headline, categories and the whole featured post, no scroll
   (header 64 + headline block + capsules ≈ 400px; the featured cover takes the rest of the height) */
@media (min-width: 981px) {
  .hero-blog { padding: 40px 0 6px; }
  .hero-blog .titular { font-size: clamp(38px, 4.4vw, 60px); margin-top: 10px; }
  .capsulas { padding: 16px 0 20px; }
  .destacado .foto { aspect-ratio: auto; height: clamp(240px, calc(100svh - 64px - 340px), 600px); }
}
@media (min-width: 981px) and (max-height: 800px) {
  .hero-blog { padding-top: 26px; }
  .hero-blog .titular { font-size: 46px; }
  .capsulas { padding: 12px 0 16px; }
  .destacado .foto { height: clamp(220px, calc(100svh - 64px - 285px), 600px); }
  .destacado .velo { padding: 70px 30px 22px; }
  .destacado .velo h2 { font-size: 32px; margin: 8px 0 4px; }
  .destacado .velo .subtitulo { font-size: 18px; margin-bottom: 8px; }
}

/* subscribe page under the blog headline: one screen on desktop */
.suscribir { padding: 0 0 56px; }
.suscribir .sus-grid { margin-top: 28px; }
.suscribir h1 { font-size: clamp(28px, 2.8vw, 38px); margin: 0 0 12px; }
@media (min-width: 981px) { .suscribir .sus-foto { max-height: calc(100svh - 64px - 300px); object-fit: cover; } }
/* share buttons on posts: under the byline and at the end */
.compartir { flex-wrap: wrap; }
.compartir .social { border: 1px solid var(--rule); }
.compartir .social:hover { border-color: var(--verde); }
.compartir.arriba { margin-top: 14px; gap: 6px; }

/* first screen: the featured post and, beside it, the next one (smaller), both visible without scrolling */
.primera { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
/* A category with one post: the same featured card, with the side column left empty. */
.lateral { display: flex; flex-direction: column; padding: 14px; border-radius: 26px; background: var(--card); border: 1px solid var(--rule); }
.lateral .foto { flex: 1 1 0; min-height: 140px; width: 100%; height: 0; aspect-ratio: auto; object-fit: cover; border-radius: 16px; }
.lateral .texto { display: block; padding: 4px 6px 4px; }
.lateral .chip { margin-top: 14px; }
.lateral h3 { font-size: 21px; margin: 10px 0 8px; }
@media (max-width: 980px) {
  .primera { grid-template-columns: 1fr; }
  .lateral { padding: 0; background: none; border: 0; border-radius: 0; }
  .lateral .foto { flex: none; height: auto; aspect-ratio: 16 / 9; border-radius: 20px; }
  .lateral h3 { font-size: 24px; }
}
@media (min-width: 981px) and (max-height: 800px) { .lateral h3 { font-size: 19px; } .lateral .chip { margin-top: 10px; } }
/* the post's illustration, under the title, a little wider than the text column */
.ilustracion { margin: 26px -40px 0; }
.ilustracion img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--rule); display: block; }
@media (max-width: 860px) { .ilustracion { margin: 22px 0 0; } .ilustracion img { border-radius: 16px; } }

/* phones: compact blog home so the first post shows right away (smaller headline, highlight inline,
   one row of category capsules, the cover uncropped at 16:9 and a tighter text block) */
@media (max-width: 640px) {
  .hero-blog { padding: 16px 0 2px; }
  .hero-blog .eyebrow { font-size: 11px; }
  .hero-blog .titular { font-size: 25px; line-height: 1.18; margin-top: 6px; }
  .resalte { display: inline; padding: 0 .14em; border: 0; border-radius: .22em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  .capsulas { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 8px; padding: 10px 0 12px; }
  .capsulas::-webkit-scrollbar { display: none; }
  .capsula { padding: 6px 12px; font-size: 13px; white-space: nowrap; }
  .destacado .foto { aspect-ratio: 16 / 9; }
  .destacado .velo { padding: 12px 16px 16px; }
  .destacado .velo .chip { font-size: 11px; padding: 3px 9px; }
  .destacado .velo h2 { font-size: 22px; margin: 8px 0 4px; line-height: 1.15; }
  .destacado .velo .subtitulo { font-size: 15px; line-height: 1.3; margin-bottom: 8px; }
  .firma, .firma .por { font-size: 12.5px; }
  .lateral h3, .tarjeta h3 { font-size: 20px; }
}

/* ===== post page, after Fintualist: split header (image to the left edge, title centered on the right),
   share column beside the text, drop cap on the first paragraph ===== */
.articulo { padding-top: 18px; }
.articulo .migas { margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cabecera-post { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch;
  height: clamp(380px, calc(100svh - 64px - 46px - 60px), 640px); }
.cabecera-post.sin-foto { grid-template-columns: 1fr; height: auto; }
.cabecera-post .ilustracion { margin: 0; height: 100%; }
.cabecera-post .ilustracion img { width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; display: block; }
.cabecera-texto { display: flex; flex-direction: column; padding: 0 clamp(24px, 4vw, 64px) 0 clamp(24px, 4vw, 56px); }
.cabecera-texto .centro { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 12px; }
.cabecera-texto .cat { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; }
.cabecera-texto .cat:hover { color: var(--acento); }
.cabecera-post h1 { font-size: clamp(30px, 3.1vw, 46px); line-height: 1.1; color: var(--ink); margin: 0; }
.cabecera-post .subtitulo { font-size: clamp(17px, 1.5vw, 21px); margin: 0; max-width: 560px; }
.por-autor { font-family: var(--serif); font-size: 19px; color: var(--ink-2); margin-top: 6px; }
.por-autor a { text-decoration: none; color: var(--ink); }
.por-autor a:hover { color: var(--acento); }
.pie-cabecera { display: flex; justify-content: space-between; gap: 12px; padding: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.cuerpo-post { display: grid; grid-template-columns: 200px minmax(0, 720px) 200px; justify-content: center; column-gap: 40px; margin-top: 48px; }
.cuerpo-post .post { grid-column: 2; max-width: none; padding: 0; }
.cuerpo-post .post .cuerpo { margin-top: 0; }
.compartir-lateral { grid-column: 1; grid-row: 1; position: sticky; top: 90px; align-self: start; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.compartir-lateral .rotulo { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.compartir-lateral .linea { width: 1px; height: 80px; background: var(--borde); margin: 4px 0 10px; }
.compartir-lateral a { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.compartir-lateral a:hover { color: var(--acento); }
.compartir-lateral .ico svg { width: 15px; height: 15px; fill: currentColor; display: block; }
.cuerpo-post > .compartir.arriba { display: none; }

/* drop cap */
.post .cuerpo > p:first-child::first-letter { float: left; font-family: var(--serif); font-weight: 600; font-size: 4.3em; line-height: .82; padding: 6px 10px 0 0; color: var(--ink); }

@media (max-width: 1180px) { .cuerpo-post { grid-template-columns: 150px minmax(0, 680px); column-gap: 32px; } }
@media (max-width: 980px) {
  .cabecera-post { grid-template-columns: 1fr; height: auto; }
  .cabecera-post .ilustracion img { height: auto; aspect-ratio: 16 / 9; }
  .cabecera-texto { padding: 22px 24px 0; }
  .cabecera-texto .centro { gap: 10px; }
  .pie-cabecera { margin-top: 18px; padding-bottom: 0; }
  .cuerpo-post { display: block; margin-top: 18px; }
  .compartir-lateral { display: none; }
  .cuerpo-post > .compartir.arriba { display: flex; margin: 0 0 24px; }
}
@media (max-width: 640px) {
  .articulo .migas { font-size: 11px; }
  .cabecera-texto { padding: 18px 16px 0; }
  .cabecera-post h1 { font-size: 27px; }
  .cabecera-post .subtitulo { font-size: 16px; }
  .por-autor { font-size: 17px; }
  .pie-cabecera { font-size: 11px; }
}
/* the first screen of a post also shows the start of the text, like Fintualist: the header leaves ~150px below it */
@media (min-width: 981px) {
  .cabecera-post { height: clamp(320px, calc(100svh - 64px - 46px - 60px - 150px), 580px); }
  .cuerpo-post { margin-top: 30px; }
}

/* blog home, calmer scale (Manuel: «todo es muy grande») */
@media (min-width: 981px) {
  .hero-blog { padding: 30px 0 2px; }
  .hero-blog .eyebrow { font-size: 11px; }
  .hero-blog .titular { font-size: clamp(30px, 2.9vw, 42px); line-height: 1.12; margin-top: 8px; }
  .resalte { padding: 0 .22em .04em; border-width: 1px; border-radius: .28em; }
  .capsulas { padding: 14px 0 18px; gap: 8px; }
  .capsula { font-size: 13px; padding: 6px 14px; }
  .capsula.sus { font-size: 13px; }
  .destacado { border-radius: 20px; }
  .destacado .foto { height: clamp(260px, calc(100svh - 64px - 250px), 480px); }
  .destacado .velo { padding: 80px 28px 22px; }
  .destacado .velo h2 { font-size: clamp(24px, 2.1vw, 30px); margin: 8px 0 4px; }
  .destacado .velo .subtitulo { font-size: 16px; margin-bottom: 8px; }
  .lateral { border-radius: 20px; padding: 12px; }
  .lateral .foto { border-radius: 12px; }
  .lateral h3 { font-size: 18px; margin: 8px 0 6px; }
  .chip { font-size: 11px; padding: 3px 9px; }
  .firma, .firma .por { font-size: 12.5px; }
  .grilla { gap: 32px 28px; margin-top: 32px; }
  .tarjeta h3 { font-size: 20px; }
}
@media (min-width: 981px) and (max-height: 800px) {
  .destacado .foto { height: clamp(240px, calc(100svh - 64px - 256px), 480px); }
}
/* the category tag over the featured cover must read on light and dark images */
.destacado .velo .chip { background: var(--verde); color: var(--on-verde); }
/* featured and side post a size smaller (Manuel: «igual quedó grande») */
@media (min-width: 981px) {
  .destacado .foto { height: clamp(220px, calc(100svh - 64px - 340px), 380px); }
  .destacado .velo { padding: 64px 24px 18px; }
  .destacado .velo h2 { font-size: clamp(22px, 1.8vw, 26px); }
  .destacado .velo .subtitulo { font-size: 15px; }
  .primera { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
  .lateral .foto { min-height: 110px; }
  .lateral h3 { font-size: 17px; }
}
@media (min-width: 981px) and (max-height: 800px) {
  .destacado .foto { height: clamp(220px, calc(100svh - 64px - 300px), 380px); }
}
/* post header ends around the middle of the first screen (Manuel), so the text starts higher */
@media (min-width: 981px) {
  .cabecera-post { height: clamp(300px, calc(58svh - 150px), 440px); }
  .cabecera-post h1 { font-size: clamp(28px, 2.5vw, 38px); }
  .cabecera-post .subtitulo { font-size: clamp(16px, 1.3vw, 19px); }
  .cabecera-texto .centro { gap: 10px; }
  .por-autor { font-size: 17px; margin-top: 2px; }
  .cuerpo-post { margin-top: 26px; }
}
/* keep the image inside the header's height (its natural 16:9 height used to push past it on short screens) */
@media (min-width: 981px) {
  .cabecera-post { grid-template-rows: minmax(0, 1fr); }
  .cabecera-post .ilustracion { min-height: 0; overflow: hidden; position: relative; }
  .cabecera-post .ilustracion img { position: absolute; inset: 0; }
  .cabecera-texto { min-height: 0; }
}
/* a bit lower still (Manuel: «un poco menos») */
@media (min-width: 981px) { .cabecera-post { height: clamp(280px, calc(52svh - 150px), 400px); } }
/* the header leaves room for the first two paragraphs on the first screen (Manuel):
   ~163px above it (site header, categories, breadcrumb) and ~235px below for two short paragraphs */
@media (min-width: 981px) { .cabecera-post { height: clamp(280px, calc(100svh - 163px - 235px), 520px); } }
/* only the first paragraph has to show under the header (Manuel: «solo el primero mejor») */
@media (min-width: 981px) { .cabecera-post { height: clamp(280px, calc(100svh - 163px - 150px), 560px); } }
/* post header text aligned left (Manuel) */
.cabecera-texto .centro { align-items: flex-start; text-align: left; }
.avatar[src$=".svg"] { background: #fff; padding: 12px; object-fit: contain; }
/* orchestration half of the diagram: logo, rays with dots, category tiles */
.diagrama .rayo { stroke: var(--borde); stroke-width: 2.2; }
.diagrama .punto-azul { fill: var(--ink); }
.diagrama .sistema { fill: var(--card); stroke: var(--borde); stroke-width: 1.5; }
.diagrama .ico { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.diagrama .lema { font-size: 26px; font-weight: 800; letter-spacing: -.02em; fill: var(--ink); }
.diagrama .lema .verde { fill: var(--acento); }
.diagrama .solo-oscuro { display: none; }
[data-tema="oscuro"] .diagrama .solo-oscuro, :root:not([data-tema]) .diagrama .solo-oscuro { display: inline; }
[data-tema="oscuro"] .diagrama .solo-claro { display: none; }
.diagrama .mod.sis { font-size: 16px; }
@media (max-width: 640px) { .diagrama .mod.sis { font-size: 16px; } }
.cuerpo .accion .btn, .cuerpo .accion .btn:hover { color: var(--on-verde); }
.caras { display: inline-flex; vertical-align: middle; margin-right: 10px; }
.caras img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); }
.caras img + img { margin-left: -9px; }
.avatar[src="/autor-claude.svg"] { background: none; padding: 0; }
/* Featured card framing for covers whose content sits low: show the lower part of the image. */
.destacado .foto.encuadre-abajo { object-position: 50% 100%; transform: scale(1.18); transform-origin: 50% 100%; }
.destacado:hover .foto.encuadre-abajo { transform: scale(1.195); }

/* Vertical phone captures (file name ends in -vertical.jpg): keep them phone-sized and centered instead of full column width. */
.cuerpo .figura img[src$="-vertical.jpg"] { display: block; width: 100%; max-width: 320px; margin: 0 auto; border-radius: 18px; }

/* newsletter: approve an edition / unsubscribe */
.sus-aviso-pagina { max-width: 620px; padding: 72px 0 96px; }
.sus-aviso-pagina h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.sus-aviso-pagina .lead { margin-bottom: 26px; }
.sus-aviso-pagina form { margin: 0; }
.sus-aviso-pagina .sus-legal { margin-top: 18px; }


/* Image captions: ![alt](src "caption") in a post. */
.cuerpo .figura figcaption { margin-top: 10px; text-align: center; font-size: 14px; line-height: 1.4; color: var(--ink); opacity: .65; }

/* Blog home: one-line description under the headline. */
.hero-blog .bajada { margin: 14px 0 0; max-width: 760px; font-size: 18px; line-height: 1.5; color: var(--ink); opacity: .72; }
@media (max-width: 640px) { .hero-blog .bajada { font-size: 15px; margin-top: 10px; } }
.cuerpo .figura.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 18px; background: #000; }
/* ==texto== en los posts: resalta lo que todavía hace una persona a mano (contraste con el verde de la IA). */
.cuerpo mark { background: rgba(232, 131, 58, .16); color: var(--ink); padding: 1px 6px; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.diagrama .ia-pill { fill: var(--verde); }
.diagrama .ia-t { font-size: 12px; font-weight: 800; letter-spacing: .04em; fill: var(--on-verde); }
.diagrama .alguien { fill: rgba(232,131,58,.16); stroke: #E8833A; stroke-width: 1.5; }
.diagrama .alguien-ico { fill: none; stroke: #C9672A; stroke-width: 2; stroke-linecap: round; }
.diagrama .rayo.manual { stroke: #E8833A; stroke-opacity: .55; stroke-dasharray: 7 6; }
.diagrama .punto-naranja { fill: #E8833A; }
.diagrama .lema .naranja { fill: #C9672A; }
/* Side cards crop from the top, like the featured photo, so faces stay in frame. */
.lateral .foto { object-position: 50% 15%; }
/* featured and side post a bit smaller, with breathing room under the category capsules (Manuel) */
@media (min-width: 981px) {
  .capsulas { padding-bottom: 30px; }
  .destacado .foto { height: clamp(200px, calc(100svh - 64px - 390px), 330px); }
}
@media (min-width: 981px) and (max-height: 800px) {
  .capsulas { padding-bottom: 24px; }
  .destacado .foto { height: clamp(200px, calc(100svh - 64px - 340px), 330px); }
}
/* card previews show at most three lines of the description (Manuel) */
.tarjeta p, .destacado .bajada, .lateral p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
/* diagrams with a stacked phone version: one or the other, never both */
.cuerpo .figura.solo-movil { display: none; }
@media (max-width: 640px) {
  .cuerpo .figura.solo-escritorio { display: none; }
  .cuerpo .figura.solo-movil { display: block; }
}
/* blog home: more air above the headline so it reads as the blog's introduction (Manuel) */
@media (max-width: 640px) { .hero-blog { padding-top: 40px; } .capsulas { margin-bottom: 14px; } }
@media (min-width: 981px) { .hero-blog { padding-top: 64px; } }
@media (min-width: 981px) and (max-height: 800px) { .hero-blog { padding-top: 48px; } .capsulas { padding-bottom: 32px; } }
/* a thin rule closes the blog introduction: categories above, posts below (Manuel) */
.portada-blog .capsulas { border-bottom: 1px solid var(--rule); margin-bottom: 24px; }
@media (min-width: 981px) { .portada-blog .capsulas { padding-bottom: 22px; margin-bottom: 28px; } }
@media (max-width: 640px) { .portada-blog .capsulas { padding-bottom: 14px; margin-bottom: 18px; } }

/* aindez.com/bio (Instagram): a narrow column, the latest post highlighted, all of it in one phone screen */
.bio .hero { padding: 16px 0 14px; }
.bio-in { max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.bio h1 { font-size: clamp(22px, 5.6vw, 32px); line-height: 1.15; }
.bio .paises { width: 100%; text-align: left; }
.bio-destacado { background: color-mix(in srgb, var(--verde) 12%, transparent); border-radius: 14px; border-bottom: 0 !important; margin-bottom: 6px; }
.bio-destacado b { white-space: normal; }
.bio-paises { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.bio-pais { display: grid; justify-items: center; gap: 2px; min-width: 72px; padding: 8px 6px; border-radius: 14px; border: 1.5px solid var(--borde); text-decoration: none; color: var(--ink-2); }
.bio-pais span { font-size: 26px; line-height: 1; }
.bio-pais small { font-size: 12px; }
.bio-pais:hover, .bio-pais:focus-visible { border-color: var(--acento); color: var(--acento); }
/* the latest post, with its illustration, at the top of the bio list */
.bio-post { display: block; margin-bottom: 8px; border-radius: 16px; overflow: hidden; text-decoration: none; background: color-mix(in srgb, var(--verde) 10%, transparent); }
.bio-post img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.bio-post span { display: block; padding: 10px 14px 12px; }
.bio-post small { display: block; font-size: 12px; color: var(--acento); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bio-post b { display: block; margin-top: 3px; font-size: 16px; line-height: 1.3; color: var(--ink); }
.bio-post:hover b, .bio-post:focus-visible b { color: var(--acento); }
/* no vertical scroll on any phone, Instagram's in-app browser included (~620px tall): on short screens the post
   becomes a thumbnail beside its title and the rows tighten; on tall screens the illustration stays full width */
.bio .pais { padding: 9px 2px; }
@media (max-height: 759px) {
  .bio .hero { padding: 10px 0; }
  .bio-in { gap: 10px; }
  .bio .paises { padding: 10px 12px; }
  .bio-post { display: grid; grid-template-columns: 112px 1fr; align-items: center; }
  .bio-post img { height: 100%; aspect-ratio: auto; min-height: 66px; }
  .bio-post span { padding: 8px 12px; }
  .bio-post b { font-size: 14.5px; }
  .bio .pais { padding: 7px 2px; }
  .bio-pais { padding: 6px 6px; }
  .bio-pais span { font-size: 22px; }
  body:has(.bio) .pie { min-height: 44px; }
}

/* very short screens (iPhone SE inside Instagram): smaller headline, and the footer's social links give way */
@media (max-height: 600px) {
  .bio .hero { padding: 6px 0; }
  .bio-in { gap: 8px; }
  .bio h1 { font-size: 19px; }
  .bio .pais { padding: 6px 2px; }
  body:has(.bio) footer { display: none; }
}
/* the footer sits at the bottom of the screen (Instagram's browser is taller than the content): the page fills the
   viewport and the links stay centered in the space above the footer */
body:has(.bio) { min-height: 100svh; min-height: 100dvh; display: flex; flex-direction: column; }
body:has(.bio) main.bio { flex: 1; display: flex; flex-direction: column; justify-content: center; }
