/* ================== VARIABLES BASE / RESET LIGERO ================== */
:root{
  color-scheme: light;
  --bg: #EEF1F9;
  --surface: #FAFBFD;
  --text: #0F1222;
  --muted: #6E6E73;
  --divider: #E0E3EE;
  --primary: #0A84FF;
  --green: #34C759;
  --orange: #FF9F0A;
  --purple: #BF5AF2;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 30px rgba(0,0,0,.08);
  --radius: 18px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --header-h: 64px;
}
html, body { height: 100%; }
body{
  margin:0; padding-top: var(--header-h);
  background:
    linear-gradient(180deg, #E6EBF6 0%, #EEF2FB 45%, #F5F7FE 100%) fixed,
    var(--bg);
  background-repeat: no-repeat;
  color:var(--text);
  font: 16px/1.7 -apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,"SF Pro Text","SF Pro Display",sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  position: relative;
}
body::before{
  content:"";
  position: fixed; inset: 0; pointer-events:none;
  background:
    radial-gradient(1100px 520px at 18% -12%, rgba(10,132,255,.18), transparent 60%),
    radial-gradient(900px 460px at 96% -18%, rgba(191,90,242,.14), transparent 62%),
    radial-gradient(900px 520px at 50% 110%, rgba(52,199,89,.10), transparent 55%);
  background-repeat: no-repeat;
  z-index: 0;
}
*{ box-sizing:border-box }
a{ color: var(--primary); text-decoration: none; }
a:hover{ text-decoration: underline; }
.container{ max-width: var(--maxw); margin: 0 auto; padding: 24px; position: relative; z-index: 1; }
.muted{ color: var(--muted); }

/* ================== HEADER / NAV ================== */
header.backdrop{
  position: fixed; top:0; left:0; right:0; z-index: 9999;
  backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--divider);
}
.nav{ display:flex; align-items:center; gap:16px; padding: 12px 24px; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:700; color: var(--text); text-decoration: none; }
.brand:hover{ text-decoration: none; }
.brand .logo{ width:28px; height:28px; border-radius:12px; position:relative; overflow:hidden;
  background: conic-gradient(from 210deg, #0A84FF, #34C759, #FF9F0A, #BF5AF2, #0A84FF);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 2px 8px rgba(0,0,0,.12);
}
.brand .logo::before{ content:""; position:absolute; inset:0; background: radial-gradient(120% 100% at 12% 0%, rgba(255,255,255,.32), transparent 42%); }
.brand .logo::after{ content:""; position:absolute; inset:-1px; border-radius:14px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.nav .spacer{ flex:1 }

.navlinks{
  display:flex; gap:16px; margin-left:20px; list-style:none; padding:0; margin-block:0;
  flex-wrap: wrap; overflow: visible; position: relative;
}
.navlinks a, .navlinks summary{
  color:var(--text); opacity:.92; font-weight:600; font-size:.93rem;
  display:flex; align-items:center; gap:6px; padding:8px 10px; border-radius:10px; cursor:pointer;
}
.navlinks a:hover, .navlinks a:focus, .navlinks summary:hover, .navlinks summary:focus{
  background: rgba(0,0,0,.06); text-decoration:none; outline:none;
}
details.dd{ position:relative; }
details.dd > summary{ list-style:none; }
details.dd > summary::-webkit-details-marker{ display:none; }
.dropdown{
  position:absolute; top:calc(100% + 10px); left:0; min-width:220px;
  background: var(--surface); border:1px solid var(--divider); border-radius:12px; box-shadow: var(--shadow);
  padding:8px; z-index: 40000;
  opacity:0; visibility:hidden; transform: translateY(6px); pointer-events:none; transition: .14s ease;
}
details.dd[open] > .dropdown{ opacity:1; visibility:visible; transform: translateY(0); pointer-events:auto; }
.dropdown a{ display:block; padding:8px 10px; border-radius:8px; opacity:.98; color:var(--text); }
.dropdown a:hover{ background: rgba(10,132,255,.10); text-decoration:none }

/* ================== HOME / LISTADO ================== */
.home-hero{ display:grid; gap:16px; grid-template-columns: 1fr; }
.cover-hero{
  border-radius: var(--radius-lg);
  background: repeating-linear-gradient(45deg, #e7eaf3, #e7eaf3 10px, #f3f5fb 10px, #f3f5fb 20px);
  border:1px solid var(--divider);
  aspect-ratio: 21/4;
  box-shadow: var(--shadow); position:relative;
}
.cover-hero::after{
  position:absolute; bottom:10px; left:12px; font-weight:700; color:#4a5060;
  background: rgba(255,255,255,.85); padding:6px 10px; border-radius:10px;
}
.hero-main{ display:grid; gap:10px; }
h1{ font-size: clamp(1.9rem, 2.2vw + 1rem, 2.7rem); line-height:1.12; margin:0 }
.sub{ font-size:1.05rem; color:var(--muted); }
.chip{ display:inline-flex; align-items:center; gap:.5ch; padding:6px 12px; border-radius:999px; background: rgba(10,132,255,.12); color:#0A84FF; font-weight:600; font-size:.85rem; }
.chip svg{ width:16px; height:16px }

.section{ margin-top: 24px; }
.section-title{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 10px; }
.section-title h2{ margin:0; font-size:1.22rem; letter-spacing:.2px; }

.grid-cat{ display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:16px; }
.post-card{ background: var(--surface); border:1px solid var(--divider); border-radius: 16px; box-shadow: var(--shadow); overflow:hidden; display:flex; flex-direction:column; }
.thumb{ aspect-ratio: 16/9; position:relative; display:block; background:#f0f2f9; border-bottom:1px solid var(--divider); }
.thumb::after{ content: attr(data-label); position:absolute; bottom:10px; left:12px; font-weight:700; color:#4a5060; background: rgba(255,255,255,.85); padding:6px 10px; border-radius:10px; }
.thumb-img{ width:100%; height:100%; object-fit:cover; display:block; }
.post-body{ padding:14px 16px; display:grid; gap:8px; }
.post-title{ font-size:1.02rem; line-height:1.25; margin:0; }
.meta{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.meta .dot{ width:6px; height:6px; border-radius:50%; background:#D1D5E4; display:inline-block; }
.pill{ padding:6px 10px; border-radius:999px; background: #EDEFF6; color:#0A84FF; font-weight:700; border:1px solid var(--divider); }

/* ================== ARTICLE / SHOW ================== */
.hero{ display:grid; gap:16px; grid-template-columns: 1fr; }
.grid{ display:grid; grid-template-columns: 1.35fr .65fr; gap:22px; align-items:start; }
@media (max-width: 1060px){ .grid{ grid-template-columns: 1fr; } }

.card{ background: var(--surface); border:1px solid var(--divider); border-radius: var(--radius); box-shadow: var(--shadow); }
.card .pad{ padding: 20px 20px; }
.card + .card{ margin-top: 18px; }
.list{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.list li{ padding:12px 14px; border:1px solid var(--divider); border-radius:12px; background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.5)); }

article{ display:grid; gap:5px; }
article h2{ font-size:1.35rem; line-height:1.24; margin: 30px 0 0px; }
article h3{ font-size:1.06rem; margin: 20px 0 0px; }
article h4{ margin: 10px 0 0px; }
article p{ font-size: 18px; margin:0; }
article ul, article ol{ margin:0; padding-left: 18px; }
article li{ margin: 4px 0; }
article > * + *{ margin-top: 10px; }

.img-ph{ position:relative; border-radius:14px; background: repeating-linear-gradient(45deg, #e7eaf3, #e7eaf3 10px, #f3f5fb 10px, #f3f5fb 20px); border:1px solid var(--divider); min-height: 220px; box-shadow: var(--shadow); }
.img-ph::after{ content: attr(data-label); position:absolute; bottom:10px; left:12px; font-weight:700; color: #4a5060; background: rgba(255,255,255,.85); padding:6px 10px; border-radius:10px; }

.note{
  border-left: 4px solid color-mix(in srgb, var(--purple) 70%, #000 10%);
  background: linear-gradient(180deg, rgba(191,90,242,.12), rgba(191,90,242,.06));
  padding:12px 14px; border-radius: 12px;
}
blockquote{
  margin:0; padding: 12px 14px; border-left: 4px solid var(--primary);
  background: linear-gradient(180deg, rgba(10,132,255,.14), rgba(10,132,255,.07));
  border-radius:12px; color: var(--text);
}

/* ================== CTA / FOOTER ================== */
.cta{ background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 20%, transparent), color-mix(in srgb, var(--purple) 22%, transparent)); border:1px solid var(--divider); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow); margin-top: 28px; }
.cta .pad{ display:grid; gap:5px; padding:20px; }
.cta input[type=email]{ width:100%; padding:12px 14px; border-radius:12px; border:1px solid var(--divider); background: var(--surface); color:var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.cta input[type=email]::placeholder{ color: var(--muted); opacity:.85 }
.cta input[type=email]:focus{ outline:none; border-color: color-mix(in srgb, var(--primary) 65%, #000 35%); box-shadow: 0 0 0 4px rgba(10,132,255,.18); }
.buttons{ display:flex; flex-wrap:wrap; gap:10px; }
.btn{ --bg: var(--primary); display:inline-flex; align-items:center; gap:.6ch; padding:10px 14px; border-radius:12px; background: var(--bg); color:#fff; font-weight:700; border:1px solid color-mix(in srgb, var(--bg) 70%, #000 30%); box-shadow: 0 4px 14px rgba(10,132,255,.25); cursor:pointer; text-decoration:none; }
.btn:hover{ filter: brightness(1.05); text-decoration:none; }
.btn.ghost{ background:transparent; color:var(--text); border-color: var(--divider); box-shadow:none; }

footer{ margin-top:34px; border-top:1px solid var(--divider); padding: 18px 0 36px; color:var(--muted); }

/* ================== PAGINACIÓN (sin Bootstrap) ================== */
.paginator{ margin-top:18px; display:flex; justify-content:center }
.paginator .pagination{ display:flex; gap:8px; list-style:none; padding:0; margin:0 }
.paginator .pagination li a,
.paginator .pagination li span{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:38px; height:38px; padding:0 12px; border:1px solid var(--divider);
  border-radius:10px; background:#fff; color:var(--text); text-decoration:none;
}
.paginator .pagination li.active span{
  background: var(--primary); color:#fff;
  border-color: color-mix(in srgb, var(--primary) 70%, #000 30%);
}
.paginator .pagination li.disabled span{ opacity:.45 }
.paginator .pagination li a:hover{ background:rgba(0,0,0,.06) }

/* Por si aún tenías el view de Tailwind colándose con textos/SVG */
.paginator nav > p{ display:none }
.paginator svg{ width:18px; height:18px }

/* === Imágenes del artículo: full width + márgenes compactos === */
article figure {                 /* override al UA que mete 40px laterales */
  margin-left: 0;
  margin-right: 0;
}

article .img-ph{
  width: 100%;
  margin: 8px 0 12px;           /* márgenes más chicos */
  padding: 0;                    /* sin padding extra */
  border-radius: 14px;
  overflow: hidden;              /* que la imagen respete el borde redondeado */
  border: 1px solid var(--divider);
  box-shadow: var(--shadow);
  background: var(--surface);
}

article .img-ph img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;        /* hereda el redondeo del figure */
}

/* Por si tenés <img> sueltas sin figure */
article > img{
  display:block;
  width:100%;
  height:auto;
  margin: 8px 0 12px;
  border-radius: 12px;
}
