/*
Theme Name: ClinicadelMotor
Theme URI: https://clinicadelmotor.com
Author: ClinicadelMotor
Author URI: https://clinicadelmotor.com
Description: Tema profesional mobile-first para blog automotriz con soporte AdSense y SEO optimizado.
Version: 1.8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clinicadelmotor
Tags: blog, automotive, mobile-first, adsense, seo
*/

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #ffffff;
  --color-fg: #0f172a;
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-fg: #ffffff;
  --color-muted: #475569;
  --color-border: #e2e8f0;
  --color-card: #ffffff;
  --color-secondary: #f1f5f9;
  --color-surface-dark: #2563eb;
  --color-surface-dark-fg: #f8fafc;
  --color-ad-bg: #f1f5f9;
  --color-ad-border: #dfe4ea;
  --radius: 0.5rem;
  --font-heading: 'Barlow', sans-serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--color-fg);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(0.75rem, 4vw, 1.5rem);
}
@media (min-width: 1440px) {
  .container { max-width: 1380px; }
}

/* ── Utilities ── */
.category-badge {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-primary-fg);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .section-title { font-size: 1.875rem; }
}

/* ── Ad Slots ── */
.ad-slot {
  background: var(--color-ad-bg);
  border: 1px solid var(--color-ad-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  overflow: hidden;
}
.ad-slot--leaderboard { height: 90px; width: 100%; max-width: 728px; margin: 0 auto; }
.ad-slot--banner { height: 90px; width: 100%; }
.ad-slot--rectangle { height: 250px; width: 100%; max-width: 300px; margin: 0 auto; }
.ad-slot--in-article { height: 250px; width: 100%; margin: 1.5rem 0; }
.ad-slot--sticky-footer {
  height: 50px;
  min-height: 50px;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  contain: layout size;
}
/* Reservar espacio para evitar CLS cuando AdSense rellena el sticky en mobile */
@media (max-width: 767px) {
  body { padding-bottom: 50px; }
}
@media (min-width: 768px) {
  .ad-slot--sticky-footer { display: none; }
}

/* ── Header v2 — modern, technical, glass ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #f1f5f9;
  background: linear-gradient(180deg, #1e3a5f 0%, #264a6e 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  isolation: isolate;
}
.site-header--v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 220px at 12% -10%, rgba(59,130,246,0.18), transparent 60%),
    radial-gradient(700px 200px at 92% -20%, rgba(30,58,138,0.30), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* Top utility bar */
.site-header__topbar {
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.18);
}
.site-header__topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 36px;
}
.site-header__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(34,197,94,0.10);
  color: rgba(220,252,231,0.9);
  border: 1px solid rgba(34,197,94,0.25);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.site-header__dot {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
}
.site-header__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(34,197,94,0.55);
  transform: scale(1);
  opacity: 1;
  animation: clmPulse 1.8s ease-out infinite;
  will-change: transform, opacity;
}
@keyframes clmPulse {
  0%   { transform: scale(1);    opacity: 0.55; }
  70%  { transform: scale(2.6);  opacity: 0; }
  100% { transform: scale(2.6);  opacity: 0; }
}
.site-header__topbar-actions { display: inline-flex; align-items: center; gap: 0.5rem; }
.site-header__topchip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.78rem;
  text-decoration: none;
  color: #e6edf7;
  background: linear-gradient(135deg, rgba(59,130,246,0.22), rgba(30,58,138,0.32));
  border: 1px solid rgba(99,179,237,0.30);
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease;
}
.site-header__topchip:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(59,130,246,0.35), rgba(30,58,138,0.45));
  box-shadow: 0 6px 18px -8px rgba(59,130,246,0.55);
}
.site-header__topchip--ghost {
  background: transparent;
  border-color: rgba(241,245,249,0.18);
  color: rgba(241,245,249,0.85);
}
.site-header__topchip--ghost:hover { background: rgba(241,245,249,0.06); }
@media (max-width: 540px) {
  .site-header__pill span:last-child { display: none; }
  .site-header__topchip-label { display: none; }
}

/* Main bar */
.site-header__main {
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.25rem;
}
@media (min-width: 768px) {
  .site-header__inner { height: 4.75rem; }
}

/* Logo */
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  transition: transform .25s ease;
}
.site-header__logo:hover { transform: translateY(-1px); }
.site-header__logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem; height: 2.6rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  padding: 2px;
  box-shadow: 0 8px 24px -10px rgba(59,130,246,0.55), inset 0 0 0 1px rgba(255,255,255,0.18);
}
.site-header__logo-wrap::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 0.75rem;
  background: conic-gradient(from 180deg, rgba(59,130,246,0), rgba(59,130,246,0.6), rgba(59,130,246,0));
  filter: blur(6px);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: -1;
}
.site-header__logo:hover .site-header__logo-wrap::after { opacity: 0.9; }
.site-header__logo-img {
  width: 100%; height: 100%;
  display: block;
  object-fit: contain;
  background: #ffffff;
  border-radius: 0.55rem;
  padding: 3px;
}
.site-header__logo-block { display: flex; flex-direction: column; line-height: 1.05; }
.site-header__logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: #f8fafc;
  letter-spacing: -0.01em;
}
.site-header__logo-sub {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(148,179,233,0.85);
  margin-top: 2px;
  font-weight: 600;
}
@media (max-width: 480px) {
  .site-header__logo-sub { display: none; }
  .site-header__logo-text { font-size: 1rem; }
}

/* Desktop nav */
.site-header__nav { display: none; align-items: center; gap: 0.35rem; }
@media (min-width: 900px) {
  .site-header__nav { display: flex; }
}
.site-header__nav a {
  position: relative;
  color: rgba(241,245,249,0.78);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.55rem 0.9rem;
  border-radius: 0.6rem;
  text-decoration: none;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.site-header__nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width .3s cubic-bezier(.2,.8,.2,1);
}
.site-header__nav a:hover,
.site-header__nav a:focus-visible {
  color: #fff;
  background: rgba(255,255,255,0.04);
  outline: none;
}
.site-header__nav a:hover::after,
.site-header__nav a:focus-visible::after { width: 60%; }
.site-header__nav a.current-menu-item,
.site-header__nav a[aria-current="page"] { color: #fff; }
.site-header__nav a.current-menu-item::after,
.site-header__nav a[aria-current="page"]::after { width: 60%; }

/* Actions */
.site-header__actions { display: flex; align-items: center; gap: 0.55rem; }

/* Animated bottom accent line — usa transform (compositada, sin reflow) */
.site-header__accent {
  display: block;
  position: relative;
  height: 2px;
  overflow: hidden;
  opacity: 0.85;
}
.site-header__accent::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 220%;
  background: linear-gradient(90deg, transparent, #3b82f6 30%, #2563eb 60%, transparent);
  transform: translate3d(0, 0, 0);
  animation: clmAccent 9s linear infinite;
  will-change: transform;
}
@keyframes clmAccent {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-54.5%, 0, 0); }
}

/* Mobile menu toggle — animated burger */
.site-header__mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  padding: 0;
  color: rgba(241,245,249,0.85);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 0.65rem;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.site-header__mobile-toggle:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); }
.site-header__burger {
  position: relative;
  display: inline-block;
  width: 18px; height: 12px;
}
.site-header__burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s ease, opacity .25s ease, top .3s ease;
}
.site-header__burger span:nth-child(1) { top: 0; }
.site-header__burger span:nth-child(2) { top: 5px; }
.site-header__burger span:nth-child(3) { top: 10px; }
.site-header__mobile-toggle.is-active .site-header__burger span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.site-header__mobile-toggle.is-active .site-header__burger span:nth-child(2) { opacity: 0; }
.site-header__mobile-toggle.is-active .site-header__burger span:nth-child(3) { top: 5px; transform: rotate(-45deg); }
@media (min-width: 900px) {
  .site-header__mobile-toggle { display: none; }
}

/* Mobile menu panel */
.site-header__mobile-menu {
  display: none;
  background: rgba(11,18,32,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem;
}
.site-header__mobile-menu.is-open {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  animation: fadeSlideDown .25s ease-out;
}
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.site-header__mobile-menu a {
  color: rgba(241,245,249,0.85);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.65rem 0.85rem;
  border-radius: 0.55rem;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, padding .2s ease;
}
.site-header__mobile-menu a:hover {
  color: #fff;
  background: rgba(59,130,246,0.14);
  padding-left: 1.1rem;
}

/* Search — animated, modern */
.search-form {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(241,245,249,0.08);
  border: 1px solid rgba(241,245,249,0.10);
  border-radius: 999px;
  padding: 0.45rem 0.9rem 0.45rem 0.85rem;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}
.search-form__icon {
  display: inline-flex;
  margin-right: 0.5rem;
  color: rgba(241,245,249,0.6);
  transition: color 0.25s ease, transform 0.35s ease;
}
.search-form input,
.search-form__input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-surface-dark-fg);
  font-size: 0.9rem;
  width: 8.5rem;
  transition: width 0.35s cubic-bezier(.2,.8,.2,1);
}
@media (min-width: 768px) {
  .search-form input,
  .search-form__input { width: 12rem; }
  .search-form:focus-within input,
  .search-form:focus-within .search-form__input { width: 16rem; }
}
.search-form:hover {
  background: rgba(241,245,249,0.12);
  border-color: rgba(241,245,249,0.18);
  transform: translateY(-1px);
}
.search-form:hover .search-form__icon { color: var(--color-primary); transform: rotate(-8deg) scale(1.05); }
.search-form:focus-within {
  background: rgba(241,245,249,0.14);
  border-color: var(--color-primary);
  box-shadow: 0 6px 18px -8px rgba(59,130,246,0.55), 0 0 0 3px rgba(59,130,246,0.18);
}
.search-form:focus-within .search-form__icon { color: var(--color-primary); }
.search-form__focus-bar {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), #3b82f6);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.35s ease;
  pointer-events: none;
}
.search-form:focus-within .search-form__focus-bar { width: 70%; }
.search-form input::placeholder,
.search-form__input::placeholder { color: rgba(241,245,249,0.45); }

/* Hide the hamburger toggle on mobile (categories already on home) — keep search visible */
@media (max-width: 767px) {
  .site-header__mobile-toggle--hide-on-mobile { display: none !important; }
  .site-header__mobile-menu { display: none !important; }
}

/* ── Hero ── */
.hero {
  position: relative;
  margin-top: 1rem;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 16 / 7;
}
@media (min-width: 768px) {
  .hero { margin-top: 1.5rem; aspect-ratio: 21 / 8; }
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(23,28,38,0.9), rgba(23,28,38,0.5), transparent);
}
.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}
.hero__content-inner { max-width: 30rem; }
.hero h1 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--color-primary-fg);
  line-height: 1.1;
}
@media (min-width: 640px) { .hero h1 { font-size: 1.875rem; } }
@media (min-width: 768px) { .hero h1 { font-size: 3rem; } }

.hero p {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  max-width: 28rem;
}
@media (min-width: 768px) { .hero p { font-size: 1rem; } }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  background: var(--color-primary);
  color: var(--color-primary-fg);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { opacity: 0.9; }

/* ── Article Cards ── */
.article-card {
  background: var(--color-card);
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}
.article-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.article-card__image { aspect-ratio: 16 / 10; overflow: hidden; }
.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.article-card:hover .article-card__image img { transform: scale(1.05); }

.article-card__body { padding: 1rem; }
.article-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.article-card:hover .article-card__title { color: var(--color-primary); }

.article-card__excerpt {
  color: var(--color-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: var(--color-muted);
  font-size: 0.75rem;
}

/* Featured card */
.article-card--featured { position: relative; }
.article-card--featured .article-card__image { aspect-ratio: 16 / 9; }
.article-card--featured .article-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23,28,38,0.8), transparent);
}
.article-card--featured .article-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem;
}
.article-card--featured .article-card__title {
  font-size: 1.125rem;
  color: var(--color-primary-fg);
}
@media (min-width: 768px) {
  .article-card--featured .article-card__title { font-size: 1.5rem; }
}
.article-card--featured .article-card__excerpt {
  color: rgba(255,255,255,0.7);
  display: none;
}
@media (min-width: 640px) {
  .article-card--featured .article-card__excerpt { display: -webkit-box; }
}

/* Compact card */
.article-card--compact {
  display: flex;
  gap: 0.75rem;
  background: transparent;
  border: none;
  box-shadow: none;
}
.article-card--compact img {
  width: 5rem;
  height: 5rem;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}
.article-card--compact .article-card__body { padding: 0; flex: 1; min-width: 0; }
.article-card--compact .article-card__category {
  color: var(--color-primary);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.article-card--compact .article-card__title { font-size: 0.875rem; }
.article-card--compact .article-card__meta { margin-top: 0.25rem; }

/* ── Grid Layouts ── */
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.grid-main > * { min-width: 0; }
@media (min-width: 1024px) {
  .grid-main { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
}

.grid-2col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 640px) {
  .grid-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.grid-3col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 640px) {
  .grid-3col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.grid-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 640px) { .grid-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-categories { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Sidebar */
.sidebar { display: none; }
@media (min-width: 1024px) {
  .sidebar { display: block; }
}
.sidebar__sticky {
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── Category Grid ── */
.category-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
  transition: all 0.2s;
}
.category-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.category-card__icon { font-size: 1.875rem; margin-bottom: 0.5rem; }
.category-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.category-card:hover h3 { color: var(--color-primary); }
.category-card p { color: var(--color-muted); font-size: 0.75rem; margin-top: 0.25rem; }

/* ── Article Page ── */
body.wp-singular,
body.single-post {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

.single-ad-top,
.single-layout {
  overflow: hidden;
}
.single-layout__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}
@media (min-width: 1024px) {
  .single-layout__grid {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  }
}

.article-main {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .article-main { margin: 0; }
}
@media (min-width: 1400px) {
  .article-main { max-width: 800px; }
}

.article-header { margin-bottom: 1.5rem; }
.article-header h1 {
  font-size: 1.7rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--color-fg);
  font-weight: 800;
  letter-spacing: -0.01em;
}
@media (min-width: 640px) { .article-header h1 { font-size: 2.1rem; } }
@media (min-width: 768px) { .article-header h1 { font-size: 2.5rem; } }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  color: var(--color-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.article-featured-image {
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 1.5rem;
}
.article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Table of contents */
.toc {
  background: var(--color-secondary);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 2rem;
}
.toc h2 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.toc ol { list-style: none; padding: 0; }
.toc li { margin-bottom: 0.375rem; }
.toc a {
  font-size: 0.875rem;
  color: var(--color-muted);
  transition: color 0.2s;
}
.toc a:hover { color: var(--color-primary); }

/* Article body */
.article-body h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) { .article-body h2 { font-size: 1.5rem; } }
.article-body p {
  color: var(--color-fg);
  line-height: 1.75;
  margin-bottom: 1.1rem;
  font-size: 1.08rem;
}
.article-body {
  width: 100%;
  overflow-wrap: break-word;
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.article-body figure {
  max-width: 100%;
}
.article-body .wp-block-image img {
  width: auto;
  max-width: 100%;
}
.article-body .wp-block-gallery,
.article-body .gallery {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.75rem !important;
  margin: 1.25rem 0;
}
.article-body figure.wp-block-gallery.has-nested-images,
.article-body .wp-block-gallery.has-nested-images {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 0.75rem !important;
}
.article-body figure.wp-block-gallery.has-nested-images > figure.wp-block-image,
.article-body .wp-block-gallery.has-nested-images > figure.wp-block-image,
.article-body .gallery .gallery-item {
  width: 100% !important;
  flex: none !important;
  max-width: 100% !important;
  margin: 0 !important;
}
.article-body figure.wp-block-gallery.has-nested-images > figure.wp-block-image img,
.article-body .wp-block-gallery.has-nested-images > figure.wp-block-image img,
.article-body .gallery img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  border-radius: var(--radius);
}
.article-body .wp-block-gallery figcaption,
.article-body .gallery-caption {
  font-size: 0.75rem;
  line-height: 1.3;
}
.article-body iframe,
.article-body embed,
.article-body object,
.article-body video {
  width: 100%;
}
.article-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.article-body pre {
  max-width: 100%;
  overflow-x: auto;
}
.article-body .alignwide,
.article-body .alignfull,
.article-body .wp-block-image,
.article-body .wp-block-embed {
  max-width: 100%;
}

@media (max-width: 767px) {
  body.single-post {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  body.single-post .container,
  body.single-post .single-ad-top,
  body.single-post .single-layout,
  body.single-post .single-layout__grid,
  body.single-post .article-main,
  body.single-post .article-header,
  body.single-post .article-body,
  body.single-post .article-featured-image,
  body.single-post .grid-3col {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body.single-post .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.single-post .article-main {
    margin-left: auto;
    margin-right: auto;
  }

  body.single-post .article-header h1 {
    font-size: 1.65rem;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  body.single-post .article-meta {
    gap: 0.5rem 0.875rem;
  }

  body.single-post .ad-slot,
  body.single-post .ad-slot--leaderboard,
  body.single-post .ad-slot--in-article,
  body.single-post .adsbygoogle,
  body.single-post ins,
  body.single-post iframe {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.single-post .article-body > *,
  body.single-post .article-body figure,
  body.single-post .article-body .wp-block-image,
  body.single-post .article-body .wp-block-embed {
    max-width: 100%;
  }

  body.single-post .article-body figure.wp-block-gallery.has-nested-images,
  body.single-post .article-body .wp-block-gallery.has-nested-images {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
  }

  body.single-post .alignleft,
  body.single-post .alignright {
    float: none;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Breadcrumb */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  transition: color 0.2s;
}
.breadcrumb:hover { color: var(--color-primary); }

/* ── Footer v2 — modern, branded ── */
.site-footer {
  position: relative;
  margin-top: 3rem;
  color: rgba(241,245,249,0.78);
  background:
    radial-gradient(800px 300px at 10% 0%, rgba(59,130,246,0.10), transparent 60%),
    radial-gradient(700px 280px at 95% 10%, rgba(30,58,138,0.12), transparent 60%),
    linear-gradient(180deg, #1e3a5f 0%, #162d4a 100%);
  overflow: hidden;
}
.site-footer__top-accent {
  display: block;
  position: relative;
  height: 2px;
  overflow: hidden;
  opacity: 0.85;
}
.site-footer__top-accent::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 220%;
  background: linear-gradient(90deg, transparent, #3b82f6 30%, #2563eb 60%, transparent);
  transform: translate3d(0, 0, 0);
  animation: clmAccent 9s linear infinite;
  will-change: transform;
}
.site-footer--v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, black, transparent 70%);
  pointer-events: none;
  opacity: 0.7;
}
.site-footer .container { position: relative; z-index: 1; }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  padding: 3rem 0 2rem;
}
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 3rem; } }

.site-footer h3 {
  position: relative;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ffffff;
  margin-bottom: 1.1rem;
  padding-left: 0.85rem;
}
.site-footer h3::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 1.05em;
  border-radius: 3px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.site-footer p,
.site-footer li,
.site-footer a {
  font-size: 0.9rem;
  color: rgba(241,245,249,0.65);
  line-height: 1.65;
}
.site-footer__list { list-style: none; padding: 0; margin: 0; }
.site-footer__list li { margin-bottom: 0.4rem; }
.site-footer__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: rgba(241,245,249,0.7);
  padding: 0.15rem 0;
  transition: color .2s ease, transform .2s ease;
}
.site-footer__arrow {
  display: inline-flex;
  width: 16px;
  color: #60a5fa;
  font-weight: 700;
  transform: translateX(0);
  transition: transform .25s ease, color .2s ease;
}
.site-footer__list a:hover { color: #fff; }
.site-footer__list a:hover .site-footer__arrow { transform: translateX(4px); color: #93c5fd; }

/* Brand block */
.site-footer__brand-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.9rem; }
.site-footer__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  padding: 3px;
  box-shadow: 0 10px 30px -12px rgba(59,130,246,0.55), inset 0 0 0 1px rgba(255,255,255,0.18);
}
.site-footer__brand-mark img {
  width: 100%; height: 100%;
  display: block;
  background: #fff;
  border-radius: 0.55rem;
  padding: 3px;
  object-fit: contain;
}
.site-footer__brand-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.site-footer__brand-tag {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #93c5fd;
  font-weight: 700;
  margin-top: 2px;
}
.site-footer__brand-desc {
  margin: 0 0 1.1rem;
  max-width: 32ch;
}
.site-footer__socials { display: inline-flex; gap: 0.5rem; }
.site-footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: #cbd5e1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  text-decoration: none;
  transition: transform .25s ease, background .25s ease, color .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.site-footer__social:hover {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px -10px rgba(59,130,246,0.6);
}

/* Contact CTAs */
.site-footer__contact { display: flex; flex-direction: column; gap: 0.65rem; }
.site-footer__contact-card {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, rgba(59,130,246,0.20), rgba(30,58,138,0.30));
  border: 1px solid rgba(99,179,237,0.28);
  text-decoration: none;
  color: #f1f5f9;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.site-footer__contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(59,130,246,0.55);
  border-color: rgba(147,197,253,0.55);
}
.site-footer__contact-card--ghost {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.10);
}
.site-footer__contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 0.6rem;
  background: rgba(255,255,255,0.10);
  color: #93c5fd;
  flex-shrink: 0;
}
.site-footer__contact-icon--ghost { color: #cbd5e1; }
.site-footer__contact-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.site-footer__contact-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(203,213,225,0.7);
  font-weight: 700;
}
.site-footer__contact-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  word-break: break-all;
}
.site-footer__hours {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: rgba(220,252,231,0.85);
}
.site-footer__dot--inline {
  position: relative;
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  vertical-align: middle;
}
.site-footer__dot--inline::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(34,197,94,0.55);
  transform: scale(1);
  opacity: 1;
  animation: clmPulse 1.8s ease-out infinite;
  will-change: transform, opacity;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid rgba(241,245,249,0.08);
  font-size: 0.78rem;
  color: rgba(241,245,249,0.45);
}
.site-footer__made { color: rgba(147,197,253,0.7); font-weight: 600; }
@media (max-width: 540px) {
  .site-footer__bottom { justify-content: center; text-align: center; }
}

/* ── Mobile trending section (visible only < lg) ── */
.mobile-only { display: block; }
@media (min-width: 1024px) { .mobile-only { display: none; } }

/* ── Spacing helpers ── */
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-14 { margin-top: 3.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }

/* ── WordPress-specific ── */
.aligncenter { text-align: center; margin: 1rem auto; }
.alignleft { float: left; margin: 0 1rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--color-muted); font-size: 0.75rem; margin-top: 0.25rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.5rem; }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Legal pages ── */
.legal-page { max-width: 820px; margin: 0 auto; }
.legal-page__updated { color: var(--color-muted, #6b7280); font-size: 0.95rem; margin-bottom: 1.75rem; }
.legal-page .article-body h2 { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--color-primary, #1d4ed8); }
.legal-page .article-body h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.legal-page .article-body p { margin-bottom: 1rem; line-height: 1.7; }
.legal-page .article-body ul { margin: 0 0 1.25rem 1.25rem; padding-left: 1rem; }
.legal-page .article-body ul li { margin-bottom: 0.4rem; line-height: 1.6; }
.legal-page .article-body a { color: var(--color-primary, #1d4ed8); text-decoration: underline; }
.legal-page .article-body a:hover { opacity: 0.8; }

/* ==========================================================
   CONTACT & ABOUT pages — animaciones y temática mecánica
   ========================================================== */

/* Shared keyframes */
@keyframes clm-spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes clm-spin-reverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes clm-fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes clm-pulse-soft { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes clm-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Animated background gears */
.gear { position: absolute; opacity: 0.07; color: #fff; pointer-events: none; }
.gear--1 { top: -40px; right: -40px; width: 280px; height: 280px; animation: clm-spin-slow 30s linear infinite; }
.gear--2 { bottom: -60px; left: -60px; width: 200px; height: 200px; animation: clm-spin-reverse 25s linear infinite; }
.gear svg { width: 100%; height: 100%; }

/* ===== HERO (compartido) ===== */
.contact-hero, .about-hero {
    position: relative;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #1d4ed8 100%);
    color: #fff;
    padding: 4.5rem 0 5rem;
    overflow: hidden;
    margin-bottom: 3rem;
}
.contact-hero__bg, .about-hero__bg {
    position: absolute; inset: 0; overflow: hidden;
}
.contact-hero__inner, .about-hero__inner {
    position: relative; z-index: 2; text-align: center; max-width: 760px; margin: 0 auto;
    animation: clm-fade-up 0.7s ease-out;
}
.contact-hero__badge, .about-hero__badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(255,255,255,0.12); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.4rem 0.9rem; border-radius: 999px;
    font-size: 0.85rem; font-weight: 600; margin-bottom: 1.25rem;
}
.contact-hero__title, .about-hero__title {
    font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800; line-height: 1.15; margin: 0 0 1rem; color: #fff;
}
.contact-hero__title span, .about-hero__title span {
    background: linear-gradient(90deg, #60a5fa, #2563eb);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.contact-hero__subtitle, .about-hero__subtitle {
    font-size: 1.1rem; line-height: 1.6; color: rgba(255,255,255,0.85); margin: 0;
}

/* ===== CONTACT cards ===== */
.contact-content { padding-bottom: 4rem; }
.contact-cards {
    display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 3rem;
}
@media (min-width: 768px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }

.contact-card {
    display: flex; align-items: center; gap: 1rem;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
    padding: 1.25rem; text-decoration: none; color: inherit;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    position: relative; overflow: hidden;
    animation: clm-fade-up 0.6s ease-out backwards;
}
.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }
.contact-card:hover {
    transform: translateY(-4px); border-color: #1d4ed8;
    box-shadow: 0 12px 30px -10px rgba(30,64,175,0.3);
}
.contact-card__icon {
    flex-shrink: 0; width: 52px; height: 52px; border-radius: 12px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s;
}
.contact-card__icon svg { width: 26px; height: 26px; }
.contact-card:hover .contact-card__icon { transform: rotate(-8deg) scale(1.1); }
.contact-card--primary .contact-card__icon { background: linear-gradient(135deg, #f3f4f6, #e5e7eb); color: #2563eb; }
.contact-card--whatsapp .contact-card__icon { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46; }
.contact-card__body { flex: 1; display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.contact-card__label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; font-weight: 600; }
.contact-card__value { font-size: 1.05rem; color: #111827; word-break: break-word; }
.contact-card__hint { font-size: 0.82rem; color: #9ca3af; }
.contact-card__arrow {
    font-size: 1.4rem; color: #1d4ed8; opacity: 0; transform: translateX(-8px);
    transition: all 0.3s;
}
.contact-card:hover .contact-card__arrow { opacity: 1; transform: translateX(0); }

/* ===== CONTACT form layout ===== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 2fr 1fr; gap: 3rem; } }

.contact-form-wrap {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 20px;
    padding: 2rem; animation: clm-fade-up 0.7s ease-out 0.2s backwards;
}
.contact-section-title {
    font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700;
    margin: 0 0 0.4rem; color: #0f172a;
}
.contact-section-sub { color: #6b7280; margin: 0 0 1.5rem; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form__row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .contact-form__row { grid-template-columns: 1fr 1fr; } }
.contact-field { display: flex; flex-direction: column; gap: 0.4rem; }
.contact-field span {
    font-size: 0.85rem; font-weight: 600; color: #374151;
}
.contact-field input, .contact-field textarea {
    width: 100%; padding: 0.75rem 1rem;
    border: 1.5px solid #e5e7eb; border-radius: 10px;
    font-size: 0.95rem; font-family: inherit; color: #111827;
    background: #f9fafb; transition: all 0.2s;
}
.contact-field input:focus, .contact-field textarea:focus {
    outline: none; border-color: #1d4ed8; background: #fff;
    box-shadow: 0 0 0 3px rgba(30,64,175,0.15);
}
.contact-field textarea { resize: vertical; min-height: 120px; }

.contact-submit {
    margin-top: 0.5rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff; border: none; padding: 0.95rem 1.5rem; border-radius: 12px;
    font-size: 1rem; font-weight: 700; cursor: pointer;
    transition: all 0.3s; box-shadow: 0 6px 16px -4px rgba(30,64,175,0.5);
}
.contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(30,64,175,0.6);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.contact-submit:hover svg { transform: translateX(4px); }
.contact-submit svg { transition: transform 0.3s; }

/* ===== CONTACT side info ===== */
.contact-side { display: flex; flex-direction: column; gap: 1rem; }
.contact-side__card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
    padding: 1.5rem; transition: all 0.3s;
    animation: clm-fade-up 0.7s ease-out backwards;
}
.contact-side__card:nth-child(1) { animation-delay: 0.3s; }
.contact-side__card:nth-child(2) { animation-delay: 0.4s; }
.contact-side__card:nth-child(3) { animation-delay: 0.5s; }
.contact-side__card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px -8px rgba(0,0,0,0.1); }
.contact-side__card--cta {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-color: #93c5fd;
}
.contact-side__icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: #dbeafe; color: #1d4ed8;
    display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem;
}
.contact-side__icon svg { width: 22px; height: 22px; }
.contact-side__icon--accent { background: #fff; color: #2563eb; }
.contact-side__card h3 {
    font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700;
    margin: 0 0 0.4rem; color: #0f172a;
}
.contact-side__card p { margin: 0; color: #4b5563; font-size: 0.92rem; line-height: 1.55; }

/* ==========================================================
   ABOUT page
   ========================================================== */
.about-content { padding-bottom: 4rem; }
.about-eyebrow {
    display: inline-block; text-transform: uppercase; letter-spacing: 0.08em;
    font-size: 0.8rem; font-weight: 700; color: #2563eb; margin-bottom: 0.5rem;
}
.about-section-title {
    font-family: var(--font-heading); font-size: 2rem; font-weight: 800;
    text-align: center; margin: 0 0 2rem; color: #0f172a;
}

/* Mission */
.about-mission {
    display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center;
    margin-bottom: 4rem;
}
@media (min-width: 1024px) { .about-mission { grid-template-columns: 3fr 2fr; gap: 3rem; } }
.about-mission__text h2 {
    font-family: var(--font-heading); font-size: 1.85rem; font-weight: 800;
    margin: 0 0 1rem; color: #0f172a; line-height: 1.25;
}
.about-mission__text p { color: #4b5563; line-height: 1.7; margin: 0 0 1rem; font-size: 1.02rem; }
.about-mission__visual { display: flex; justify-content: center; }
.about-mission__circle {
    width: 220px; height: 220px; border-radius: 50%;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 25px 50px -12px rgba(30,64,175,0.4);
    animation: clm-float 4s ease-in-out infinite;
    position: relative;
}
.about-mission__circle::before {
    content: ''; position: absolute; inset: -12px; border-radius: 50%;
    border: 2px dashed rgba(30,64,175,0.3);
    animation: clm-spin-slow 25s linear infinite;
}
.about-mission__circle svg { width: 100px; height: 100px; }

/* Values */
.about-values { margin-bottom: 4rem; }
.about-values__grid {
    display: grid; grid-template-columns: 1fr; gap: 1.25rem;
}
@media (min-width: 640px) { .about-values__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .about-values__grid { grid-template-columns: repeat(4, 1fr); } }

.about-value {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
    padding: 1.5rem; text-align: center;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
}
.about-value:hover {
    transform: translateY(-6px); border-color: #1d4ed8;
    box-shadow: 0 18px 35px -12px rgba(30,64,175,0.25);
}
.about-value__icon {
    width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 14px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.4s;
}
.about-value__icon svg { width: 28px; height: 28px; }
.about-value:hover .about-value__icon {
    background: linear-gradient(135deg, #1d4ed8, #2563eb); color: #fff;
    transform: rotate(8deg) scale(1.08);
}
.about-value h3 {
    font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700;
    margin: 0 0 0.5rem; color: #0f172a;
}
.about-value p { margin: 0; color: #6b7280; font-size: 0.92rem; line-height: 1.55; }

/* Story timeline */
.about-story { margin-bottom: 4rem; text-align: center; }
.about-story h2 {
    font-family: var(--font-heading); font-size: 2rem; font-weight: 800;
    margin: 0 0 2.5rem; color: #0f172a;
}
.about-story__timeline {
    display: flex; flex-direction: column; gap: 1.25rem; text-align: left; max-width: 800px; margin: 0 auto;
}
.about-step {
    display: flex; gap: 1.25rem; align-items: flex-start;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
    padding: 1.5rem; transition: all 0.3s;
    position: relative; overflow: hidden;
}
.about-step::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, #1d4ed8, #2563eb);
    transform: scaleY(0); transform-origin: top; transition: transform 0.4s;
}
.about-step:hover { transform: translateX(6px); box-shadow: 0 12px 28px -10px rgba(0,0,0,0.12); }
.about-step:hover::before { transform: scaleY(1); }
.about-step__num {
    flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem;
    box-shadow: 0 6px 14px -4px rgba(30,64,175,0.5);
}
.about-step__content h3 {
    font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700;
    margin: 0 0 0.4rem; color: #0f172a;
}
.about-step__content p { margin: 0; color: #4b5563; line-height: 1.6; font-size: 0.95rem; }

/* Stats */
.about-stats {
    display: grid; grid-template-columns: 1fr; gap: 1rem;
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    border-radius: 20px; padding: 2.5rem 2rem; margin-bottom: 4rem; color: #fff;
    position: relative; overflow: hidden;
}
@media (min-width: 640px) { .about-stats { grid-template-columns: repeat(3, 1fr); padding: 3rem 2rem; } }
.about-stat { text-align: center; }
.about-stat strong {
    display: block; font-family: var(--font-heading); font-size: 2.75rem; font-weight: 900;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 0.4rem; line-height: 1;
}
.about-stat span { color: rgba(255,255,255,0.8); font-size: 0.92rem; }

/* CTA */
.about-cta {
    background: #fff; border: 2px solid #1d4ed8; border-radius: 20px;
    padding: 3rem 2rem; text-align: center;
    box-shadow: 0 25px 50px -15px rgba(30,64,175,0.2);
}
.about-cta h2 {
    font-family: var(--font-heading); font-size: 1.85rem; font-weight: 800;
    margin: 0 0 0.75rem; color: #0f172a;
}
.about-cta p { color: #6b7280; margin: 0 0 1.75rem; font-size: 1.05rem; }
.about-cta__buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

.about-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.9rem 1.6rem; border-radius: 12px;
    font-weight: 700; font-size: 0.98rem; text-decoration: none;
    transition: all 0.3s; cursor: pointer;
}
.about-btn--primary {
    background: linear-gradient(135deg, #1d4ed8, #2563eb); color: #fff;
    box-shadow: 0 8px 20px -6px rgba(30,64,175,0.5);
}
.about-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -8px rgba(30,64,175,0.6);
    background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff;
}
.about-btn--ghost {
    background: #f0fdf4; color: #065f46; border: 1.5px solid #a7f3d0;
}
.about-btn--ghost:hover {
    background: #065f46; color: #fff; border-color: #065f46;
    transform: translateY(-2px);
}

/* ==========================================================
   PAGE WITH ADS — layout con anuncios laterales (escritorio)
   e intercalados (móvil). Reutilizable en cualquier página.
   ========================================================== */
.page-with-ads__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}
.page-with-ads__rail { display: none; min-width: 0; }
.page-with-ads__rail .ad-slot { width: 100%; max-width: 100%; }
.page-with-ads__rail .ad-slot--rectangle { max-width: 100%; height: 250px; }
.page-with-ads__sticky {
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.page-with-ads__inline-mobile { margin: 1.25rem 0; }
.page-with-ads__inline-mobile .ad-slot { min-height: 100px; }

/* Tablet horizontal y portátiles pequeños: solo UN rail derecho,
   más estrecho para que el contenido central tenga aire. */
@media (min-width: 1100px) {
  .page-with-ads__layout {
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 1.75rem;
  }
  .page-with-ads__rail--right { display: block; }
  .page-with-ads__inline-mobile { display: none; }
  /* El rail izquierdo permanece oculto a este tamaño */
}

/* Escritorio grande: dos rails laterales, más estrechos. */
@media (min-width: 1366px) {
  .page-with-ads__layout {
    grid-template-columns: 200px minmax(0, 1fr) 200px;
    gap: 2rem;
  }
  .page-with-ads__rail { display: block; }
}

/* Pantallas muy anchas: un poco más generoso con los rails. */
@media (min-width: 1600px) {
  .page-with-ads__layout {
    grid-template-columns: 240px minmax(0, 1fr) 240px;
    gap: 2.25rem;
  }
}

/* Cuando esta clase envuelve la página, el .container interno
   debe poder respirar; .contact-content y .about-content ya
   tienen sus reglas — el wrapper page-with-ads no las rompe. */
.page-with-ads__main { width: 100%; min-width: 0; max-width: 100%; }

/* En móvil/tablet pequeño no hay rails: limita el ancho del contenido
   en pantallas medianas para que no quede demasiado largo de leer. */
@media (min-width: 768px) and (max-width: 1099px) {
  .page-with-ads__main { max-width: 880px; margin: 0 auto; }
}

/* ==========================================================
   HOME (front-page) — Hero, categorías, posts, CTA
   ========================================================== */
.home-page { width: 100%; }

.home-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  padding: 3rem 0 3.5rem;
  margin-top: 0;
}
.home-hero__bg {
  position: absolute; inset: 0;
  pointer-events: none; opacity: 0.08;
}
.home-hero__bg .gear { position: absolute; color: #fff; }
.home-hero__bg .gear svg { width: 100%; height: 100%; }
.home-hero__bg .gear--1 {
  width: 320px; height: 320px; top: -60px; right: -80px;
  animation: clm-spin-slow 26s linear infinite;
}
.home-hero__bg .gear--2 {
  width: 220px; height: 220px; bottom: -60px; left: -40px;
  animation: clm-spin-reverse 32s linear infinite;
}
.home-hero__inner {
  position: relative; z-index: 1;
  max-width: 780px;
  animation: clm-fade-up 0.7s ease-out both;
}
.home-hero__badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.75rem; font-weight: 600;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.home-hero__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  line-height: 1.08;
  margin-bottom: 0.85rem;
}
.home-hero__title span {
  color: #60a5fa;
  display: inline-block;
}
.home-hero__subtitle {
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  color: rgba(255,255,255,0.78);
  max-width: 620px;
  margin-bottom: 1.5rem;
}
.home-hero__cta {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
}
.home-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.6rem;
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}
.home-btn--primary {
  background: #60a5fa; color: #1e3a5f;
  box-shadow: 0 6px 18px -8px rgba(251,191,36,0.7);
}
.home-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(251,191,36,0.9); }
.home-btn--ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.home-btn--ghost:hover { background: rgba(255,255,255,0.16); }

/* Section heads */
.home-section { margin: 2.5rem 0; }
.home-section__head { margin-bottom: 1.25rem; }
.home-section__head--row {
  display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.home-eyebrow {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}
.home-section__title {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.15;
  margin: 0;
}
.home-section__sub { color: var(--color-muted); font-size: 0.95rem; margin-top: 0.35rem; }
.home-link { color: var(--color-primary); font-weight: 600; font-size: 0.9rem; }

/* Categorías grid — 2 cols móvil, 3 tablet, 5 desktop */
.home-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (min-width: 560px) {
  .home-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}
@media (min-width: 900px) {
  .home-cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
}
/* Cuando aparece el rail derecho, el contenido se estrecha:
   bajamos a 4 columnas para evitar tarjetas apretadas. */
@media (min-width: 1100px) and (max-width: 1279px) {
  .home-cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .home-cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.home-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 0.85rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.home-cat-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--tone-from, #2563eb), var(--tone-to, #2563eb));
  opacity: 0; transition: opacity 0.25s ease; z-index: 0;
}
.home-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -14px rgba(0,0,0,0.25);
  border-color: transparent;
}
.home-cat-card:hover::before { opacity: 1; }
.home-cat-card:hover .home-cat-card__icon,
.home-cat-card:hover .home-cat-card__body h3,
.home-cat-card:hover .home-cat-card__body p,
.home-cat-card:hover .home-cat-card__count,
.home-cat-card:hover .home-cat-card__arrow { color: #fff; }
.home-cat-card:hover .home-cat-card__icon { background: rgba(255,255,255,0.18); }

.home-cat-card__icon,
.home-cat-card__body,
.home-cat-card__arrow { position: relative; z-index: 1; }

.home-cat-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem;
  border-radius: 0.6rem;
  background: var(--tone-bg, #eff6ff);
  color: var(--tone-from, #2563eb);
  transition: background 0.2s, color 0.2s;
}
.home-cat-card__icon svg { width: 1.4rem; height: 1.4rem; }

.home-cat-card__body h3 {
  font-family: var(--font-heading);
  font-size: 1rem; font-weight: 700;
  margin: 0 0 0.2rem;
  color: var(--color-fg);
  transition: color 0.2s;
}
.home-cat-card__body p {
  margin: 0;
  font-size: 0.82rem; line-height: 1.4;
  color: var(--color-muted);
  transition: color 0.2s;
}
.home-cat-card__count {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.7rem; font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase; letter-spacing: 0.06em;
  transition: color 0.2s;
}
.home-cat-card__arrow {
  position: absolute; top: 0.85rem; right: 0.95rem;
  font-size: 1rem; color: var(--color-muted);
  transition: color 0.2s, transform 0.2s;
}
.home-cat-card:hover .home-cat-card__arrow { transform: translateX(3px); }

/* Tones */
.home-cat-card.tone-blue   { --tone-from:#2563eb; --tone-to:#2563eb; --tone-bg:#dbeafe; }
.home-cat-card.tone-red    { --tone-from:#dc2626; --tone-to:#7f1d1d; --tone-bg:#fee2e2; }
.home-cat-card.tone-green  { --tone-from:#16a34a; --tone-to:#14532d; --tone-bg:#dcfce7; }
.home-cat-card.tone-blue  { --tone-from:#1d4ed8; --tone-to:#1d4ed8; --tone-bg:#f3f4f6; }
.home-cat-card.tone-purple { --tone-from:#7c3aed; --tone-to:#4c1d95; --tone-bg:#ede9fe; }

/* Posts grid en home */
.home-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 560px) {
  .home-posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .home-posts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* CTA final home */
.home-cta {
  margin: 3rem 0 1rem;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, #2563eb 0%, #1e3a5f 100%);
  color: #fff;
  position: relative;
}
.home-cta__inner {
  padding: 2rem 1.25rem;
  text-align: center;
  max-width: 640px; margin: 0 auto;
}
@media (min-width: 768px) { .home-cta__inner { padding: 2.5rem 2rem; } }
.home-cta h2 {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  margin-bottom: 0.5rem;
}
.home-cta p { color: rgba(255,255,255,0.78); margin-bottom: 1.25rem; font-size: 0.95rem; }
.home-cta__buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   ARCHIVE / CATEGORY PAGE  (v1.4.0)
   ========================================================= */

.archive-page { animation: clm-fade-in 0.4s ease-out; }

/* Hero header */
.archive-hero {
  position: relative;
  padding: 2rem 1.75rem;
  margin-bottom: 2rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, #2563eb 60%, #3b82f6 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 12px 32px -16px rgba(30, 58, 138, 0.5);
}
.archive-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,0.12), transparent 40%);
  pointer-events: none;
}
.archive-hero::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.18);
  animation: clm-spin-slow 30s linear infinite;
  pointer-events: none;
}
.archive-hero__eyebrow {
  position: relative;
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  margin-bottom: 0.85rem;
}
.archive-hero__title {
  position: relative;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.archive-hero__desc {
  position: relative;
  max-width: 60ch;
  color: rgba(255,255,255,0.92);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 0.85rem;
}
.archive-hero__meta {
  position: relative;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.825rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

/* Grid: 6 articles, 3 cols / 2 cols / 1 col */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 1100px) {
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
}
@media (max-width: 600px) {
  .archive-grid { grid-template-columns: 1fr; gap: 1.1rem; }
}

/* Card */
.archive-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 2px 8px -4px rgba(15, 23, 42, 0.08);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, border-color 0.25s ease;
}
.archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -18px rgba(30, 58, 138, 0.35);
  border-color: rgba(30, 58, 138, 0.35);
}
.archive-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-secondary);
}
.archive-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.archive-card:hover .archive-card__media img { transform: scale(1.07); }

.archive-card__placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  color: var(--color-muted);
  background:
    repeating-linear-gradient(45deg, var(--color-secondary), var(--color-secondary) 12px, #e8edf4 12px, #e8edf4 24px);
}
.archive-card__media-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.55) 100%);
  pointer-events: none;
}
.archive-card__badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(30, 58, 138, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  box-shadow: 0 4px 12px -2px rgba(0,0,0,0.2);
}

.archive-card__body {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.15rem 1.15rem;
  gap: 0.55rem;
  flex: 1;
}
.archive-card__title {
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--color-fg);
  margin: 0;
}
.archive-card__title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--color-primary), var(--color-primary));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  transition: background-size 0.3s ease, color 0.2s ease;
}
.archive-card__title a:hover { color: var(--color-primary); background-size: 100% 2px; }

.archive-card__excerpt {
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--color-muted);
  border-top: 1px dashed var(--color-border);
}
.archive-card__meta-item { display: inline-flex; align-items: center; gap: 0.3rem; }

.archive-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.01em;
}
.archive-card__cta svg { transition: transform 0.25s ease; }
.archive-card:hover .archive-card__cta svg { transform: translateX(4px); }

/* In-grid mobile ad spans full row */
.archive-grid__ad { grid-column: 1 / -1; }

/* =========================================================
   PAGINATION
   ========================================================= */
.archive-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 2.5rem 0 1rem;
  padding: 1rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  box-shadow: 0 4px 12px -8px rgba(15, 23, 42, 0.12);
}

.archive-pagination__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), #2563eb);
  border-radius: 0.6rem;
  border: 1px solid transparent;
  box-shadow: 0 6px 14px -6px rgba(30, 58, 138, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.archive-pagination__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -8px rgba(30, 58, 138, 0.55);
  color: #fff;
}
.archive-pagination__btn.is-disabled {
  background: var(--color-secondary);
  color: var(--color-muted);
  box-shadow: none;
  pointer-events: none;
  opacity: 0.55;
}
.archive-pagination__btn--prev svg { transition: transform 0.25s ease; }
.archive-pagination__btn--next svg { transition: transform 0.25s ease; }
.archive-pagination__btn--prev:hover svg { transform: translateX(-3px); }
.archive-pagination__btn--next:hover svg { transform: translateX(3px); }

.archive-pagination__numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0; padding: 0;
}
.archive-pagination__numbers .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-fg);
  text-decoration: none;
  background: var(--color-secondary);
  border: 1px solid transparent;
  border-radius: 0.55rem;
  transition: all 0.2s ease;
}
.archive-pagination__numbers .page-numbers:hover {
  background: #fff;
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}
.archive-pagination__numbers .page-numbers.current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 10px -4px rgba(30, 58, 138, 0.55);
}
.archive-pagination__numbers .page-numbers.dots {
  background: transparent;
  pointer-events: none;
}

@media (max-width: 600px) {
  .archive-pagination { gap: 0.4rem; padding: 0.75rem; }
  .archive-pagination__btn { padding: 0.55rem 0.85rem; font-size: 0.825rem; }
  .archive-pagination__btn span { display: none; }
  .archive-pagination__numbers .page-numbers { min-width: 2.1rem; height: 2.1rem; font-size: 0.85rem; }
}

/* =========================================================
   EMPTY STATE
   ========================================================= */
.archive-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--color-card);
  border: 1px dashed var(--color-border);
  border-radius: 1rem;
  color: var(--color-muted);
}
.archive-empty svg { color: var(--color-primary); opacity: 0.55; margin-bottom: 1rem; }
.archive-empty h2 { color: var(--color-fg); font-size: 1.4rem; margin-bottom: 0.5rem; }
.archive-empty p { margin-bottom: 1.25rem; }

/* Fade-in animation */
@keyframes clm-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =========================================================
   IMPROVED ARTICLE READING EXPERIENCE (v1.4.1)
   ========================================================= */

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 9999;
  pointer-events: none;
}
.reading-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), #3b82f6);
  box-shadow: 0 0 8px rgba(30, 58, 138, 0.4);
  transition: width 0.1s linear;
}

/* Make archive card CTA visually look like a button + ensure it's clickable */
.archive-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-primary);
  background: rgba(30, 58, 138, 0.08);
  border-radius: 0.55rem;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.archive-card__cta:hover,
.archive-card__cta:focus-visible {
  background: var(--color-primary);
  color: var(--color-primary-fg);
  transform: translateX(2px);
  outline: none;
}
.archive-card__cta:focus-visible {
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.25);
}

/* Breadcrumb above article */
.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}
.article-breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.article-breadcrumb a:hover { color: var(--color-primary); }
.article-breadcrumb__current {
  color: var(--color-fg);
  font-weight: 600;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Article header lede / subtitle */
.article-lede {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--color-muted);
  margin: 0 0 1.25rem;
  font-weight: 400;
}
@media (min-width: 768px) {
  .article-lede { font-size: 1.18rem; }
}

/* Article meta refinements */
.article-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}



/* IMPROVED ARTICLE BODY — bigger, more readable, better rhythm */
.article-body {
  font-size: 1.075rem;
  line-height: 1.78;
  color: #232a36;
}
@media (min-width: 768px) {
  .article-body { font-size: 1.13rem; line-height: 1.8; }
}
.article-body p {
  color: #232a36;
  line-height: inherit;
  margin: 0 0 1.25rem;
  font-size: inherit;
}
.article-body p:first-of-type::first-letter {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  line-height: 0.95;
  font-weight: 700;
  color: var(--color-primary);
  float: left;
  margin: 0.35rem 0.65rem 0 0;
}
.article-body h2 {
  font-size: 1.55rem;
  line-height: 1.25;
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
  position: relative;
  padding-left: 0.9rem;
  scroll-margin-top: 90px;
}
.article-body h2::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35em; bottom: 0.35em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--color-primary), #3b82f6);
}
@media (min-width: 768px) {
  .article-body h2 { font-size: 1.8rem; }
}
.article-body h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  scroll-margin-top: 90px;
}
.article-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.article-body a:hover {
  color: #3b82f6;
  text-decoration-thickness: 2px;
}
.article-body ul,
.article-body ol {
  margin: 0 0 1.4rem 1.4rem;
  padding: 0;
}
.article-body li {
  margin-bottom: 0.55rem;
  padding-left: 0.25rem;
}
.article-body ul li::marker { color: var(--color-primary); }
.article-body ol li::marker { color: var(--color-primary); font-weight: 700; }

.article-body blockquote {
  margin: 1.75rem 0;
  padding: 1.1rem 1.3rem;
  border-left: 4px solid var(--color-primary);
  background: linear-gradient(90deg, rgba(30, 58, 138, 0.06), rgba(30, 58, 138, 0));
  border-radius: 0 0.6rem 0.6rem 0;
  font-style: italic;
  color: #2c3543;
  font-size: 1.08em;
}
.article-body blockquote p:last-child { margin-bottom: 0; }

.article-body img,
.article-body figure {
  margin: 1.75rem 0;
}
.article-body figcaption {
  font-size: 0.85rem;
  color: var(--color-muted);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

.article-body code {
  background: var(--color-secondary);
  padding: 0.15em 0.4em;
  border-radius: 0.3em;
  font-size: 0.9em;
  color: var(--color-primary);
}
.article-body pre {
  background: #1e3a5f;
  color: #e2e8f0;
  padding: 1rem 1.25rem;
  border-radius: 0.6rem;
  margin: 1.5rem 0;
}
.article-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.article-body hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  margin: 2.5rem 0;
}

.article-body table {
  margin: 1.5rem 0;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
}
.article-body table th,
.article-body table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}
.article-body table th {
  background: var(--color-secondary);
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Featured image upgrade */
.article-featured-image {
  border-radius: 1rem;
  box-shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.35);
}

/* Article header bigger */
.article-header h1 {
  font-size: 1.85rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
@media (min-width: 640px) { .article-header h1 { font-size: 2.25rem; } }
@media (min-width: 768px) { .article-header h1 { font-size: 2.65rem; } }

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.article-tags__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-right: 0.25rem;
}
.article-tags__tag {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(30, 58, 138, 0.08);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.article-tags__tag:hover {
  background: var(--color-primary);
  color: var(--color-primary-fg);
}



/* Related section */
.article-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}
.article-related__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 0.9rem;
}
.article-related__title::before {
  content: "";
  position: absolute;
  left: 0; top: 0.2em; bottom: 0.2em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--color-primary), #3b82f6);
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .article-body p:first-of-type::first-letter {
    font-size: 2.8rem;
  }
  .article-breadcrumb__current { max-width: 160px; }
}

/* ==============================================================
   v1.5.0 — Dark mode, scroll reveal, counters, FAQ, services,
   404, custom cursor, theme toggle
   ============================================================== */

/* ---- Dark mode tokens ---- */
:root { color-scheme: light; }
html[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #162d4a;
  --color-surface: #1e3a5f;
  --color-surface-2: #264a6e;
  --color-text: #e6edf7;
  --color-muted: #94a3b8;
  --color-border: #1e293b;
  --color-primary: #60a5fa;
  --color-primary-fg: #162d4a;
}
html[data-theme="dark"] body { background: var(--color-bg); color: var(--color-text); }
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .home-cat-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .clm-faq,
html[data-theme="dark"] .home-counter,
html[data-theme="dark"] .article-tags__tag,
html[data-theme="dark"] .widget,
html[data-theme="dark"] .home-cta__inner {
  background-color: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .search-form input[type="search"] {
  background: var(--color-surface-2);
  color: var(--color-text);
  border-color: var(--color-border);
}
html[data-theme="dark"] .article-body,
html[data-theme="dark"] .article-body p,
html[data-theme="dark"] .article-body li { color: var(--color-text); }
html[data-theme="dark"] img { filter: brightness(.92) contrast(1.02); }

/* ---- Theme toggle button ---- */
.site-header__theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
  position: relative;
  margin-left: 0.4rem;
}
.site-header__theme-toggle:hover { transform: rotate(-15deg) scale(1.05); border-color: var(--color-primary); color: var(--color-primary); }
.site-header__theme-icon { display: block; transition: opacity .25s, transform .35s; position: absolute; }
.site-header__theme-icon--moon { opacity: 0; transform: rotate(-90deg) scale(.7); }
.site-header__theme-icon--sun { opacity: 1; }
html[data-theme="dark"] .site-header__theme-icon--sun { opacity: 0; transform: rotate(90deg) scale(.7); }
html[data-theme="dark"] .site-header__theme-icon--moon { opacity: 1; transform: none; }

/* ---- Scroll reveal (#12) ---- */
.clm-reveal-init {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: transform, opacity;
}
.clm-reveal-init.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .clm-reveal-init { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---- Counters (#11) ---- */
.home-counters { padding: 3.5rem 0 1rem; }
.home-counters__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.home-counter {
  text-align: center;
  padding: 1.6rem 1rem;
  background: linear-gradient(160deg, var(--color-surface, #fff), color-mix(in oklab, var(--color-primary, #2563eb) 6%, transparent));
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.home-counter::before {
  content: ""; position: absolute; inset: -1px;
  background: linear-gradient(135deg, transparent 60%, color-mix(in oklab, var(--color-primary, #2563eb) 18%, transparent));
  border-radius: inherit; pointer-events: none;
}
.home-counter:hover { transform: translateY(-4px); box-shadow: 0 12px 30px -16px color-mix(in oklab, var(--color-primary, #2563eb) 50%, transparent); }
.home-counter__num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary, #2563eb), #60a5fa);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.home-counter__label {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  color: var(--color-muted);
  font-weight: 500;
}
@media (max-width: 768px) {
  .home-counters__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Services page (#6) ---- */
.services-page { padding: 2.5rem 0 4rem; }
.services-hero { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.services-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin: 0.4rem 0 0.8rem;
  line-height: 1.15;
}
.services-hero__lede { color: var(--color-muted); font-size: 1.08rem; line-height: 1.6; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}
.service-card {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 18px;
  padding: 1.6rem 1.4rem;
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.service-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--color-primary, #2563eb), #60a5fa);
  transition: width .4s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px -20px color-mix(in oklab, var(--color-primary, #2563eb) 60%, transparent); border-color: color-mix(in oklab, var(--color-primary, #2563eb) 30%, var(--color-border, #e2e8f0)); }
.service-card:hover::after { width: 100%; }
.service-card__icon {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, color-mix(in oklab, var(--color-primary, #2563eb) 16%, transparent), transparent);
  border-radius: 14px;
  color: var(--color-primary, #2563eb);
  margin-bottom: 1rem;
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card__title { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; margin: 0 0 0.5rem; }
.service-card__desc { color: var(--color-muted); font-size: 0.97rem; line-height: 1.55; margin-bottom: 1rem; }
.service-card__cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; color: var(--color-primary, #2563eb);
  text-decoration: none;
  transition: gap .25s ease;
}
.service-card__cta:hover { gap: 0.7rem; }

/* ---- FAQ accordion (#7) ---- */
.services-faq { max-width: 820px; margin: 0 auto; }
.services-faq__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  margin: 0.4rem 0 1.5rem;
  text-align: center;
}
.clm-faq {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 14px;
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.clm-faq[open] { border-color: color-mix(in oklab, var(--color-primary, #2563eb) 35%, var(--color-border, #e2e8f0)); box-shadow: 0 6px 20px -12px color-mix(in oklab, var(--color-primary, #2563eb) 50%, transparent); }
.clm-faq__q {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 1.02rem;
}
.clm-faq__q::-webkit-details-marker { display: none; }
.clm-faq__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--color-primary, #2563eb) 12%, transparent);
  color: var(--color-primary, #2563eb);
  font-weight: 700; font-size: 1.1rem; line-height: 1;
  transition: transform .3s ease, background .3s ease;
  flex-shrink: 0;
}
.clm-faq[open] .clm-faq__icon { transform: rotate(45deg); background: var(--color-primary, #2563eb); color: var(--color-primary-fg, #fff); }
.clm-faq__a {
  padding: 0 1.25rem 1.1rem;
  color: var(--color-muted);
  line-height: 1.65;
  animation: clmFaqOpen .35s ease;
}
@keyframes clmFaqOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---- 404 page (#14) ---- */
.error-404-page { padding: 4rem 0 5rem; }
.error-404 {
  max-width: 640px; margin: 0 auto; text-align: center;
  position: relative;
}
.error-404__visual { position: relative; height: 220px; margin-bottom: 1.5rem; }
.error-404__gear {
  position: absolute; left: 50%; top: 50%;
  color: color-mix(in oklab, var(--color-primary, #2563eb) 18%, transparent);
  animation: clmSpin 14s linear infinite;
}
.error-404__gear--lg { width: 200px; height: 200px; transform: translate(-50%, -50%); }
.error-404__gear--sm { width: 100px; height: 100px; transform: translate(30%, -90%); animation-direction: reverse; animation-duration: 8s; color: color-mix(in oklab, var(--color-primary, #2563eb) 28%, transparent); }
.error-404__gear svg { width: 100%; height: 100%; }
.error-404__code {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: clamp(4rem, 12vw, 6rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-primary, #2563eb), #60a5fa);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.02em;
}
@keyframes clmSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.error-404__gear--sm { animation-name: clmSpinSm; }
@keyframes clmSpinSm { to { transform: translate(30%, -90%) rotate(-360deg); } }
.error-404__title { font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 0.7rem; }
.error-404__lede { color: var(--color-muted); margin-bottom: 1.8rem; line-height: 1.6; }
.error-404__diagnose {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  text-align: left;
  margin: 0 auto 2rem;
  max-width: 420px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9rem;
}
.error-404__diagnose-label { display: block; font-weight: 700; margin-bottom: 0.5rem; color: var(--color-text); font-family: var(--font-heading); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.error-404__diagnose ul { list-style: none; padding: 0; margin: 0; color: var(--color-muted); }
.error-404__diagnose li { padding: 0.25rem 0; }
.error-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  align-items: center;
  margin: 0 auto 2rem;
  width: 100%;
  text-align: center;
}
.error-404__actions .home-btn { margin: 0; }
.error-404__search { margin: 1.5rem auto 0; max-width: 480px; }
.error-404__search p { color: var(--color-muted); margin-bottom: 0.6rem; font-size: 0.95rem; text-align: center; }
/* Make search form visible inside the (white) 404 page */
.error-404__search .search-form {
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  border-radius: 999px;
  padding: 0.5rem 0.9rem 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.error-404__search .search-form:focus-within {
  background: #fff;
  border-color: var(--color-primary, #2563eb);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-primary, #2563eb) 18%, transparent);
}
.error-404__search .search-form__icon { color: var(--color-primary, #2563eb); display: inline-flex; }
.error-404__search .search-form__input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 1rem;
  color: #0f172a;
  padding: 0.4rem 0;
  min-width: 0;
}
.error-404__search .search-form__input::placeholder { color: #64748b; }
.error-404__search .search-form__focus-bar { display: none; }

/* ---- Custom cursor (#13) — desktop only ---- */
@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
  body.clm-has-cursor, body.clm-has-cursor * { cursor: none !important; }
  body.clm-has-cursor input, body.clm-has-cursor textarea { cursor: text !important; }
  .clm-cursor, .clm-cursor__ring {
    position: fixed; top: 0; left: 0; pointer-events: none;
    z-index: 9999;
    transform: translate3d(-100px, -100px, 0);
    will-change: transform, opacity;
    transition: opacity .25s ease;
  }
  .clm-cursor {
    width: 8px; height: 8px;
    background: var(--color-primary, #2563eb);
    border-radius: 50%;
    margin: -4px 0 0 -4px;
    mix-blend-mode: difference;
  }
  .clm-cursor__ring {
    width: 36px; height: 36px;
    border: 1.5px solid color-mix(in oklab, var(--color-primary, #2563eb) 70%, transparent);
    border-radius: 50%;
    margin: -18px 0 0 -18px;
    transition: width .25s ease, height .25s ease, margin .25s ease, background .25s ease, border-color .25s ease, opacity .25s ease;
  }
  .clm-cursor__ring.is-hover {
    width: 56px; height: 56px;
    margin: -28px 0 0 -28px;
    background: color-mix(in oklab, var(--color-primary, #2563eb) 12%, transparent);
    border-color: var(--color-primary, #2563eb);
  }
}

/* ==============================================================
   v1.5.1 — Brighter blue + readability + redesigned "Más artículos"
   ============================================================== */

/* Force strong title contrast across the site */
.article-header h1,
.single-layout h1,
.page h1,
.home-hero__title,
.section-title,
.services-hero__title,
.services-faq__title,
.article-related__title,
.error-404__title { color: var(--color-fg); }

.article-body { color: var(--color-fg); }
.article-body li { color: var(--color-fg); line-height: 1.75; }
.article-body strong, .article-body b { color: var(--color-fg); }

/* Sidebar — Redesigned "Más artículos" */
.sidebar-more {
  background: linear-gradient(160deg, #ffffff 0%, color-mix(in oklab, var(--color-primary) 5%, #ffffff) 100%);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 1.25rem 1.1rem;
  box-shadow: 0 8px 24px -18px color-mix(in oklab, var(--color-primary) 60%, transparent);
  position: relative;
  overflow: hidden;
}
.sidebar-more::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-primary), #60a5fa);
}
.sidebar-more__head { margin-bottom: 1rem; }
.sidebar-more__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  background: color-mix(in oklab, var(--color-primary) 12%, transparent);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}
.sidebar-more__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-fg);
  margin: 0;
  line-height: 1.2;
}
.sidebar-more__list { list-style: none; padding: 0; margin: 0; }
.sidebar-more__item { border-top: 1px solid color-mix(in oklab, var(--color-border) 70%, transparent); }
.sidebar-more__item:first-child { border-top: 0; }
.sidebar-more__link {
  display: grid;
  grid-template-columns: auto 64px 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.85rem 0;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease;
}
.sidebar-more__link:hover { transform: translateX(3px); }
.sidebar-more__num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color-primary);
  opacity: 0.55;
  width: 1.4rem;
  text-align: center;
  letter-spacing: -0.02em;
  transition: opacity .25s ease;
}
.sidebar-more__link:hover .sidebar-more__num { opacity: 1; }
.sidebar-more__thumb {
  width: 64px; height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-secondary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.sidebar-more__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.sidebar-more__link:hover .sidebar-more__thumb img { transform: scale(1.08); }
.sidebar-more__thumb--placeholder {
  background: linear-gradient(135deg, color-mix(in oklab, var(--color-primary) 15%, transparent), color-mix(in oklab, var(--color-primary) 5%, transparent));
  color: var(--color-primary);
}
.sidebar-more__body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.sidebar-more__cat {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
}
.sidebar-more__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--color-fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .25s ease;
}
.sidebar-more__link:hover .sidebar-more__heading { color: var(--color-primary); }
.sidebar-more__meta {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-top: 0.15rem;
}

/* Dark mode adjustments for the new sidebar */
html[data-theme="dark"] .sidebar-more {
  background: linear-gradient(160deg, var(--color-surface) 0%, color-mix(in oklab, var(--color-primary) 8%, var(--color-surface)) 100%);
}
html[data-theme="dark"] .sidebar-more__title,
html[data-theme="dark"] .sidebar-more__heading { color: var(--color-text); }
html[data-theme="dark"] .sidebar-more__thumb { background: var(--color-surface-2); }

/* ==============================================================
   v1.5.3 — 404 page fixes (centered actions + visible search input)
   v1.5.2 — Hero with AI video background
   ============================================================== */
.home-hero--video { position: relative; overflow: hidden; isolation: isolate; }
.home-hero--video .home-hero__inner { position: relative; z-index: 3; }
.home-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  pointer-events: none;
}
.home-hero__video-overlay {
  position: absolute; inset: 0;
  z-index: 2;
  background:
    linear-gradient(120deg, rgba(15,23,42,0.86) 0%, rgba(15,23,42,0.62) 45%, rgba(37,99,235,0.55) 100%),
    radial-gradient(60% 80% at 20% 30%, rgba(37,99,235,0.35) 0%, transparent 60%);
  pointer-events: none;
}
.home-hero--video .home-hero__title,
.home-hero--video .home-hero__subtitle,
.home-hero--video .home-hero__badge { color: #fff; }
.home-hero--video .home-hero__title span {
  background: linear-gradient(90deg, #93c5fd, #60a5fa);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.home-hero--video .home-hero__subtitle { color: rgba(255,255,255,0.9); }
.home-hero--video .home-hero__badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Reduce data on small screens / save battery */
@media (max-width: 640px) {
  .home-hero__video { display: none; }
  .home-hero--video {
    background:
      linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 60%, #2563eb 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero__video { display: none; }
  .home-hero--video {
    background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 60%, #2563eb 100%);
  }
}

/* ── v1.7.0: Hot sections (Problemas / Averías / Últimos) ── */
.home-eyebrow--hot{
    background:linear-gradient(90deg,#2563eb 0%,#3b82f6 100%);
    color:#fff;padding:.25rem .65rem;border-radius:999px;
    font-weight:700;letter-spacing:.02em;display:inline-flex;align-items:center;gap:.35rem;
    box-shadow:0 4px 14px rgba(37,99,235,.25);
}
.home-section--hot .home-section__title{margin-top:.55rem;}
.home-section--hot{margin-top:2.5rem;}


/* ==============================================================
   v1.9.0 — Single article page: clean "ficha de taller" aesthetic
   Matches the newsletter box palette: white, blue, navy
   ============================================================== */

/* ── Reading progress bar — blue instead of blue ── */
body.single-post .reading-progress__bar {
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
}

/* ── Full page clean background ── */
body.single-post {
  background: #ffffff;
}

/* ── Breadcrumb ── */
body.single-post .article-breadcrumb {
  color: #6b7280;
}
body.single-post .article-breadcrumb a {
  color: #6b7280;
}
body.single-post .article-breadcrumb a:hover {
  color: #2563eb;
}
body.single-post .article-breadcrumb__current {
  color: #0b1220;
}

/* ── Category badge — blue accent ── */
body.single-post .category-badge {
  background: #2563eb;
  color: #0b1220;
  border: 2px solid #0b1220;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 2px 2px 0 #0b1220;
}
body.single-post .category-badge:hover {
  background: #3b82f6;
}

/* ── Article header ── */
body.single-post .article-header h1 {
  color: #0b1220;
}
body.single-post .article-lede {
  color: #1f2937;
}
body.single-post .article-meta {
  color: #6b7280;
}
body.single-post .article-meta__item {
  color: #6b7280;
}
body.single-post .article-meta__item svg {
  color: #2563eb;
}

/* ── Featured image — clean shadow ── */
body.single-post .article-featured-image {
  border: 2px solid #0b1220;
  border-radius: 14px;
  box-shadow: 6px 6px 0 #0b1220;
}

/* ── Article body — clean palette ── */
body.single-post .article-body {
  color: #1f2937;
}
body.single-post .article-body p {
  color: #1f2937;
}
body.single-post .article-body h2 {
  color: #0b1220;
}
body.single-post .article-body h2::before {
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
}
body.single-post .article-body h3 {
  color: #0b1220;
}
body.single-post .article-body p:first-of-type::first-letter {
  color: #2563eb;
}
body.single-post .article-body a {
  color: #2563eb;
  text-decoration-color: #2563eb;
}
body.single-post .article-body a:hover {
  color: #1d4ed8;
  text-decoration-color: #1d4ed8;
}
body.single-post .article-body ul li::marker {
  color: #2563eb;
}
body.single-post .article-body ol li::marker {
  color: #2563eb;
  font-weight: 700;
}
body.single-post .article-body li {
  color: #1f2937;
}
body.single-post .article-body strong,
body.single-post .article-body b {
  color: #0b1220;
}

/* Blockquote — clean style */
body.single-post .article-body blockquote {
  border-left: 4px solid #2563eb;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.08), transparent);
  color: #1f2937;
}

/* Code blocks */
body.single-post .article-body code {
  background: #f3f4f6;
  color: #1d4ed8;
  border: 1px solid #e5e7eb;
}
body.single-post .article-body pre {
  background: #1e3a5f;
  border: 2px solid #0b1220;
  border-radius: 14px;
  box-shadow: 4px 4px 0 #2563eb;
}
body.single-post .article-body pre code {
  background: transparent;
  color: #e2e8f0;
  border: none;
}

/* Tables */
body.single-post .article-body table {
  border: 2px solid #0b1220;
  border-radius: 14px;
  overflow: hidden;
}
body.single-post .article-body table th {
  background: #2563eb;
  color: #0b1220;
  font-weight: 800;
  border-bottom: 2px solid #0b1220;
}
body.single-post .article-body table td {
  border-bottom: 1px solid #e5e7eb;
}

/* HR */
body.single-post .article-body hr {
  background: linear-gradient(90deg, transparent, #2563eb, transparent);
}

/* Figcaption */
body.single-post .article-body figcaption {
  color: #6b7280;
}

/* ── Tags — clean blue pills ── */
body.single-post .article-tags {
  border-top-color: #e5e7eb;
}
body.single-post .article-tags__label {
  color: #6b7280;
}
body.single-post .article-tags__tag {
  color: #0b1220;
  background: #f3f4f6;
  border: 1.5px solid #e5e7eb;
  font-weight: 700;
}
body.single-post .article-tags__tag:hover {
  background: #2563eb;
  color: #0b1220;
  border-color: #0b1220;
  box-shadow: 2px 2px 0 #0b1220;
}

/* ── Related section — clean card style ── */
body.single-post .article-related {
  border-top-color: #e5e7eb;
}
body.single-post .article-related__title {
  color: #0b1220;
}
body.single-post .article-related__title::before {
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
}

/* Related article cards */
body.single-post .article-card {
  background: #ffffff;
  border: 2px solid #0b1220;
  border-radius: 14px;
  box-shadow: 4px 4px 0 #0b1220;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}
body.single-post .article-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #0b1220;
}
body.single-post .article-card__title {
  color: #0b1220;
}
body.single-post .article-card:hover .article-card__title {
  color: #2563eb;
}
body.single-post .article-card__meta {
  color: #6b7280;
}
body.single-post .article-card__excerpt {
  color: #1f2937;
}
body.single-post .article-card .category-badge {
  font-size: 0.65rem;
}

/* ── Sidebar — clean "ficha de taller" style ── */
body.single-post .sidebar-more {
  background: #ffffff;
  border: 2px solid #0b1220;
  border-radius: 14px;
  box-shadow: 6px 6px 0 #0b1220;
  overflow: hidden;
}
body.single-post .sidebar-more::before {
  height: 14px;
  background: repeating-linear-gradient(135deg, #2563eb 0 18px, #1e3a5f 18px 36px);
}
body.single-post .sidebar-more__eyebrow {
  color: #2563eb;
  background: #f3f4f6;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
body.single-post .sidebar-more__title {
  color: #0b1220;
  font-weight: 800;
}
body.single-post .sidebar-more__item {
  border-top-color: #e5e7eb;
}
body.single-post .sidebar-more__num {
  color: #2563eb;
}
body.single-post .sidebar-more__cat {
  color: #2563eb;
}
body.single-post .sidebar-more__heading {
  color: #0b1220;
}
body.single-post .sidebar-more__link:hover .sidebar-more__heading {
  color: #2563eb;
}
body.single-post .sidebar-more__meta {
  color: #6b7280;
}
body.single-post .sidebar-more__thumb {
  border: 1.5px solid #0b1220;
  border-radius: 10px;
}
body.single-post .sidebar-more__thumb--placeholder {
  background: linear-gradient(135deg, #f3f4f6, #f9fafb);
  color: #2563eb;
}

/* ── TOC on article page — clean style ── */
body.single-post .clm-toc {
  background: #ffffff;
  border: 2px solid #0b1220;
  border-radius: 14px;
  box-shadow: 4px 4px 0 #0b1220;
}
body.single-post .clm-toc__toggle {
  color: #0b1220;
}
body.single-post .clm-toc__item a {
  color: #2563eb;
}
body.single-post .clm-toc__item a:hover {
  color: #1d4ed8;
}

/* ==============================================================
   v2.0.0 — GLOBAL clean "ficha de taller" palette
   Applies the newsletter white/blue/navy aesthetic site-wide.
   ============================================================== */

/* ── Override root variables ── */
:root {
  --color-bg: #ffffff;
  --color-fg: #0b1220;
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-fg: #162d4a;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-card: #ffffff;
  --color-secondary: #f3f4f6;
  --color-surface-dark: #0b1220;
  --color-surface-dark-fg: #ffffff;
  --color-ad-bg: #f9fafb;
  --color-ad-border: #e5e7eb;
}

body {
  background: #ffffff;
  color: #0b1220;
}

/* ── Global category badge ── */
.category-badge {
  background: #2563eb;
  color: #0b1220;
  border: 2px solid #0b1220;
  border-radius: 6px;
  font-weight: 800;
  box-shadow: 2px 2px 0 #0b1220;
}

/* ── Section titles ── */
.section-title { color: #0b1220; }
.home-eyebrow { color: #2563eb; }
.home-section__title { color: #0b1220; }
.home-section__sub { color: #6b7280; }
.home-link { color: #2563eb; }
.home-link:hover { color: #1d4ed8; }

/* ══════════════════════════════════════════════════════════════
   HEADER — clean navy with blue accents (keep dark bg, clean accents)
   ══════════════════════════════════════════════════════════════ */
.site-header {
  background: linear-gradient(180deg, #1e3a5f 0%, #264a6e 100%);
}
.site-header--v2::before {
  background:
    radial-gradient(900px 220px at 12% -10%, rgba(37, 99, 235, 0.12), transparent 60%),
    radial-gradient(700px 200px at 92% -20%, rgba(37, 99, 235, 0.15), transparent 60%);
}
.site-header__accent::before {
  background: linear-gradient(90deg, transparent, #2563eb 30%, #1d4ed8 60%, transparent);
}
.site-header__topchip {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(37, 99, 235, 0.25));
  border-color: rgba(37, 99, 235, 0.35);
}
.site-header__topchip:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.40), rgba(37, 99, 235, 0.40));
  box-shadow: 0 6px 18px -8px rgba(37, 99, 235, 0.55);
}
.site-header__logo-wrap {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 8px 24px -10px rgba(37, 99, 235, 0.55), inset 0 0 0 1px rgba(255,255,255,0.18);
}
.site-header__logo-wrap::after {
  background: conic-gradient(from 180deg, rgba(37, 99, 235, 0), rgba(37, 99, 235, 0.6), rgba(37, 99, 235, 0));
}
.site-header__logo-sub { color: rgba(37, 99, 235, 0.85); }
.site-header__nav a::after {
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
}
.site-header__nav a:hover,
.site-header__nav a:focus-visible {
  color: #fff;
}
.site-header__pill {
  background: rgba(37, 99, 235, 0.10);
  color: rgba(253, 224, 71, 0.9);
  border-color: rgba(37, 99, 235, 0.25);
}
.site-header__dot { background: #2563eb; }
.site-header__dot::after { background: rgba(37, 99, 235, 0.55); }

/* Search bar */
.search-form:focus-within {
  border-color: #2563eb;
}
.search-form:hover .search-form__icon { color: #2563eb; }
.search-form:focus-within .search-form__icon { color: #2563eb; }
.search-form__focus-bar {
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
}

/* Mobile menu */
.site-header__mobile-menu {
  background: linear-gradient(180deg, #1e3a5f, #264a6e);
}
.site-header__mobile-menu a:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

/* ══════════════════════════════════════════════════════════════
   HOME HERO — clean with blue gradients
   ══════════════════════════════════════════════════════════════ */
.home-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6e 50%, #2d5a8a 100%);
}
.home-hero__badge {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.30);
  color: #3b82f6;
}
.home-hero__title span { color: #2563eb; }
.home-btn--primary {
  background: #2563eb;
  color: #0b1220;
  border: 2px solid #0b1220;
  box-shadow: 4px 4px 0 #0b1220;
  font-weight: 800;
}
.home-btn--primary:hover {
  background: #3b82f6;
  box-shadow: 6px 6px 0 #0b1220;
  transform: translate(-2px, -2px);
}
.home-btn--ghost {
  border-color: rgba(37, 99, 235, 0.40);
  color: #3b82f6;
}
.home-btn--ghost:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: #2563eb;
  color: #2563eb;
}

/* Home hero video variant */
.home-hero--video .home-hero__overlay {
  background: linear-gradient(135deg, rgba(11,18,32,0.85), rgba(69,26,3,0.60), transparent);
}

/* ══════════════════════════════════════════════════════════════
   CATEGORY CARDS — clean tones
   ══════════════════════════════════════════════════════════════ */
.home-cat-card {
  background: #ffffff;
  border: 2px solid #0b1220;
  border-radius: 14px;
  box-shadow: 4px 4px 0 #0b1220;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-cat-card:hover {
  transform: translate(-2px, -4px);
  box-shadow: 6px 8px 0 #0b1220;
  border-color: #0b1220;
}
.home-cat-card::before { display: none; }
.home-cat-card:hover .home-cat-card__body h3 { color: #0b1220; }
.home-cat-card:hover .home-cat-card__body p { color: #1f2937; }
.home-cat-card:hover .home-cat-card__count { color: #2563eb; }
.home-cat-card:hover .home-cat-card__icon { background: #2563eb; color: #0b1220; }
.home-cat-card:hover .home-cat-card__arrow { color: #2563eb; }
.home-cat-card__icon {
  background: #f3f4f6;
  color: #2563eb;
  border: 1.5px solid #0b1220;
}
.home-cat-card__count { color: #2563eb; }
.home-cat-card__arrow { color: #2563eb; }

/* Override tone system for clean */
.home-cat-card.tone-blue   { --tone-bg: #f3f4f6; --tone-from: #2563eb; --tone-to: #1d4ed8; }
.home-cat-card.tone-red    { --tone-bg: #f3f4f6; --tone-from: #dc2626; --tone-to: #7f1d1d; }
.home-cat-card.tone-green  { --tone-bg: #f3f4f6; --tone-from: #16a34a; --tone-to: #14532d; }
.home-cat-card.tone-blue  { --tone-bg: #f3f4f6; --tone-from: #1d4ed8; --tone-to: #1d4ed8; }
.home-cat-card.tone-purple { --tone-bg: #f3f4f6; --tone-from: #7c3aed; --tone-to: #4c1d95; }

/* ══════════════════════════════════════════════════════════════
   ARTICLE CARDS (global — home, archive, related)
   ══════════════════════════════════════════════════════════════ */
.article-card {
  background: #ffffff;
  border: 2px solid #0b1220;
  border-radius: 14px;
  box-shadow: 4px 4px 0 #0b1220;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.article-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #0b1220;
}
.article-card__title { color: #0b1220; }
.article-card:hover .article-card__title { color: #2563eb; }
.article-card__excerpt { color: #1f2937; }
.article-card__meta { color: #6b7280; }
.article-card--featured .article-card__overlay {
  background: linear-gradient(to top, rgba(11,18,32,0.85), transparent);
}

/* Compact card */
.article-card--compact { box-shadow: none; border: none; }
.article-card--compact img {
  border: 1.5px solid #0b1220;
  border-radius: 10px;
}
.article-card--compact .article-card__category { color: #2563eb; }

/* ══════════════════════════════════════════════════════════════
   HOME CTA
   ══════════════════════════════════════════════════════════════ */
.home-cta {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6e 50%, #2d5a8a 100%);
  border: 2px solid #0b1220;
  border-radius: 14px;
  box-shadow: 6px 6px 0 #0b1220;
}
.home-cta h2 { color: #fff; }
.home-cta p { color: rgba(255,255,255,0.78); }

/* ══════════════════════════════════════════════════════════════
   COUNTERS
   ══════════════════════════════════════════════════════════════ */
.home-counter {
  background: #ffffff;
  border: 2px solid #0b1220;
  border-radius: 14px;
  box-shadow: 4px 4px 0 #0b1220;
}
.home-counter::before {
  background: linear-gradient(135deg, transparent 60%, rgba(37, 99, 235, 0.15));
}
.home-counter:hover {
  transform: translate(-2px, -4px);
  box-shadow: 6px 8px 0 #0b1220;
}
.home-counter__num {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ══════════════════════════════════════════════════════════════
   ARCHIVE PAGE
   ══════════════════════════════════════════════════════════════ */
.archive-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8a 60%, #1d4ed8 100%);
  border: 2px solid #0b1220;
  box-shadow: 6px 6px 0 #2563eb;
}
.archive-hero::after {
  border-color: rgba(37, 99, 235, 0.25);
}
.archive-hero__eyebrow {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.30);
  color: #3b82f6;
}

.archive-card {
  background: #ffffff;
  border: 2px solid #0b1220;
  border-radius: 14px;
  box-shadow: 4px 4px 0 #0b1220;
}
.archive-card:hover {
  transform: translate(-2px, -4px);
  box-shadow: 6px 8px 0 #0b1220;
  border-color: #0b1220;
}
.archive-card__badge {
  background: rgba(37, 99, 235, 0.92);
  color: #0b1220;
  font-weight: 800;
  border: 1.5px solid #0b1220;
  box-shadow: 2px 2px 0 #0b1220;
}
.archive-card__title a {
  background-image: linear-gradient(#2563eb, #2563eb);
}
.archive-card__title a:hover { color: #2563eb; }
.archive-card__cta { color: #2563eb; }
.archive-card__meta { border-top-color: #e5e7eb; }

/* Pagination */
.archive-pagination {
  background: #ffffff;
  border: 2px solid #0b1220;
  border-radius: 14px;
  box-shadow: 4px 4px 0 #0b1220;
}
.archive-pagination__btn {
  background: #2563eb;
  color: #0b1220;
  border: 2px solid #0b1220;
  box-shadow: 3px 3px 0 #0b1220;
  font-weight: 800;
}
.archive-pagination__btn:hover {
  background: #3b82f6;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #0b1220;
  color: #0b1220;
}
.archive-pagination__btn.is-disabled {
  background: #f3f4f6;
  color: #9ca3af;
  border-color: #e5e7eb;
  box-shadow: none;
}
.archive-pagination__numbers .page-numbers {
  background: #f3f4f6;
  color: #0b1220;
  border: 1.5px solid #e5e7eb;
}
.archive-pagination__numbers .page-numbers:hover {
  background: #2563eb;
  border-color: #0b1220;
  color: #0b1220;
}
.archive-pagination__numbers .page-numbers.current {
  background: #1e3a5f;
  color: #2563eb;
  border-color: #0b1220;
  box-shadow: 3px 3px 0 #2563eb;
}

/* ══════════════════════════════════════════════════════════════
   CONTACT & ABOUT HERO — clean gradient
   ══════════════════════════════════════════════════════════════ */
.contact-hero, .about-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8a 50%, #1d4ed8 100%);
}
.contact-hero__badge, .about-hero__badge {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.30);
  color: #3b82f6;
}
.contact-hero__title span, .about-hero__title span {
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Contact cards */
.contact-card {
  background: #ffffff;
  border: 2px solid #0b1220;
  border-radius: 14px;
  box-shadow: 4px 4px 0 #0b1220;
}
.contact-card:hover {
  transform: translate(-2px, -4px);
  box-shadow: 6px 8px 0 #0b1220;
  border-color: #0b1220;
}
.contact-card__icon {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  color: #2563eb;
  border: 1.5px solid #0b1220;
}
.contact-card:hover .contact-card__icon { transform: rotate(-8deg) scale(1.1); }
.contact-card--primary .contact-card__icon {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  color: #2563eb;
}
.contact-card--whatsapp .contact-card__icon {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
}

/* Contact form */
.contact-form__group input:focus,
.contact-form__group textarea:focus,
.contact-form__group select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* About values */
.about-value {
  background: #ffffff;
  border: 2px solid #0b1220;
  border-radius: 14px;
  box-shadow: 4px 4px 0 #0b1220;
}
.about-value:hover {
  transform: translate(-2px, -4px);
  box-shadow: 6px 8px 0 #0b1220;
}
.about-value__icon {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  color: #2563eb;
  border: 1.5px solid #0b1220;
}
.about-value:hover .about-value__icon {
  background: #2563eb;
  color: #0b1220;
}

/* About stats bar */
.about-stats {
  background: linear-gradient(135deg, #1e3a5f, #2d5a8a);
  border: 2px solid #0b1220;
  border-radius: 14px;
}
.about-stat strong {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* About mission circle */
.about-mission__circle {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border: 2px solid #0b1220;
  color: #2563eb;
}

/* About step */
.about-step {
  border: 2px solid #0b1220;
  border-radius: 14px;
  box-shadow: 3px 3px 0 #0b1220;
}
.about-step::before {
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
}
.about-step:hover {
  transform: translateX(4px);
  box-shadow: 5px 5px 0 #0b1220;
}
.about-step__num {
  background: #2563eb;
  color: #0b1220;
  border: 1.5px solid #0b1220;
}

/* About/Contact buttons */
.about-btn--primary {
  background: #2563eb;
  color: #0b1220;
  border: 2px solid #0b1220;
  box-shadow: 4px 4px 0 #0b1220;
}
.about-btn--primary:hover {
  background: #3b82f6;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #0b1220;
  color: #0b1220;
}
.about-btn--ghost {
  background: #f3f4f6;
  color: #065f46;
  border: 2px solid #0b1220;
  box-shadow: 3px 3px 0 #0b1220;
}
.about-btn--ghost:hover {
  background: #d1fae5;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #0b1220;
  color: #065f46;
}

/* About CTA section */
.about-cta {
  background: #ffffff;
}
.about-cta h2 { color: #0b1220; }

/* ══════════════════════════════════════════════════════════════
   SERVICES PAGE
   ══════════════════════════════════════════════════════════════ */
.service-card {
  background: #ffffff;
  border: 2px solid #0b1220;
  border-radius: 14px;
  box-shadow: 4px 4px 0 #0b1220;
}
.service-card::after {
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
}
.service-card:hover {
  transform: translate(-2px, -6px);
  box-shadow: 6px 10px 0 #0b1220;
  border-color: #0b1220;
}
.service-card__icon {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  color: #2563eb;
  border: 1.5px solid #0b1220;
}
.service-card__cta { color: #2563eb; }
.service-card__cta:hover { color: #1d4ed8; }

/* FAQ */
.clm-faq {
  background: #ffffff;
  border: 2px solid #0b1220;
  border-radius: 14px;
}
.clm-faq[open] {
  border-color: #0b1220;
  box-shadow: 4px 4px 0 #2563eb;
}
.clm-faq__icon {
  background: #f3f4f6;
  color: #2563eb;
}
.clm-faq[open] .clm-faq__icon {
  background: #2563eb;
  color: #0b1220;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER — clean navy with blue accents
   ══════════════════════════════════════════════════════════════ */
.site-footer {
  background:
    radial-gradient(800px 300px at 10% 0%, rgba(37, 99, 235, 0.06), transparent 60%),
    radial-gradient(700px 280px at 95% 10%, rgba(37, 99, 235, 0.10), transparent 60%),
    linear-gradient(180deg, #1e3a5f 0%, #162d4a 100%);
}
.site-footer__top-accent::before {
  background: linear-gradient(90deg, transparent, #2563eb 30%, #1d4ed8 60%, transparent);
}
.site-footer h3::before {
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
}
.site-footer__arrow { color: #2563eb; }
.site-footer__list a:hover .site-footer__arrow { color: #3b82f6; }
.site-footer__brand-mark {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 10px 30px -12px rgba(37, 99, 235, 0.55), inset 0 0 0 1px rgba(255,255,255,0.18);
}
.site-footer__brand-tag { color: #2563eb; }
.site-footer__social:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #0b1220;
  box-shadow: 0 10px 22px -10px rgba(37, 99, 235, 0.6);
}
.site-footer__contact-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(37, 99, 235, 0.20));
  border-color: rgba(37, 99, 235, 0.28);
}
.site-footer__contact-card:hover {
  box-shadow: 0 14px 28px -14px rgba(37, 99, 235, 0.55);
  border-color: rgba(37, 99, 235, 0.55);
}
.site-footer__contact-icon { color: #2563eb; }
.site-footer__made { color: rgba(37, 99, 235, 0.7); }

/* Footer grid line on v2 */
.site-footer--v2::before {
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
}

/* ══════════════════════════════════════════════════════════════
   LEGAL PAGES
   ══════════════════════════════════════════════════════════════ */
.legal-page .article-body h2 { color: #2563eb; }
.legal-page .article-body a { color: #2563eb; }
.legal-page .article-body a:hover { color: #1d4ed8; opacity: 1; }

/* ══════════════════════════════════════════════════════════════
   BTN PRIMARY global
   ══════════════════════════════════════════════════════════════ */
.btn-primary {
  background: #2563eb;
  color: #0b1220;
  border: 2px solid #0b1220;
  box-shadow: 3px 3px 0 #0b1220;
  font-weight: 800;
}
.btn-primary:hover {
  background: #3b82f6;
  opacity: 1;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #0b1220;
}

/* ══════════════════════════════════════════════════════════════
   READING PROGRESS BAR (all pages)
   ══════════════════════════════════════════════════════════════ */
.reading-progress__bar {
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
}

/* ══════════════════════════════════════════════════════════════
   404 PAGE
   ══════════════════════════════════════════════════════════════ */
.error-404__title { color: #0b1220; }
.error-404__code {
  color: #2563eb;
  text-shadow: 4px 4px 0 #0b1220;
}

/* ══════════════════════════════════════════════════════════════
   SEARCH RESULTS — same clean card style
   ══════════════════════════════════════════════════════════════ */
.search-results .archive-card,
.search-results .article-card {
  background: #ffffff;
  border: 2px solid #0b1220;
  border-radius: 14px;
  box-shadow: 4px 4px 0 #0b1220;
}

/* ══════════════════════════════════════════════════════════════
   GLOBAL LINK COLOR
   ══════════════════════════════════════════════════════════════ */
a:hover { color: #2563eb; }

/* ==============================================================
   v2.0.1 — Mobile archive fixes: centering & spacing
   ============================================================== */

/* ── Mobile archive cards — centered, proper spacing ── */
@media (max-width: 600px) {
  .archive-page {
    padding-left: 4px;
    padding-right: 4px;
  }

  .archive-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .archive-card {
    box-shadow: 3px 3px 0 #0b1220;
  }

  .archive-card__body {
    padding: 1rem;
  }

  .archive-card__title {
    font-size: 1rem;
    line-height: 1.3;
  }

  .archive-card__excerpt {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
  }

  .archive-card__meta {
    gap: 0.6rem;
    font-size: 0.75rem;
  }

  .archive-card__cta {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  /* Hero centrado en móvil */
  .archive-hero {
    padding: 1.5rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 14px;
    box-shadow: 4px 4px 0 #2563eb;
    text-align: center;
  }

  .archive-hero__title {
    font-size: 1.6rem;
  }

  .archive-hero__desc {
    font-size: 0.9rem;
  }

  .archive-hero__meta {
    justify-content: center;
  }

  /* Pagination centrada */
  .archive-pagination {
    box-shadow: 3px 3px 0 #0b1220;
  }
}

/* ── Tablet pequeño — 2 cols centradas ── */
@media (min-width: 601px) and (max-width: 900px) {
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── Home posts grid — same centering fix for mobile ── */
@media (max-width: 559px) {
  .home-posts-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .home-posts-grid .article-card {
    box-shadow: 3px 3px 0 #0b1220;
  }
}

/* ==============================================================
   v2.0.2 — Category mobile true centering fix
   ============================================================== */
@media (max-width: 600px) {
  html,
  body {
    overflow-x: hidden;
  }

  .container.archive-page {
    width: 100%;
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
    margin-left: auto;
    margin-right: auto;
  }

  .archive-page .page-with-ads__layout,
  .archive-page .page-with-ads__main {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
  }

  .archive-page .ad-intercalated,
  .archive-page .mobile-only,
  .archive-page .archive-grid__ad {
    width: 100%;
    max-width: 390px;
    margin-left: auto;
    margin-right: auto;
  }

  .archive-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-items: start;
    width: 100%;
    max-width: 410px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 3px;
    gap: 1.55rem;
  }

  .archive-card {
    width: min(100%, 390px);
    max-width: 390px;
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
    border-width: 2px;
    border-radius: 14px;
    box-shadow: 3px 3px 0 #0b1220;
    transform: none !important;
  }

  .archive-card:hover {
    transform: none !important;
    box-shadow: 3px 3px 0 #0b1220;
  }

  .archive-card__media,
  .archive-card__media img {
    width: 100%;
    max-width: 100%;
  }

  .archive-card__body {
    width: 100%;
    min-width: 0;
  }

  .archive-card__title,
  .archive-card__excerpt,
  .archive-card__meta {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 430px) {
  .container.archive-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .archive-grid {
    max-width: 100%;
    padding-right: 3px;
  }

  .archive-card {
    width: 100%;
    max-width: 390px;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .archive-grid {
    justify-items: center;
  }

  .archive-card {
    width: 100%;
    max-width: 330px;
    justify-self: center;
  }
}

