/*
Theme Name: Buscando la Libertad
Description: Theme a medida de buscandolalibertad.com. Sin dependencias externas.
Author: Buscando la Libertad
Version: 1.0.0
Text Domain: bcom
*/

:root{
  --bcom-fondo:#f6f7f8; --bcom-texto:#151a1f; --bcom-tenue:#5b6672;
  --bcom-linea:#dde2e7; --bcom-acento:#1f5f8b; --bcom-acento-suave:#e3edf4;
  --bcom-medida:64ch;
  --bcom-t0:1rem; --bcom-t1:1.333rem; --bcom-t2:1.777rem;
  --bcom-t3:2.369rem; --bcom-t4:3.157rem; --bcom-tm:0.75rem;
  --bcom-ritmo:1.65;
}

*,*::before,*::after{box-sizing:border-box}
body,h1,h2,h3,h4,p,figure,blockquote,ul,ol,dl{margin:0}
ul[class],ol[class]{list-style:none;padding:0}

html{-webkit-text-size-adjust:100%}
body{
  background:var(--bcom-fondo); color:var(--bcom-texto);
  font-family:'Public Sans', system-ui, sans-serif; font-size:clamp(1.02rem,0.3vw + 1rem,1.14rem);
  line-height:var(--bcom-ritmo); font-synthesis:none;
  text-rendering:optimizeLegibility;
}
img,picture,svg{max-width:100%;height:auto;display:block}

.bcom-salto{position:absolute;left:-9999px;top:0}
.bcom-salto:focus{left:0;padding:.6rem 1rem;background:var(--bcom-acento);color:#fff;z-index:99}

.bcom-envoltura{width:min(100% - 2.4rem,46rem);margin-inline:auto}

h1,h2,h3,h4{font-family:'Fraunces', Georgia, serif;line-height:1.15;letter-spacing:-0.01em;font-weight:600;
  overflow-wrap:break-word;text-wrap:balance}
/* El tamaño de escritorio sale de la escala tipográfica, pero en el móvil ese
   valor es inmanejable: con escala 1.414 son 64 px fijos, y un titular de
   siete palabras ocupa la pantalla entera o se sale por el lado. El clamp deja
   el tamaño grande donde cabe y lo baja donde no. */
h1{font-size:clamp(1.85rem,1.1rem + 3.4vw,var(--bcom-t4))}
h2{font-size:clamp(1.35rem,.95rem + 1.8vw,var(--bcom-t2));margin-block:2.4em .5em}
h3{font-size:clamp(1.15rem,.95rem + 1vw,var(--bcom-t1));margin-block:1.8em .4em}
p,ul,ol,blockquote,figure,table{margin-block:0 1.15em}
a{color:inherit;text-decoration-color:var(--bcom-acento);text-underline-offset:.18em;
  text-decoration-thickness:.08em}
a:hover{color:var(--bcom-acento)}

.bcom-cabecera{border-bottom:1px solid var(--bcom-linea);padding-block:1.15rem;margin-bottom:3rem}
.bcom-cabecera-fila{display:flex;flex-wrap:wrap;gap:1rem 2rem;align-items:baseline;
  justify-content:space-between}
.bcom-marca{font-family:'Fraunces', Georgia, serif;font-size:var(--bcom-t1);font-weight:700;
  text-decoration:none;letter-spacing:-0.01em}
.bcom-lema{color:var(--bcom-tenue);font-size:var(--bcom-tm)}
.bcom-nav{display:flex;gap:1.4rem;flex-wrap:wrap;font-size:var(--bcom-tm)}
.bcom-nav a{text-decoration:none;color:var(--bcom-tenue)}
.bcom-nav a:hover{color:var(--bcom-acento)}

main{display:block}
.bcom-prosa{max-width:var(--bcom-medida);margin-inline:auto}
.bcom-prosa h2,.bcom-prosa h3{max-width:var(--bcom-medida)}
.bcom-prosa table{width:100%;border-collapse:collapse;font-size:var(--bcom-tm)}
.bcom-prosa th,.bcom-prosa td{text-align:left;padding:.55rem .7rem;
  border-bottom:1px solid var(--bcom-linea);vertical-align:top}
.bcom-prosa th{font-weight:600}
.bcom-prosa blockquote{border-left:3px solid var(--bcom-acento);padding-left:1.1rem;
  color:var(--bcom-tenue)}
.bcom-prosa code{background:var(--bcom-acento-suave);padding:.12em .35em;border-radius:3px;
  font-size:.9em}
.bcom-prosa pre{background:var(--bcom-acento-suave);padding:1rem;overflow-x:auto;border-radius:4px}
.bcom-prosa figure figcaption{font-size:var(--bcom-tm);color:var(--bcom-tenue);
  margin-top:.5rem}

.bcom-meta{color:var(--bcom-tenue);font-size:var(--bcom-tm);margin-bottom:2.2rem}
.bcom-meta time{white-space:nowrap}

.bcom-lista{display:grid;gap:2.6rem;grid-template-columns:minmax(0,1fr);gap:2.6rem;}
.bcom-item{border-bottom:1px solid var(--bcom-linea);padding-bottom:2.2rem}
.bcom-item:last-child{border-bottom:0}
.bcom-item img{margin-bottom:.9rem;display:none}

.bcom-item h2{margin-block:0 .35em;font-size:var(--bcom-t1)}
.bcom-item a{text-decoration:none}
.bcom-item p{color:var(--bcom-tenue);max-width:var(--bcom-medida)}
.bcom-fecha{display:block;font-size:var(--bcom-tm);color:var(--bcom-tenue);
  margin-bottom:.35rem;font-variant-numeric:tabular-nums}

/* ── portada tipo landing (solo si la plantilla la usa) ──────── */
.bcom-hero{padding-block:3.5rem 3rem;border-bottom:1px solid var(--bcom-linea);margin-bottom:3rem}
.bcom-hero-dos{display:grid;gap:2rem 3rem;align-items:center;
  grid-template-columns:minmax(0,1fr)}
@media (min-width:56rem){
  .bcom-hero-dos{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
}
.bcom-hero-dos img{margin-inline:auto;filter:drop-shadow(0 18px 34px rgba(0,0,0,.16))}
.bcom-hero h1{font-size:clamp(2.1rem,5.2vw,var(--bcom-t4));max-width:16ch;margin-bottom:.7rem}
.bcom-hero .bcom-claim{font-size:var(--bcom-t1);color:var(--bcom-tenue);max-width:34ch;
  line-height:1.35}
.bcom-verbos{display:flex;flex-wrap:wrap;gap:.6rem 1.4rem;margin-top:2rem;padding:0;list-style:none}
.bcom-verbos li{font-family:var(--bcom-familia-titulos,inherit);font-weight:600;
  letter-spacing:.02em;padding:.4rem .95rem;border:1px solid var(--bcom-linea);border-radius:2rem;
  background:var(--bcom-acento-suave)}
.bcom-explica{max-width:var(--bcom-medida);margin-bottom:3.4rem}
.bcom-explica h2{margin-top:0}
.bcom-seccion{font-size:var(--bcom-tm);letter-spacing:.13em;text-transform:uppercase;
  color:var(--bcom-tenue);margin-bottom:1.2rem;padding-bottom:.5rem;
  border-bottom:1px solid var(--bcom-linea)}
.bcom-pie{margin-top:5rem;border-top:1px solid var(--bcom-linea);padding-block:2rem 3rem;
  color:var(--bcom-tenue);font-size:var(--bcom-tm)}
.bcom-pie a{color:inherit}

@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
