/* Apptizo — apps & tools magazine */

:root {
  --ink:        #0b1020;
  --ink-2:      #1f2540;
  --ink-3:      #4a5070;
  --ink-4:      #8089a8;
  --line:       #e7e9f3;
  --line-2:     #f1f3fa;
  --bg:         #fafbff;
  --surface:    #ffffff;
  --surface-2: #f4f5fb;
  --accent:     #ff5b3a;
  --accent-2:   #ffa84a;
  --info:       #3a6ff7;
  --ok:         #19a974;
  --warn:       #f0a020;
  --shadow-sm:  0 1px 2px rgba(11, 16, 32, 0.04), 0 1px 1px rgba(11, 16, 32, 0.03);
  --shadow-md:  0 4px 14px rgba(11, 16, 32, 0.06), 0 2px 4px rgba(11, 16, 32, 0.04);
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --font-sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Söhne", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono:  ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Monaco, Consolas, monospace;
  --maxw:       1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* ── Header ─────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand__logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(255, 91, 58, 0.35);
}
.brand__dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  margin-left: 1px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 8px;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  transition: color 120ms ease;
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); font-weight: 600; }
.search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--ink-4);
  transition: border-color 150ms ease, background 150ms ease;
  min-width: 220px;
}
.search:hover { border-color: var(--ink-4); background: #fff; }
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  flex: 1;
  font: inherit;
  color: var(--ink);
}
.search kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--ink-4);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  transition: transform 100ms ease, background 150ms ease;
}
.btn:hover { background: #000; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--accent:hover { background: #e84520; border-color: #e84520; }
.menu-toggle { display: none; }

/* ── Hero ───────────────────────────────────────────────────────── */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 16px;
}
@media (max-width: 720px) {
  .hero { padding: 32px 18px 12px; }
  .hero__sub { font-size: 15px; }
  .main { padding: 24px 18px 64px; gap: 32px; }
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 16px;
  max-width: 900px;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: 17px;
  color: var(--ink-3);
  max-width: 620px;
  margin: 0 0 24px;
}
.hero__meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-4);
}
.hero__meta strong { color: var(--ink); font-weight: 600; }

/* ── Layout principal ───────────────────────────────────────────── */

.main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}
.main__content {
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-width: 0;
}
@media (max-width: 980px) {
  .main { grid-template-columns: minmax(0, 1fr); }
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
}
.section-head .all {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
}
.section-head .all:hover { color: var(--accent); }

/* ── Collage de posts (magazine-style) ──────────────────────────── */

.collage {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  grid-auto-flow: row dense;
  gap: 18px;
}
@media (max-width: 720px) {
  .collage { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; gap: 14px; }
}

.tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 200ms ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tile__cover {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.tile__cover--img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.tile__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(11, 16, 32, 0.85) 100%);
}
.tile__body {
  position: relative;
  padding: 18px 20px;
  color: #fff;
  width: 100%;
}
.tile__cat {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}
.tile__title {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 0 6px;
}
.tile__meta {
  font-size: 12px;
  opacity: 0.78;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* tamaños de tile (magazine-style) */
.tile--xl { grid-column: span 4; grid-row: span 2; }
.tile--lg { grid-column: span 3; grid-row: span 2; }
.tile--md { grid-column: span 2; grid-row: span 1; }
.tile--sm { grid-column: span 2; grid-row: span 1; }
.tile--wide { grid-column: span 4; grid-row: span 1; }
.tile--full { grid-column: span 6; grid-row: span 2; }
.tile--xl .tile__title { font-size: 28px; }
.tile--lg .tile__title { font-size: 22px; }
.tile--full .tile__title { font-size: 32px; }
@media (max-width: 720px) {
  .tile--xl, .tile--lg, .tile--md, .tile--sm, .tile--wide, .tile--full {
    grid-column: span 2; grid-row: span 1;
  }
  .tile--xl .tile__title,
  .tile--lg .tile__title,
  .tile--full .tile__title { font-size: 18px; }
  .tile__body { padding: 14px 16px; }
}
@media (max-width: 480px) {
  .collage { grid-template-columns: 1fr; grid-auto-rows: 200px; gap: 12px; }
  .tile--xl, .tile--lg, .tile--md, .tile--sm, .tile--wide, .tile--full { grid-column: span 1; }
}

/* ── Sidebar ────────────────────────────────────────────────────── */

.sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
@media (max-width: 980px) {
  .sidebar { position: static; }
}
.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.side-card__header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.side-card__header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 700;
}
.latest-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}
.latest-list li {
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid var(--line-2);
  transition: background 120ms ease;
}
.latest-list li:last-child { border-bottom: 0; }
.latest-list li:hover { background: var(--surface-2); }
.latest-list .num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.4;
}
.latest-list .post {
  display: block;
}
.latest-list .post__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin-bottom: 4px;
}
.latest-list .post__meta {
  font-size: 12px;
  color: var(--ink-4);
}
.latest-list a:hover .post__title { color: var(--accent); }

.tags {
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
  transition: all 120ms ease;
}
.tag:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.newsletter {
  padding: 18px;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
}
.newsletter h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}
.newsletter p {
  font-size: 13px;
  opacity: 0.78;
  margin: 0 0 14px;
}
.newsletter form { display: flex; gap: 6px; }
.newsletter input {
  flex: 1;
  border: 0;
  outline: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.newsletter input::placeholder { color: rgba(255, 255, 255, 0.45); }
.newsletter button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}
.newsletter button:hover { background: #e84520; }

/* ── Categorías ─────────────────────────────────────────────────── */

.cats {
  margin-top: 60px;
}
.cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 720px) {
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
}
.cat {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 18px;
  border-radius: var(--radius);
  display: block;
  transition: all 200ms ease;
}
.cat:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}
.cat__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 18px;
  margin-bottom: 12px;
  background: var(--surface-2);
}
.cat__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}
.cat__count {
  font-size: 12px;
  color: var(--ink-4);
}

/* ── Footer ─────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  margin-top: 40px;
}
.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
}
@media (max-width: 720px) { .site-footer__inner { grid-template-columns: 1fr 1fr; padding: 32px 16px; gap: 24px; } }
@media (max-width: 480px) { .site-footer__inner { grid-template-columns: 1fr; padding: 28px 16px; gap: 20px; } .site-footer__bottom { padding: 16px; font-size: 11px; } }
.site-footer h4 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--ink-3); font-size: 14px; }
.site-footer a:hover { color: var(--accent); }
.site-footer__about { color: var(--ink-3); font-size: 14px; max-width: 280px; }
.site-footer__bottom {
  border-top: 1px solid var(--line);
  padding: 18px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-4);
}

/* ── Post page ──────────────────────────────────────────────────── */

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.article__cover {
  width: 100%;
  height: 360px;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  overflow: hidden;
  position: relative;
}
.article__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11, 16, 32, 0.6) 100%);
}
.article__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.article__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.05;
}
.article__lede {
  font-size: 19px;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0 0 24px;
}
.article__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-4);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.author__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}
.author__name { color: var(--ink); font-weight: 600; }

.prose h2 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 40px 0 14px;
  line-height: 1.15;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 32px 0 10px;
}
.prose p { margin: 0 0 18px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose a { color: var(--accent); border-bottom: 1px solid currentColor; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 18px; }
.prose li { margin-bottom: 8px; line-height: 1.6; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
  margin: 24px 0;
  font-size: 18px;
  color: var(--ink-2);
  font-style: italic;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.prose pre {
  background: var(--ink);
  color: #fafbff;
  padding: 18px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  margin: 24px 0;
}
.prose pre code { background: transparent; border: 0; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 16px 0; display: block; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { font-weight: 700; color: var(--ink); }
.admon {
  border-left: 4px solid var(--accent);
  background: rgba(255, 91, 58, 0.06);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 18px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
.admon strong { color: var(--ink); margin-right: 6px; }
.admon--warn, .admon--warning, .admon--caution {
  border-left-color: #d97706;
  background: rgba(217, 119, 6, 0.08);
}
.admon--info, .admon--note {
  border-left-color: #3a6ff7;
  background: rgba(58, 111, 247, 0.06);
}
.admon--tip {
  border-left-color: #19a974;
  background: rgba(25, 169, 116, 0.08);
}
.callout {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
}
.callout__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.related {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.related h3 {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 16px;
  font-weight: 700;
}
.related-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 720px) { .related-list { grid-template-columns: 1fr; } }

/* ── covers (CSS-only, sin imagenes externas) ───────────────────── */

.cover-1 { background: linear-gradient(135deg, #ff5b3a 0%, #ffa84a 50%, #ff5b3a 100%); }
.cover-2 { background: linear-gradient(135deg, #3a6ff7 0%, #00c2ff 50%, #6a4cff 100%); }
.cover-3 { background: linear-gradient(135deg, #19a974 0%, #00d49e 100%); }
.cover-4 { background: linear-gradient(135deg, #6a4cff 0%, #ff4ca8 100%); }
.cover-5 { background: linear-gradient(135deg, #1a1a2e 0%, #4a5070 100%); }
.cover-6 { background: linear-gradient(135deg, #f0a020 0%, #ff5b3a 100%); }
.cover-7 { background: linear-gradient(135deg, #00c2ff 0%, #19a974 100%); }
.cover-8 { background: linear-gradient(135deg, #ff4ca8 0%, #ffa84a 100%); }
.cover-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  mix-blend-mode: overlay;
}

/* ── Animaciones ────────────────────────────────────────────────── */

@keyframes reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: reveal 480ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }

/* ── Post page (lectura optimizada) ──────────────────────────── */
/* Tipografía editorial, columna 700px, jerarquía clara, inline imgs con
   max-height para evitar fotos kilométricas, callouts distintivos. */

:root {
  --post-bg: #fafbff;
  --post-ink: #0b1020;
  --post-ink-2: #2a3047;
  --post-ink-3: #5a6178;
  --post-ink-4: #6c7390;
  --post-line: #e6e9f2;
  --post-line-2: #d8dbe6;
  --post-surface: #ffffff;
  --post-surface-2: #f4f6fb;
  --post-accent: #ff5b3a;
  --post-accent-2: #ffa84a;
  --post-link: #d63a14;
}

/* Scroll-based reading progress (set --scroll via JS si añadimos script;
   por ahora la barra es estática 0% pero estructura lista para activarla). */
.post-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--post-accent) 0%, var(--post-accent-2) 100%);
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll, 0));
  z-index: 100;
  transition: transform 80ms ease-out;
}

.post-page {
  background: var(--post-bg);
  color: var(--post-ink);
  font-family: var(--font-sans, "Inter", system-ui, -apple-system, sans-serif);
  margin: 0;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.post-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--post-line);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  position: sticky; top: 0; z-index: 10;
}
.post-nav__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--post-ink); text-decoration: none; letter-spacing: -0.01em; }
.post-nav__logo { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--post-accent), var(--post-accent-2)); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 15px; box-shadow: 0 2px 10px rgba(255, 91, 58, 0.25); }
.post-nav__back { color: var(--post-ink-3); font-size: 14px; font-weight: 500; text-decoration: none; transition: color 120ms; }
.post-nav__back:hover { color: var(--post-accent); }

.post-wrap { max-width: 740px; margin: 0 auto; padding: 48px 24px 96px; }
@media (min-width: 1100px) {
  .post-wrap { padding-top: 64px; }
}

.post-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 36px;
  background: var(--post-line);
  box-shadow: 0 12px 32px -16px rgba(11, 16, 32, 0.25), 0 4px 12px -4px rgba(11, 16, 32, 0.08);
}

.post__eyebrow {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--post-accent);
  font-weight: 600;
  margin: 0 0 14px;
}
.post__title {
  font-family: var(--font-display, "Inter", system-ui, sans-serif);
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 18px;
  color: var(--post-ink);
  text-wrap: balance;
}
.post__lede {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  color: var(--post-ink-2);
  margin: 0 0 26px;
  font-weight: 400;
  text-wrap: pretty;
}
.post__meta {
  font-size: 13px;
  color: var(--post-ink-4);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--post-line);
  margin: 0 0 40px;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.01em;
}

/* Body — measure ~70ch óptimo para lectura. */
.post__body {
  font-size: 18px;
  line-height: 1.78;
  color: var(--post-ink-2);
  max-width: 68ch;
}

.post__body p { margin: 0 0 22px; text-wrap: pretty; }
.post__body p:first-child { margin-top: 0; }

/* Drop-cap opcional en el primer párrafo después del lede. */
.post__body > p:first-of-type::first-letter {
  font-family: var(--font-display, "Inter", system-ui, sans-serif);
  font-size: 4em;
  font-weight: 800;
  float: left;
  line-height: 0.85;
  margin: 6px 12px 0 0;
  color: var(--post-accent);
  letter-spacing: -0.04em;
}

/* Headings — h2 con accent en lateral, h3 con peso. */
.post__body h2 {
  font-family: var(--font-display, "Inter", system-ui, sans-serif);
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 800;
  margin: 56px 0 18px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--post-ink);
  position: relative;
  padding-left: 16px;
  text-wrap: balance;
}
.post__body h2::before {
  content: "";
  position: absolute;
  left: 0; top: 0.18em; bottom: 0.18em;
  width: 3px;
  background: linear-gradient(180deg, var(--post-accent), var(--post-accent-2));
  border-radius: 2px;
}
.post__body h3 {
  font-family: var(--font-display, "Inter", system-ui, sans-serif);
  font-size: clamp(19px, 2.4vw, 22px);
  font-weight: 700;
  margin: 36px 0 12px;
  letter-spacing: -0.012em;
  color: var(--post-ink);
  text-wrap: balance;
}
.post__body h4 {
  font-size: 17px; font-weight: 700; margin: 28px 0 10px; color: var(--post-ink);
}

/* Links — sutil pero claro. */
.post__body a {
  color: var(--post-link);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(214, 58, 20, 0.35);
  transition: text-decoration-color 120ms, color 120ms;
}
.post__body a:hover { text-decoration-color: var(--post-link); color: var(--post-accent); }

/* Lists — markers acentuados. */
.post__body ul, .post__body ol { padding-left: 26px; margin: 0 0 22px; }
.post__body ul { list-style: none; }
.post__body ul > li { position: relative; }
.post__body ul > li::before {
  content: "";
  position: absolute; left: -18px; top: 0.7em;
  width: 6px; height: 6px;
  background: var(--post-accent);
  border-radius: 50%;
}
.post__body ol > li::marker { color: var(--post-accent); font-weight: 700; }
.post__body li { margin-bottom: 10px; line-height: 1.7; }
.post__body li > p { margin-bottom: 8px; }

/* Inline code + pre block — fuente mono, padding cómodo. */
.post__body code {
  background: var(--post-surface-2);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.88em;
  font-family: var(--font-mono, ui-monospace, "SF Mono", Menlo, Consolas, monospace);
  border: 1px solid var(--post-line);
  color: #b8492c;
  font-weight: 500;
}
.post__body pre {
  background: #0d1117;
  color: #e6edf3;
  padding: 22px 24px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.65;
  border: 1px solid #1f2429;
  box-shadow: 0 4px 16px -8px rgba(11, 16, 32, 0.2);
}
.post__body pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  font-weight: 400;
}

/* Imágenes inline en el cuerpo — limitar altura, alinear, atenuar. */
.post__body img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: 12px;
  margin: 32px auto;
  background: var(--post-line);
  box-shadow: 0 8px 24px -12px rgba(11, 16, 32, 0.18);
}
.post__body p:has(> img:only-child) { margin: 32px 0; }
.post__body p:has(> img:only-child) + p { margin-top: 0; }

/* Tablas — overflow horizontal en mobile, header destacado. */
.post__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
  line-height: 1.5;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}
@media (min-width: 720px) {
  .post__body table { display: table; white-space: normal; }
}
.post__body thead { border-bottom: 2px solid var(--post-line-2); }
.post__body th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--post-ink);
  background: var(--post-surface-2);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.post__body td {
  padding: 14px 14px;
  border-bottom: 1px solid var(--post-line);
  vertical-align: top;
}
.post__body tr:last-child td { border-bottom: 0; }
.post__body tbody tr:hover { background: var(--post-surface-2); }

/* Blockquote — barra accent, italic, color alternativo. */
.post__body blockquote {
  border-left: 4px solid var(--post-accent);
  padding: 6px 0 6px 22px;
  margin: 28px 0;
  color: var(--post-ink-2);
  font-size: 1.04em;
  font-style: italic;
  font-family: Georgia, "Iowan Old Style", serif;
}
.post__body blockquote p { margin-bottom: 10px; }
.post__body blockquote p:last-child { margin-bottom: 0; }

.post__body hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--post-line-2), transparent);
  margin: 48px auto;
  max-width: 200px;
}

.post__body strong { color: var(--post-ink); font-weight: 700; }
.post__body em { font-style: italic; }

/* Admonitions dentro del post — más prominentes que el .admon global. */
.post__body .admon {
  border-radius: 12px;
  border-left-width: 4px;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 15.5px;
  line-height: 1.65;
  background: var(--post-surface-2);
  border: 1px solid var(--post-line);
  border-left: 4px solid var(--post-accent);
}
.post__body .admon strong {
  display: block;
  font-family: var(--font-display, "Inter", system-ui, sans-serif);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--post-accent);
  margin: 0 0 6px;
  font-weight: 700;
}
.post__body .admon--tldr {
  background: linear-gradient(135deg, rgba(255, 91, 58, 0.08), rgba(255, 168, 74, 0.06));
  border: 1px solid rgba(255, 91, 58, 0.2);
  border-left: 4px solid var(--post-accent);
  font-size: 17px;
  line-height: 1.6;
  padding: 22px 26px;
}
.post__body .admon--tldr strong { color: var(--post-accent); font-size: 11px; }
.post__body .admon--info, .post__body .admon--note {
  background: rgba(58, 111, 247, 0.05);
  border: 1px solid rgba(58, 111, 247, 0.18);
  border-left: 4px solid #3a6ff7;
}
.post__body .admon--info strong, .post__body .admon--note strong { color: #3a6ff7; }
.post__body .admon--tip {
  background: rgba(25, 169, 116, 0.05);
  border: 1px solid rgba(25, 169, 116, 0.18);
  border-left: 4px solid #19a974;
}
.post__body .admon--tip strong { color: #19a974; }
.post__body .admon--warn, .post__body .admon--warning, .post__body .admon--caution {
  background: rgba(217, 119, 6, 0.06);
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-left: 4px solid #d97706;
}
.post__body .admon--warn strong, .post__body .admon--warning strong, .post__body .admon--caution strong { color: #d97706; }
.post__body .admon--important {
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-left: 4px solid #a855f7;
}
.post__body .admon--important strong { color: #a855f7; }

/* Related — cards con cover. */
.post-related {
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid var(--post-line);
}
.post-related h2 {
  font-family: var(--font-display, "Inter", system-ui, sans-serif);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--post-ink-3);
  margin: 0 0 22px;
  font-weight: 700;
}
.post-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .post-related ul { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
.post-related a {
  display: block;
  padding: 18px 20px;
  background: var(--post-surface);
  border: 1px solid var(--post-line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--post-ink);
  transition: border-color 150ms, transform 150ms, box-shadow 150ms;
}
.post-related a:hover {
  border-color: var(--post-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -12px rgba(255, 91, 58, 0.35);
}
.post-related__cat {
  display: block;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--post-accent);
  margin-bottom: 8px;
  font-weight: 600;
}
.post-related__title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--post-ink);
}

/* Site footer (post page reusa) — minimal. */
.post-page .site-footer {
  margin-top: 72px;
  padding: 28px 24px;
  border-top: 1px solid var(--post-line);
  text-align: center;
  font-size: 13px;
  color: var(--post-ink-4);
}
.post-page .site-footer a { color: var(--post-accent); text-decoration: none; }
.post-page .site-footer a:hover { text-decoration: underline; }

/* Mobile optimizations */
@media (max-width: 720px) {
  .post-wrap { padding: 32px 20px 80px; }
  .post-cover { aspect-ratio: 4 / 3; margin-bottom: 24px; border-radius: 12px; }
  .post__body { font-size: 17px; line-height: 1.72; }
  .post__body h2 { margin-top: 40px; }
  .post__body > p:first-of-type::first-letter { font-size: 3.4em; }
  .post__body pre { padding: 16px 18px; font-size: 13px; }
  .post-nav { padding: 12px 16px; }
  .post-nav__brand { font-size: 15px; }
}
@media (max-width: 480px) {
  .post-wrap { padding: 24px 16px 64px; }
  .post__body { font-size: 16px; }
  .post__body > p:first-of-type::first-letter { font-size: 2.8em; }
  .post__body blockquote { padding-left: 14px; font-size: 1em; }
  .post__body img { margin: 22px auto; border-radius: 10px; }
  .article__cover, .post-cover { height: 200px; max-height: 240px; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .post-progress, .post-related a { transition: none; }
}

/* === apptizo i18n + UX additions (2026-05-05) === */

/* Language picker */
.lang-picker { position: relative; }
.lang-picker__btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--ink-1, #f4f5f8); border: 1px solid var(--line, #e6e8ee);
  border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 13px;
  color: var(--ink-9, #15161a); cursor: pointer;
}
.lang-picker__btn:hover { background: #ebedf2; }
.lang-picker__caret { font-size: 10px; opacity: .6; }
.lang-picker__menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 200px; max-height: 360px; overflow: auto;
  background: #fff; border: 1px solid var(--line, #e6e8ee); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(20,22,30,.10);
  list-style: none; padding: 6px; margin: 0; z-index: 200;
  display: none;
}
.lang-picker.is-open .lang-picker__menu { display: block; }
.lang-picker__item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  text-decoration: none; color: var(--ink-9, #15161a);
  font-size: 14px;
}
.lang-picker__item:hover { background: var(--ink-1, #f4f5f8); }
.lang-picker__item[aria-current="true"] { background: #fff3ed; color: #b8390f; }
.lang-picker__code {
  display: inline-block; min-width: 26px; padding: 2px 6px;
  background: var(--ink-1, #f4f5f8); border-radius: 6px;
  font-size: 11px; font-weight: 700; text-align: center;
  color: var(--ink-7, #4a4d57);
}

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 1000; max-width: 720px; margin: 0 auto;
  background: #15161a; color: #fafbff;
  border-radius: 14px; box-shadow: 0 24px 48px rgba(20,22,30,.32);
  padding: 18px 22px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__title { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.cookie-banner__body { margin: 0 0 12px; font-size: 13px; line-height: 1.5; opacity: .85; }
.cookie-banner__config { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1); }
.cookie-banner__switch { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-banner .btn { padding: 8px 14px; font-size: 13px; border-radius: 8px; cursor: pointer; border: 0; }
.cookie-banner .btn--ghost { background: transparent; color: #fafbff; border: 1px solid rgba(255,255,255,.2); }
.cookie-banner .btn--accent { background: #ff5b3a; color: #fff; }

/* Search dropdown */
.search-results {
  position: absolute; top: 64px; left: 50%; transform: translateX(-50%);
  width: min(640px, 92vw);
  background: #fff; border: 1px solid var(--line, #e6e8ee); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(20,22,30,.10);
  padding: 6px; max-height: 60vh; overflow: auto; z-index: 150;
}
.search-results[hidden] { display: none; }
.search-result {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border-radius: 8px;
  text-decoration: none; color: var(--ink-9, #15161a); font-size: 14px;
}
.search-result:hover { background: var(--ink-1, #f4f5f8); }
.search-result__cat { font-size: 11px; color: var(--ink-4, #6b6e78); text-transform: uppercase; letter-spacing: .04em; }
.search-result__title { font-weight: 600; }

/* Newsletter form status */
.newsletter-status { margin: 8px 0 0; font-size: 12px; min-height: 14px; }
.newsletter-status.is-ok { color: #237a3a; }
.newsletter-status.is-err { color: #b8390f; }

/* Ad slots */
.ad-slot {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #f4f5f8 0 8px, #ebedf2 8px 16px);
  border: 1px dashed #c5c8d0; border-radius: 12px;
  color: #6b6e78; font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  margin: 28px 0; min-height: 90px;
}
.ad-slot--sidebar { min-height: 320px; }
.ad-slot--in-article { min-height: 120px; }
.ad-slot--post-bottom { min-height: 120px; }

/* Archive list */
.archive-list { list-style: none; padding: 0; margin: 24px 0; }
.archive-row a {
  display: grid; grid-template-columns: 110px 160px 1fr; gap: 18px;
  padding: 14px 0; border-bottom: 1px solid var(--line, #e6e8ee);
  text-decoration: none; color: var(--ink-9, #15161a);
}
.archive-row a:hover { background: var(--ink-1, #f4f5f8); }
.archive-row__date { color: var(--ink-4, #6b6e78); font-size: 13px; font-variant-numeric: tabular-nums; }
.archive-row__cat { color: var(--ink-7, #4a4d57); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.archive-row__title { font-weight: 600; font-size: 15px; }

/* Lang list in footer */
.lang-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 16px; }
.lang-list li { margin-bottom: 6px; }
.lang-list a { font-size: 13px; }
@media (max-width: 380px) { .lang-list { columns: 1; } }

/* Empty state */
.empty {
  padding: 24px; text-align: center; color: var(--ink-4, #6b6e78);
  background: var(--ink-1, #f4f5f8); border-radius: 12px;
}

/* RTL adjustments */
[dir="rtl"] .nav { direction: rtl; }
[dir="rtl"] .lang-picker__menu { right: auto; left: 0; }
[dir="rtl"] .archive-row a { grid-template-columns: 1fr 160px 110px; }
[dir="rtl"] .post-nav__back::before { content: ""; }
[dir="rtl"] .post__body { text-align: right; }
[dir="rtl"] blockquote { border-left: 0; border-right: 4px solid #ff5b3a; padding-right: 16px; padding-left: 0; }

/* Mobile lang picker */
@media (max-width: 720px) {
  .lang-picker__menu { right: -12px; }
  .cookie-banner { padding: 14px 16px; }
  .archive-row a { grid-template-columns: 1fr; gap: 4px; }
  .archive-row__date, .archive-row__cat { font-size: 11px; }
}

/* AI disclaimer (E-E-A-T) */
.ai-disclaimer {
  max-width: 1100px; margin: 32px auto 0; padding: 14px 22px;
  background: #fff8f1; border: 1px solid #ffe1c8; border-radius: 12px;
  font-size: 13px; line-height: 1.55; color: #6b3a18; text-align: center;
}
@media (max-width: 720px) {
  .ai-disclaimer { margin: 16px 16px 0; padding: 12px 14px; font-size: 12px; }
}
@media (max-width: 480px) {
  .ai-disclaimer { margin: 14px 16px 0; padding: 10px 12px; }
}

/* Auto-injected internal links in post body */
.post__body .auto-link {
  color: var(--accent, #ff5b3a);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  font-weight: 500;
}
.post__body .auto-link:hover { opacity: 0.8; }


/* ── Newsletter card (post-bottom) ──────────────────────────────────────── */
.newsletter-card {
  margin: 64px auto 0;
  max-width: 720px;
  padding: 32px 28px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(255, 91, 58, 0.08);
  position: relative;
  overflow: hidden;
}
.newsletter-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 91, 58, 0.32) 0%, transparent 70%);
  pointer-events: none;
}
.newsletter-card__inner {
  position: relative;
}
.newsletter-card__eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 8px;
}
.newsletter-card__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 6px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.012em;
}
.newsletter-card__lede {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
}
.newsletter-card__form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.newsletter-card__form input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.newsletter-card__form input:focus {
  border-color: var(--accent);
}
.newsletter-card__form button {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.newsletter-card__form button:hover {
  opacity: 0.9;
}
.newsletter-card__msg {
  margin: 12px 0 0;
  font-size: 13px;
  min-height: 18px;
}
@media (max-width: 720px) {
  .newsletter-card { padding: 24px 18px; margin-top: 48px; }
  .newsletter-card__title { font-size: 20px; }
}
@media (max-width: 480px) {
  .newsletter-card { padding: 22px 16px; margin-top: 40px; border-radius: 12px; }
  .newsletter-card__title { font-size: 19px; }
  .newsletter-card__form { gap: 8px; }
  .newsletter-card__form input { padding: 11px 12px; font-size: 14px; }
  .newsletter-card__form button { padding: 11px 16px; font-size: 13px; }
}


/* ── Mobile header optimization ──────────────────────────────────────────
 * Stacks header into 2 rows on tablet/phone, makes nav horizontally
 * scrollable, compresses brand/buttons, and gracefully hides non-essential
 * decoration. Keep search reachable but compact.
 */
@media (max-width: 980px) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
  }
  .search {
    margin-left: auto;
    min-width: 0;
    flex: 0 1 auto;
    padding: 6px 10px;
    font-size: 12px;
  }
  .search kbd { display: none; }
  .search input { min-width: 100px; }
  .btn--accent { font-size: 12px; padding: 7px 14px; }
}

@media (max-width: 760px) {
  .site-header__inner {
    padding: 10px 14px;
    gap: 8px;
  }
  .brand {
    font-size: 17px;
    gap: 8px;
  }
  .brand__logo {
    width: 28px;
    height: 28px;
    font-size: 14px;
    border-radius: 7px;
  }
  .brand__dot { display: none; }
  .nav {
    order: 5;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 18px;
    padding: 6px 0 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a {
    white-space: nowrap;
    font-size: 13px;
    flex-shrink: 0;
  }
  .search {
    flex: 1 1 140px;
    min-width: 100px;
    max-width: 220px;
  }
  .search input { min-width: 0; }
  .lang-picker__btn { padding: 6px 9px; font-size: 12px; }
  .btn--accent { padding: 7px 12px; }
}

@media (max-width: 480px) {
  .search { display: none; }
  .btn--accent { padding: 6px 10px; font-size: 11px; }
  .lang-picker__btn { padding: 6px 8px; }
}

@media (max-width: 380px) {
  .btn--accent { display: none; }
}

/* Sticky safe-area on iOS */
@supports (padding: env(safe-area-inset-top)) {
  .site-header__inner { padding-top: max(12px, env(safe-area-inset-top)); }
}

/* --- AdSense side rails (skyscrapers estilo Marca) — 2026-05-12 --- */
.ap-side-rail {
  display: none;
  position: fixed;
  top: 110px;
  z-index: 10;
  width: 160px;
}
.ap-side-rail-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-text-soft, #6b7280);
  margin-bottom: 6px;
  text-align: center;
  opacity: 0.7;
}
.ap-side-rail-left { left: 16px; }
.ap-side-rail-right { right: 16px; }
@media (min-width: 1480px) {
  .ap-side-rail { display: block; }
}
@media (min-width: 1700px) {
  .ap-side-rail { width: 300px; }
}
