/* ==========================================================================
   Piensa en Binario — main.css
   Sistema de diseño Mobile-First, WCAG 2.1 AA, Modo Claro/Oscuro
   ========================================================================== */

/* --- Paleta Claro (por defecto) --- */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --bg-code: #f6f8fa;
  --text: #1f2328;
  --text-muted: #4a5568;
  --border: #d0d7de;
  --accent: #1d4ed8;
  --accent-contrast: #ffffff;
  --accent-soft-bg: #dbeafe;
  --accent-soft-text: #1e40af;
  --shadow: 0 1px 3px rgba(31, 35, 40, 0.12), 0 4px 12px rgba(31, 35, 40, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --toc-width: 240px;

  /* Colores de tokens para highlight.js (tema claro, contraste AA) */
  --code-comment: #6a737d;
  --code-keyword: #cf222e;
  --code-string: #0a3069;
  --code-number: #0550ae;
  --code-title: #8250df;
  --code-type: #0550ae;
  --code-meta: #57606a;
}

/* --- Paleta Oscuro --- */
:root[data-theme='dark'] {
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --bg-code: #1e293b;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #334155;
  --accent: #93c5fd;
  --accent-contrast: #0f172a;
  --accent-soft-bg: #172554;
  --accent-soft-text: #bfdbfe;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.35);

  --code-comment: #8b949e;
  --code-keyword: #ff7b72;
  --code-string: #a5d6ff;
  --code-number: #79c0ff;
  --code-title: #d2a8ff;
  --code-type: #79c0ff;
  --code-meta: #8b949e;
}

/* --- Reset y base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#contenido {
  flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: 1.8rem;
}

h2 {
  font-size: 1.45rem;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection {
  background: var(--accent-soft-bg);
  color: var(--accent-soft-text);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--accent-contrast);
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Contenedor --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.75rem);
}

/* --- Cabecera --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.75rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.site-logo__img {
  display: block;
  height: 2rem;
  width: auto;
  transition: opacity 0.15s ease;
}

.site-logo:hover .site-logo__img {
  opacity: 0.8;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.main-nav__list {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav__link {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
}

.main-nav__link:hover {
  color: var(--text);
  text-decoration: none;
  background: var(--bg-alt);
}

.main-nav__link[aria-current='page'] {
  color: var(--text);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.main-nav__item--dropdown {
  position: relative;
}

.main-nav__item--dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 6px;
}

.main-nav__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 13rem;
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 60;
}

.main-nav__dropdown-link {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.main-nav__dropdown-link:hover {
  color: var(--text);
  background: var(--bg-alt);
  text-decoration: none;
}

.main-nav__item--dropdown:hover .main-nav__dropdown,
.main-nav__item--dropdown:focus-within .main-nav__dropdown,
.main-nav__item--dropdown.is-open .main-nav__dropdown {
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

/* Buscador de cabecera */
.search {
  position: relative;
}

.search__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--text);
  cursor: pointer;
}

.search__toggle:hover {
  border-color: var(--accent);
}

.search__input {
  display: none;
  width: 100%;
  max-width: 13rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 0.95rem;
}

.search.is-open .search__toggle {
  display: none;
}

.search.is-open .search__input {
  display: block;
}

.search__results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: min(24rem, 80vw);
  max-height: 70vh;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem;
  display: none;
}

.search__results.is-open {
  display: block;
}

.search__result {
  display: block;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--text);
}

.search__result:hover {
  background: var(--bg-alt);
  text-decoration: none;
}

.search__result-title {
  font-weight: 600;
  display: block;
}

.search__result-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search__empty {
  padding: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Conmutador de tema */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--text);
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

:root[data-theme='dark'] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme='dark'] .theme-toggle .icon-moon {
  display: none;
}

/* Navegación móvil */
.nav-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 639px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    top: 3.75rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem 1rem;
    transform: translateY(-140%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    transform: translateY(0);
  }

  .main-nav__list {
    flex-direction: column;
    gap: 0.125rem;
  }

  .main-nav__item {
    width: 100%;
  }

  .main-nav__item--dropdown::after {
    display: none;
  }

  .main-nav__dropdown {
    position: static;
    display: none;
    min-width: 0;
    margin: 0.25rem 0 0.5rem 0.5rem;
    padding: 0 0 0 0.75rem;
    background: none;
    border: none;
    border-left: 2px solid var(--border);
    border-radius: 0;
    box-shadow: none;
  }

  .main-nav__item--dropdown.is-open .main-nav__dropdown,
  .main-nav__item--dropdown:focus-within .main-nav__dropdown {
    display: block;
  }

  .search.is-open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .search__input {
    max-width: none;
    width: 100%;
  }

  .search__results {
    position: static;
    width: 100%;
    max-height: none;
    box-shadow: none;
    margin-top: 0.5rem;
  }
}

/* --- Botones y badges --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft-bg);
  color: var(--accent-soft-text);
  font-size: 0.78rem;
  font-weight: 600;
}

.badge--tag {
  background: transparent;
  border: 1px solid var(--accent-soft-text);
}

a.badge:hover {
  text-decoration: none;
  filter: brightness(1.03);
}

/* --- Hero --- */
.hero {
  padding-block: 1.5rem 0.5rem;
}

.hero__title {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 2.1rem;
  font-weight: 700;
}

.hero__tagline {
  margin: 0 0 1.25rem;
  max-width: 45ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero--banner {
  position: relative;
  margin-block: 1.5rem 0.75rem;
  padding-block: clamp(2.5rem, 8vw, 4.5rem);
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  background-image: url('/assets/img/hero-banner.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  text-align: center;
  color: #fff;
}

.hero--banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero--banner__inner {
  position: relative;
  z-index: 1;
}

.hero--banner .hero__title {
  margin-bottom: 0.4rem;
  color: #fff;
}

.hero--banner .hero__tagline {
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.95);
}

.hero--banner .hero__eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

/* Enlaces sociales del banner */
.banner__social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.banner__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
}

@media (min-width: 1025px) {
  .hero--banner {
    margin-inline: 0;
    margin-block: 0;
    padding-inline: 0;
    border-radius: 0;
  }
}

.banner__social a:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(0, 0, 0, 0.45);
  text-decoration: none;
}

[data-theme='dark'] .prose img {
  background: #fff;
}

/* --- Bento Grid --- */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-block: 1rem 2.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card[hidden] {
  display: none;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card__media {
  height: 14rem;
  background: var(--border);
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-muted);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem;
}

.card__title {
  margin: 0;
  font-size: 1.15rem;
}

.card__title a {
  color: var(--text);
}

.card__title a:hover {
  color: var(--accent);
  text-decoration: none;
}

.card__excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

@media (min-width: 640px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }

  .card--featured {
    grid-column: span 2;
    grid-row: span 2;
  }

  .card--featured .card__media {
    flex: 1;
    min-height: 14rem;
  }

  .card--featured .card__title {
    font-size: 1.6rem;
  }

  .card--featured .card__excerpt {
    -webkit-line-clamp: 6;
  }
}

/* --- Filtros por taxonomía --- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
}

.filters .badge {
  cursor: pointer;
  border: 1px solid transparent;
  user-select: none;
}

.filters .badge.is-active {
  border-color: var(--accent);
  filter: brightness(1.05);
}

/* --- Página de artículo --- */
.post-header {
  padding: 1.5rem 0 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.post-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.post-header__badges {
  margin-top: 1rem;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.post {
  min-width: 0;
  font-size: 1.0625rem;
  padding-inline: clamp(1rem, 3vw, 1.75rem);
}

.post__content {
  max-width: 100%;
  min-width: 0;
}

.post__share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}

@media (min-width: 1025px) {
  .post {
    max-width: 1080px;
    margin-inline: auto;
  }

  .post-header {
    max-width: 750px;
  }

  .post-layout {
    grid-template-columns: minmax(0, 1fr) var(--toc-width);
  }

  .post__content {
    max-width: 750px;
  }
}

/* Tabla de contenidos */
.toc {
  display: none;
  font-size: 0.9rem;
}

.toc__title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
}

.toc li {
  margin: 0;
}

.toc a {
  display: block;
  padding: 0.3rem 0.75rem;
  border-left: 2px solid transparent;
  color: var(--text-muted);
}

.toc a:hover {
  color: var(--accent);
  text-decoration: none;
  border-left-color: var(--accent);
}

@media (min-width: 1025px) {
  .toc {
    display: block;
    position: sticky;
    top: 4.75rem;
    align-self: start;
    max-height: calc(100vh - 5.5rem);
    overflow-y: auto;
  }
}

/* --- Prosa del artículo --- */
.prose {
  line-height: 1.8;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin-top: 2em;
  scroll-margin-top: 4.75rem;
}

.prose h3 {
  margin-top: 1.5em;
  scroll-margin-top: 4.75rem;
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose blockquote {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border-left: 4px solid var(--accent);
  background: var(--bg-alt);
  color: var(--text-muted);
}

.prose pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 1rem;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-code);
  padding: 0.15em 0.35em;
  border-radius: 4px;
}

.prose pre code {
  background: none;
  padding: 0;
  font-size: 0.9rem;
}

.prose figure {
  margin: 1.5rem 0;
}

.prose p:has(> img:only-child) img,
.prose p:has(> a:only-child > img:only-child) img,
.prose figure img {
  display: block;
  margin-inline: auto;
}

.prose p:has(> a:only-child > img:only-child) a {
  display: block;
}

.prose figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.4rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.prose th {
  background: var(--bg-alt);
}

/* Tokens highlight.js */
.hljs-comment,
.hljs-quote {
  color: var(--code-comment);
  font-style: italic;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-built_in,
.hljs-literal {
  color: var(--code-keyword);
}

.hljs-string,
.hljs-regexp,
.hljs-addition {
  color: var(--code-string);
}

.hljs-number,
.hljs-tag {
  color: var(--code-number);
}

.hljs-title,
.hljs-name,
.hljs-function,
.hljs-section,
.hljs-symbol,
.hljs-bullet {
  color: var(--code-title);
}

.hljs-type,
.hljs-class .hljs-title,
.hljs-meta {
  color: var(--code-type);
}

.hljs-attr,
.hljs-variable,
.hljs-template-variable,
.hljs-attribute {
  color: var(--code-meta);
}

.hljs-emphasis {
  font-style: italic;
}

.hljs-strong {
  font-weight: bold;
}

/* --- Listados de taxonomía --- */
.taxonomy-header {
  padding-block: 1.25rem 0.25rem;
}

.taxonomy-header p {
  color: var(--text-muted);
}

/* --- Páginas estáticas --- */
.page {
  max-width: 750px;
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  padding-inline: clamp(1rem, 3vw, 1.75rem);
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 1.5rem 0;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer__social {
  display: flex;
  gap: 0.75rem;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background: var(--bg);
}

.site-footer__social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.site-footer__legal {
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.site-footer__legal a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* --- Banner de consentimiento de cookies --- */
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding-block: 1rem;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.cookie-banner__title {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.cookie-banner__text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cookie-banner__link {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner__link:hover {
  text-decoration: none;
}

@media (min-width: 640px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .cookie-banner__text {
    flex: 1;
  }

  .cookie-banner__accept {
    flex-shrink: 0;
  }
}

/* --- Iconos SVG --- */
.icon {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Accesibilidad: movimiento reducido --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
