/* ============================================================
   VigoVibe — diseño minimalista · blanco + azul celeste
   Guías, historias y consejos para vivir y disfrutar Vigo
   ============================================================ */

:root {
  /* Paleta */
  --bg: #ffffff;
  --bg-soft: #f5faff;
  --celeste-50: #eff8ff;
  --celeste-100: #e0f2fe;
  --celeste-200: #bae6fd;
  --celeste-300: #7dd3fc;
  --celeste-400: #38bdf8;
  --celeste-500: #0ea5e9;
  --celeste-600: #0284c7;
  --celeste-700: #0369a1;
  --ink: #0f2540;
  --ink-soft: #4b647d;
  --ink-faint: #7893ab;
  --line: #d9ecfb;

  /* Tipografía */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Forma y espacio */
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --maxw-prose: 720px;
  --shadow-soft: 0 8px 30px rgba(2, 132, 199, 0.08);
  --shadow-lift: 0 16px 44px rgba(2, 132, 199, 0.14);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: rgba(14, 165, 233, 0.18);
}

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

a {
  color: var(--celeste-600);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--celeste-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

::selection {
  background: var(--celeste-100);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--celeste-400);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5em;
  font-weight: 700;
  text-wrap: balance;
}

h1[id], h2[id], h3[id], h4[id] {
  scroll-margin-top: 5.5rem;
}

h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.25em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--prose {
  max-width: var(--maxw-prose);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease, color 0.15s ease;
  text-decoration: none;
  touch-action: manipulation;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--celeste-500);
  color: #fff;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.28);
}

.btn-primary:hover {
  background: var(--celeste-600);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.32);
}

.btn-ghost {
  background: transparent;
  color: var(--celeste-700);
  border-color: var(--celeste-300);
}

.btn-ghost:hover {
  background: var(--celeste-50);
  color: var(--celeste-700);
  text-decoration: none;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

/* ---------- Chips / etiquetas ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  background: var(--celeste-50);
  border: 1px solid var(--celeste-100);
  color: var(--celeste-700);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

a.chip:hover {
  background: var(--celeste-100);
  text-decoration: none;
  color: var(--celeste-700);
}

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
}

.brand .brand__dot {
  color: var(--celeste-500);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--celeste-600);
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  text-align: center;
  background:
    radial-gradient(60% 90% at 50% 0%, var(--celeste-50) 0%, rgba(255, 255, 255, 0) 70%),
    var(--bg);
}

.hero__pill {
  margin-bottom: 1.5rem;
}

.hero h1 {
  max-width: 21ch;
  margin: 0 auto 1rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  color: var(--celeste-600);
}

.hero__sub {
  max-width: 54ch;
  margin: 0 auto 2rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.hero__cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Sección listado ---------- */
.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  margin: 0;
}

.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--celeste-300);
  color: var(--celeste-700);
}

.filter-btn[aria-pressed="true"] {
  background: var(--celeste-500);
  border-color: var(--celeste-500);
  color: #fff;
}

/* Tarjetas de artículo */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.post-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.post-card:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-3px);
  border-color: var(--celeste-300);
  box-shadow: var(--shadow-lift);
}

.post-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--celeste-50);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card__media img {
  transform: scale(1.04);
}

.post-card__media .chip {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--celeste-100);
}

.post-card__body {
  padding: 1.6rem 1.6rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--ink-faint);
  font-size: 0.86rem;
  font-weight: 500;
}

.post-card__meta svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--celeste-500);
}

.post-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}

.post-card:hover .post-card__title {
  color: var(--celeste-600);
}

.post-card__excerpt {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0;
}

.post-card__readmore {
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--celeste-600);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.post-card__readmore svg {
  width: 15px;
  height: 15px;
  transition: transform 0.15s ease;
}

.post-card:hover .post-card__readmore svg {
  transform: translateX(3px);
}

[hidden] {
  display: none !important;
}

/* Lista simple (autor, categoría) */
.simple-list {
  display: grid;
  gap: 0.85rem;
}

.simple-item {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease,
    transform 0.15s ease;
}

.simple-item:hover {
  border-color: var(--celeste-300);
  background: var(--celeste-50);
  text-decoration: none;
  transform: translateY(-1px);
}

.simple-item__thumb {
  width: 96px;
  height: 66px;
  flex: none;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--celeste-50);
}

.simple-item__title,
.simple-item__body h2 {
  display: block;
  font-size: 1.02rem;
  line-height: 1.35;
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 700;
}

.simple-item:hover .simple-item__title,
.simple-item:hover .simple-item__body h2 {
  color: var(--celeste-600);
}

.simple-item__meta {
  display: flex;
  gap: 0.9rem;
  font-size: 0.83rem;
  color: var(--ink-faint);
}

@media (max-width: 560px) {
  .simple-item__thumb {
    width: 72px;
    height: 56px;
  }
}

/* ---------- Página de artículo ---------- */
.breadcrumb {
  padding: 1.4rem 0 0;
  font-size: 0.86rem;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb svg {
  width: 13px;
  height: 13px;
  color: var(--celeste-400);
}

.breadcrumb a {
  color: var(--ink-faint);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--celeste-600);
}

.article {
  padding: 1.5rem 0 clamp(3rem, 6vw, 4.5rem);
}

.article header.article__head {
  margin-bottom: 1.75rem;
}

.article__head h1 {
  font-size: clamp(1.8rem, 4.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.4rem;
  color: var(--ink-faint);
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
}

.article__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.article__meta svg {
  width: 15px;
  height: 15px;
  color: var(--celeste-500);
}

.article__meta a {
  color: var(--celeste-600);
  font-weight: 500;
}

.share-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0 0 1.75rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.share-row__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-faint);
  margin-right: 0.3rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  touch-action: manipulation;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.share-btn svg {
  width: 15px;
  height: 15px;
}

.share-btn:hover {
  border-color: var(--celeste-300);
  color: var(--celeste-700);
  background: var(--celeste-50);
  text-decoration: none;
}

.article__figure {
  margin: 0 0 2.25rem;
}

.article__figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article__figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
  text-align: center;
}

/* ---------- Prosa del artículo ---------- */
.prose {
  font-size: 1.075rem;
  line-height: 1.8;
  color: #24364d;
}

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

.prose h2 {
  margin-top: 2.4em;
  padding-top: 0.4em;
  position: relative;
}

.prose h2::before {
  content: "";
  display: block;
  width: 2.2rem;
  height: 4px;
  border-radius: 4px;
  background: var(--celeste-400);
  margin-bottom: 0.7em;
}

.prose h3 {
  margin-top: 1.9em;
  color: var(--ink);
}

.prose ul,
.prose ol {
  margin: 0 0 1.4em;
  padding-left: 1.3em;
}

.prose ul li,
.prose ol li {
  margin-bottom: 0.55em;
}

.prose ul li::marker {
  color: var(--celeste-500);
}

.prose ol li::marker {
  color: var(--celeste-600);
  font-weight: 700;
}

.prose strong {
  color: var(--ink);
  font-weight: 650;
}

.prose a {
  text-decoration: underline;
  text-decoration-color: var(--celeste-300);
  text-underline-offset: 3px;
  font-weight: 550;
}

.prose a:hover {
  text-decoration-color: var(--celeste-600);
}

.prose blockquote {
  margin: 1.8em 0;
  padding: 1.1rem 1.4rem;
  border-left: 4px solid var(--celeste-400);
  background: var(--celeste-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
}

.prose blockquote p {
  margin-bottom: 0.4em;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose blockquote strong {
  color: var(--celeste-700);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.5em auto;
  max-width: 6rem;
}

.prose .info-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  margin: 1.8em 0;
}

.prose .info-box p:last-child {
  margin-bottom: 0;
}

.prose img.inline-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin: 1.6em 0;
}

/* ---------- Bloque de producto Amazon ---------- */
.product-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.25rem;
  align-items: center;
  margin: 2.2em 0;
  padding: 1.4rem;
  background: linear-gradient(135deg, var(--celeste-50), #ffffff 55%);
  border: 1px solid var(--celeste-200);
  border-radius: var(--radius);
}

.product-card img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.35rem;
}

.product-card__label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--celeste-600);
  margin: 0 0 0.3rem;
}

.product-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  line-height: 1.3;
}

.product-card__price {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 0.8rem;
}

.product-card .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.92rem;
}

.product-card__note {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin: 0.7rem 0 0;
}

/* ---------- Navegación anterior / siguiente ---------- */
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.pager__item {
  display: block;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  background: var(--bg);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pager__item:hover {
  border-color: var(--celeste-300);
  background: var(--celeste-50);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.pager__item--next {
  text-align: right;
}

.pager__spacer {
  display: block;
}

.pager__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 0.35rem;
}

.pager__title {
  font-weight: 650;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.35;
}

/* ---------- Relacionadas ---------- */
.related {
  margin-top: 2.5rem;
}

.related h2 {
  font-size: 1.35rem;
  margin-bottom: 1.4rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}

.related-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.related-card:hover {
  border-color: var(--celeste-300);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transform: translateY(-2px);
}

.related-card__media {
  aspect-ratio: 16 / 9;
  background: var(--celeste-50);
  overflow: hidden;
}

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

.related-card__body {
  padding: 0.85rem 1rem 1rem;
}

.related-card__body h3 {
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
  line-height: 1.35;
  color: var(--ink);
}

.related-card:hover .related-card__body h3 {
  color: var(--celeste-600);
}

.related-card__date {
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ---------- Comentarios ---------- */
.comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.comments h2 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.comments__lead {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.comments-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0 2rem;
}

.comment {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.comment__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.comment__header strong {
  color: var(--ink);
}

.comment__header time {
  color: var(--ink-faint);
  font-size: 0.82rem;
}

.comment p {
  margin: 0;
  color: var(--ink-soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comments-status,
.comment-form__status {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.88rem;
}

.comments-status.is-error,
.comment-form__status.is-error {
  color: #b42318;
}

.comment-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 1.1rem 0 0.35rem;
}

.comment-form label .req {
  color: var(--celeste-600);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.comment-form textarea {
  min-height: 130px;
  resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--celeste-400);
  box-shadow: 0 0 0 4px var(--celeste-50);
}

.comment-form .checkbox-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.comment-form .checkbox-row input {
  margin-top: 0.3rem;
  accent-color: var(--celeste-500);
}

.comment-form .btn {
  margin-top: 1.4rem;
}

.comment-form .btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.comment-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.1rem !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  color: var(--ink-soft) !important;
}

.comment-consent input {
  flex: none;
  margin-top: 0.3rem;
  accent-color: var(--celeste-500);
}

.comment-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.comment-form__note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
  display: none;
}

.comment-form__note.is-visible {
  display: block;
}

/* ---------- Páginas auxiliares (autor, categoría, 404) ---------- */
.page-head {
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
  text-align: center;
  background:
    radial-gradient(55% 100% at 50% 0%, var(--celeste-50) 0%, rgba(255, 255, 255, 0) 70%);
}

.page-head h1 {
  margin-bottom: 0.6rem;
}

.page-head p {
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 auto;
}

.notfound {
  text-align: center;
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.notfound .notfound__code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  color: var(--celeste-100);
  line-height: 1;
  letter-spacing: -0.04em;
}

.notfound h1 {
  margin-top: 0.4rem;
}

.notfound p {
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0 auto 2rem;
}

/* ---------- Pie de página ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding-top: 3rem;
}

.affiliate-disclosure {
  max-width: 72ch;
  margin: 0 0 2rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--celeste-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.comments--disabled {
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.comments--disabled p {
  margin: 0;
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-col h3 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}

.footer-col__link {
  display: block;
  text-decoration: none;
}

.footer-col__link:hover {
  text-decoration: none;
}

.footer-col__thumb {
  width: 86px;
  height: 86px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  object-fit: cover;
  background: #fff;
  padding: 0.3rem;
  margin-bottom: 0.7rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.footer-col__link:hover .footer-col__thumb {
  transform: translateY(-2px);
  border-color: var(--celeste-300);
}

.footer-col__name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  display: block;
  margin-bottom: 0.15rem;
}

.footer-col__sub {
  font-size: 0.83rem;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-col__sub svg {
  width: 13px;
  height: 13px;
  color: var(--celeste-500);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
}

.footer-bottom__brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-bottom__brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.footer-bottom a {
  color: var(--ink-faint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom a:hover {
  color: var(--celeste-600);
}

/* ---------- Accesibilidad ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--celeste-600);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  color: #fff;
  text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .post-card {
    grid-template-columns: 280px 1fr;
  }

  .post-card__media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 100%;
  }

  .post-card__body {
    padding: 1.75rem 1.9rem;
  }
}

@media (max-width: 640px) {
  .pager {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .product-card img {
    max-width: 160px;
    margin: 0 auto;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
