/*
Theme Name: Acto Estético
Theme URI: https://actoestetico.com
Author: Acto Estético
Description: Revista digital de cultura — Teatro, Fotografía, Cine y Cocina.
Version: 3.0
Text Domain: acto-estetico
*/

/* ─── FONTS ──────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Serif+Display:ital@0;1&display=swap');

/* ─── VARIABLES ──────────────────────────────────────────────────────────── */
:root {
  --white:      #FFFFFF;
  --bg:         #F9F9F7;
  --black:      #0F0F0F;
  --ink:        #1C1C1C;
  --ink-2:      #555555;
  --ink-3:      #999999;
  --rule:       #E8E8E5;

  /* Almodóvar — solo acentos */
  --red:        #D91A3C;
  --fuchsia:    #E8005A;
  --yellow:     #F5C200;

  /* Cat colors — solo dots y labels */
  --ct-teatro:    var(--red);
  --ct-foto:      var(--ink);
  --ct-cine:      #E05C00;
  --ct-cocina:    #E05C00;

  --f-sans:  'DM Sans', 'Helvetica Neue', Helvetica, sans-serif;
  --f-serif: 'DM Serif Display', Georgia, serif;

  --max:    1280px;
  --gutter: clamp(20px, 4vw, 52px);
}

/* ─── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; border-radius: 0 !important; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { font-family: var(--f-sans); }

/* ─── WRAPPER ────────────────────────────────────────────────────────────── */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ─── SCROLL ANIMATION BASE ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity: 0; transform: translateX(-32px); transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1); }
.reveal-left.in { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(32px); transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1); }
.reveal-right.in { opacity: 1; transform: translateX(0); }

/* Stagger delays */
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ─── TOPBAR ─────────────────────────────────────────────────────────────── */
.topbar {
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px var(--gutter);
  gap: 16px;
}

.topbar__date {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
}

.topbar__ticker {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar__ticker-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  flex-shrink: 0;
  background: rgba(245,194,0,0.12);
  padding: 2px 8px;
}

.topbar__ticker-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: topbar-scroll 28s linear infinite;
}

.topbar__ticker-track a {
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
  white-space: nowrap;
}
.topbar__ticker-track a:hover { color: var(--white); }

@keyframes topbar-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.topbar__social {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}
.topbar__social a {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.topbar__social a:hover { color: var(--white); }

/* ─── HEADER ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.3s;
}
.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  gap: 24px;
}

/* Logo */
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 40px; width: auto; }
.logo-text {
  font-family: var(--f-sans);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--black);
  letter-spacing: -0.02em;
}
.logo-text b { font-weight: 600; }

/* Desktop nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.main-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 8px 16px;
  position: relative;
  transition: color 0.2s;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 16px; right: 16px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1);
}
.main-nav a:hover       { color: var(--black); }
.main-nav a:hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a.is-active   { color: var(--black); }

/* Header actions */
.header__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.btn-search, .btn-burger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--ink-2);
  transition: color 0.2s;
}
.btn-search:hover, .btn-burger:hover { color: var(--black); }

/* Burger — solo en mobile */
.btn-burger { display: none; }

/* ─── MOBILE NAV ─────────────────────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 400;
  flex-direction: column;
  padding: 80px var(--gutter) 40px;
  overflow-y: auto;
}
.mobile-nav.is-open { display: flex; }

.mobile-nav__close {
  position: absolute;
  top: 20px;
  right: var(--gutter);
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 40px;
}

.mobile-nav__links a {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 400;
  color: var(--black);
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}
.mobile-nav__links a:hover { color: var(--red); }
.mobile-nav__links a span { font-size: 1rem; color: var(--ink-3); }

.mobile-nav__social {
  display: flex;
  gap: 20px;
  margin-top: auto;
}
.mobile-nav__social a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ─── SEARCH OVERLAY ─────────────────────────────────────────────────────── */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  z-index: 500;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}
.search-overlay.is-open { display: flex; }

.search-overlay__form {
  width: 100%;
  max-width: 580px;
  border-bottom: 2px solid var(--black);
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-overlay__form input {
  flex: 1;
  font-family: var(--f-sans);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--black);
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 0;
}
.search-overlay__form input::placeholder { color: var(--ink-3); }
.search-overlay__form button {
  background: none; border: none; cursor: pointer;
  color: var(--ink-2); padding: 8px;
}
.search-overlay__close {
  position: absolute;
  top: 24px; right: var(--gutter);
  background: none; border: none; cursor: pointer;
  font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
}

/* ─── CAT TAG ────────────────────────────────────────────────────────────── */
.cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1;
}
.cat-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: currentColor;
  flex-shrink: 0;
  display: block;
}
.cat-tag--teatro   { color: var(--ct-teatro); }
.cat-tag--cine     { color: var(--ct-cine); }
.cat-tag--cocina   { color: var(--ct-cocina); }

/* ─── HERO SLIDER ────────────────────────────────────────────────────────── */
.hero-section { border-bottom: 1px solid var(--rule); }

/* CONTENEDOR — height fija, todo lo demás es absolute dentro de él */
.hero-slider {
  position: relative;
  width: 100%;
  height: clamp(440px, 60vh, 640px);
  overflow: hidden;
  background: #111;
  display: block;
}

/* SLIDE — ocupa todo el contenedor, invisible por defecto */
.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 0s 1s;
  z-index: 1;
}

/* SLIDE ACTIVO */
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease, visibility 0s 0s;
  z-index: 2;
}

/* IMAGEN — absolute, cubre todo */
.hero-slide__img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.07);
  transition: transform 7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.75;
}
.hero-slide.is-active .hero-slide__img {
  transform: scale(1);
}

/* LINK que cubre toda la imagen */
.hero-slide__link {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
}

/* GRADIENTE + TEXTO — absolute, encima de la imagen */
.hero-slide__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 4;
  padding: 56px 60px 80px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.93) 0%,
    rgba(0,0,0,0.42) 50%,
    transparent 100%
  );
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.8s 0.4s cubic-bezier(0.22,1,0.36,1),
              opacity   0.8s 0.4s ease;
  pointer-events: none; /* el click lo maneja .hero-slide__link */
}
.hero-slide.is-active .hero-slide__body {
  transform: translateY(0);
  opacity: 1;
}

.hero-slide__body .cat-tag {
  color: var(--yellow);
  margin-bottom: 16px;
}
.hero-slide__body .cat-tag::before { background: var(--yellow); }

.hero-slide__body h2 {
  font-family: var(--f-serif);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 14px;
  max-width: 700px;
}

.hero-slide__body .hero-excerpt {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  max-width: 540px;
}

/* CONTROLES — siempre encima de todo */
.hero-controls {
  position: absolute;
  bottom: 28px;
  right: 52px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-dot {
  width: 7px; height: 7px;
  background: rgba(255,255,255,0.28);
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.3s, width 0.35s cubic-bezier(0.22,1,0.36,1);
}
.hero-dot.is-active {
  background: #fff;
  width: 28px;
}

.hero-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  cursor: pointer;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.hero-btn:hover { background: rgba(255,255,255,0.2); }

/* BARRA DE PROGRESO */
.hero-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: rgba(255,255,255,0.6);
  z-index: 10;
  width: 0;
}

/* ─── MAIN LAYOUT ────────────────────────────────────────────────────────── */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 284px;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.main-feed {
  padding: 44px 40px 80px 0;
  border-right: 1px solid var(--rule);
}
.main-sidebar {
  padding: 44px 0 80px 32px;
}

/* ─── SECTION BLOCK ──────────────────────────────────────────────────────── */
.section-block {
  margin-bottom: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--rule);
}
.section-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

/* ─── SECTION HEADER ─────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.section-header__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  padding-left: 13px;
  position: relative;
}
.section-header__title::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 13px;
  background: var(--red);
}
.section--foto   .section-header__title::before { background: var(--black); }
.section--cine   .section-header__title::before { background: var(--ct-cine); }
.section--cocina .section-header__title::before { background: var(--ct-cocina); }

.section-header__link {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.2s;
}
.section-header__link:hover { color: var(--black); }

/* ─── MAGAZINE LAYOUTS ───────────────────────────────────────────────────── */

/* Layout A — featured grande izq + lista artículos der */
.mag-a {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border: 1px solid var(--rule);
}
.mag-a__lead {
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.mag-a__lead .card-img {
  overflow: hidden;
  display: block;
  flex-shrink: 0;
}
.mag-a__lead .card-img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.mag-a__lead:hover .card-img img { transform: scale(1.04); }
.mag-a__lead .card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.mag-a__lead .card-title {
  font-family: var(--f-serif);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--black);
}
.mag-a__lead:hover .card-title { color: var(--red); }
.mag-a__lead .card-excerpt {
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.65;
}

/* Lista der del layout A */
.mag-a__list { display: flex; flex-direction: column; }
.mag-a__list-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  transition: background 0.18s;
  text-decoration: none;
}
.mag-a__list-item:last-child { border-bottom: none; }
.mag-a__list-item:hover { background: var(--bg); }
.mag-a__list-item img {
  width: 96px;
  height: 80px;
  object-fit: cover;
  display: block;
  align-self: stretch;
}
.mag-a__list-item__body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
.mag-a__list-item__body h3 {
  font-family: var(--f-serif);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--black);
}
.mag-a__list-item:hover .mag-a__list-item__body h3 { color: var(--red); }

/* Layout B — 1 featured horizontal + 3 cards pequeñas */
.mag-b { display: flex; flex-direction: column; gap: 0; }

.mag-b__lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rule);
  margin-bottom: 1px;
  overflow: hidden;
  text-decoration: none;
}
.mag-b__lead .card-img {
  overflow: hidden;
  display: block;
}
.mag-b__lead .card-img img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.mag-b__lead:hover .card-img img { transform: scale(1.03); }
.mag-b__lead .card-body {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  background: var(--bg);
}
.mag-b__lead .card-title {
  font-family: var(--f-serif);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--black);
}
.mag-b__lead:hover .card-title { color: var(--red); }
.mag-b__lead .card-excerpt {
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.65;
}

.mag-b__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule);
  border-top: none;
}
.mag-b__grid-item {
  padding: 20px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.18s;
  text-decoration: none;
}
.mag-b__grid-item:last-child { border-right: none; }
.mag-b__grid-item:hover { background: var(--bg); }
.mag-b__grid-item .card-img {
  overflow: hidden;
  display: block;
  margin-bottom: 4px;
}
.mag-b__grid-item .card-img img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.mag-b__grid-item:hover .card-img img { transform: scale(1.05); }
.mag-b__grid-item .card-title {
  font-family: var(--f-serif);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--black);
}
.mag-b__grid-item:hover .card-title { color: var(--red); }

/* Shared card utilities */
.card-meta {
  font-size: 0.67rem;
  color: var(--ink-3);
  font-weight: 400;
}

/* ─── SIDEBAR ────────────────────────────────────────────────────────────── */
.widget {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule);
}
.widget:last-child { border-bottom: none; margin-bottom: 0; }

.widget__title {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 16px;
  padding-left: 10px;
  border-left: 3px solid var(--red);
}

.sidebar-post {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  transition: background 0.18s;
  text-decoration: none;
}
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post:hover { background: var(--bg); }
.sidebar-post img {
  width: 72px;
  height: 60px;
  object-fit: cover;
  margin-top: 12px;
}
.sidebar-post__body {
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sidebar-post__title {
  font-family: var(--f-serif);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--black);
}
.sidebar-post:hover .sidebar-post__title { color: var(--red); }

.sidebar-cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s;
  text-decoration: none;
}
.sidebar-cats a:last-child { border-bottom: none; }
.sidebar-cats a:hover { color: var(--red); }
.sidebar-cats .count {
  font-size: 0.67rem;
  color: var(--ink-3);
  background: var(--bg);
  padding: 2px 7px;
}

/* ─── SINGLE ─────────────────────────────────────────────────────────────── */
.single-wrap {
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 284px;
  padding-inline: var(--gutter);
}
.single-main {
  padding: 52px 40px 80px 0;
  border-right: 1px solid var(--rule);
}
.single-sidebar {
  padding: 52px 0 80px 32px;
}

.single-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.single-title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.13;
  color: var(--black);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.single-meta {
  display: flex;
  gap: 16px;
  font-size: 0.74rem;
  color: var(--ink-3);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.single-hero {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  margin-bottom: 36px;
  display: block;
}

.entry-content {
  font-size: 1.03rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink);
}
.entry-content p { margin-bottom: 1.55em; }
.entry-content h2 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--black);
  margin: 2.2em 0 0.7em;
  line-height: 1.2;
}
.entry-content h3 {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin: 2em 0 0.6em;
  color: var(--black);
}
.entry-content blockquote {
  margin: 2.2em 0;
  padding: 20px 28px;
  border-left: 3px solid var(--red);
  background: var(--bg);
}
.entry-content blockquote p {
  font-family: var(--f-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--black);
  margin: 0;
  line-height: 1.5;
}
.entry-content img { width: 100%; margin: 2em 0; }
.entry-content a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--red);
  text-decoration-thickness: 1px;
}
.entry-content a:hover { color: var(--red); }

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.post-tag {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  transition: border-color 0.2s, color 0.2s;
}
.post-tag:hover { border-color: var(--black); color: var(--black); }

/* Related posts */
.related-section {
  border-top: 1px solid var(--rule);
  padding: 48px var(--gutter) 72px;
  max-width: var(--max);
  margin-inline: auto;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.related-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.related-card .card-img { overflow: hidden; }
.related-card .card-img img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.related-card:hover .card-img img { transform: scale(1.04); }
.related-card .card-title {
  font-family: var(--f-serif);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--black);
}
.related-card:hover .card-title { color: var(--red); }

/* ─── ARCHIVE ────────────────────────────────────────────────────────────── */
.archive-header {
  padding: 60px var(--gutter) 40px;
  border-bottom: 1px solid var(--rule);
  max-width: var(--max);
  margin-inline: auto;
}
.archive-header__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.archive-header__eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--red); display: block; }
.archive-header h1 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

/* Archive — primera fila: 1 grande + 2 pequeñas */
.archive-layout {
  max-width: var(--max);
  margin-inline: auto;
  padding: 40px var(--gutter) 80px;
}
.archive-row-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 32px;
}
.archive-row-top .arc-lead {
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.archive-row-top .arc-lead .card-img { overflow: hidden; }
.archive-row-top .arc-lead .card-img img {
  width: 100%; height: 260px; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.archive-row-top .arc-lead:hover .card-img img { transform: scale(1.03); }
.archive-row-top .arc-lead .card-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.archive-row-top .arc-lead .card-title {
  font-family: var(--f-serif); font-size: 1.25rem; font-weight: 400;
  line-height: 1.25; color: var(--black);
}
.archive-row-top .arc-lead:hover .card-title { color: var(--red); }
.arc-lead { text-decoration: none; }

.archive-row-top .arc-secondary {
  background: var(--white);
  border-left: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.arc-secondary-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  transition: background 0.18s;
  text-decoration: none;
}
.arc-secondary-item:last-child { border-bottom: none; }
.arc-secondary-item:hover { background: var(--bg); }
.arc-secondary-item img { width: 110px; height: 90px; object-fit: cover; display: block; align-self: stretch; }
.arc-secondary-item .card-body { padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.arc-secondary-item .card-title {
  font-family: var(--f-serif); font-size: 0.9rem; font-weight: 400;
  line-height: 1.3; color: var(--black);
}
.arc-secondary-item:hover .card-title { color: var(--red); }

/* Archive grid — resto de artículos */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.archive-grid-item {
  background: var(--white);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: background 0.18s;
}
.archive-grid-item:hover { background: var(--bg); }
.archive-grid-item .card-img { overflow: hidden; }
.archive-grid-item .card-img img {
  width: 100%; height: 180px; object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.archive-grid-item:hover .card-img img { transform: scale(1.04); }
.archive-grid-item .card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.archive-grid-item .card-title {
  font-family: var(--f-serif); font-size: 1rem; font-weight: 400;
  line-height: 1.3; color: var(--black);
}
.archive-grid-item:hover .card-title { color: var(--red); }
.archive-grid-item .card-excerpt {
  font-size: 0.82rem; font-weight: 300; color: var(--ink-2); line-height: 1.6;
}

/* ─── PAGINATION ─────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 40px var(--gutter);
}
.pagination a, .pagination span {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 8px 15px;
  color: var(--ink-2);
  border: 1px solid var(--rule);
  transition: all 0.2s;
}
.pagination a:hover, .pagination .current {
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.site-footer { margin-top: 0; border-top: 1px solid var(--rule); }
.footer-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--fuchsia) 50%, var(--yellow) 100%);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 56px var(--gutter) 48px;
  border-bottom: 1px solid var(--rule);
}
.footer-brand__name {
  font-family: var(--f-sans);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--black);
  margin-bottom: 10px;
}
.footer-brand__name b { font-weight: 600; }
.footer-brand p {
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 20px;
}
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--red); }

.footer-col h4 {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 16px;
  padding-left: 10px;
  border-left: 2px solid var(--red);
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--ink-2);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--black); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--gutter);
}
.footer-bottom p {
  font-size: 0.7rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-stack { flex-direction: row; border-top: 1px solid var(--rule); }
  .hero-stack__item { flex: 1; border-bottom: none; border-right: 1px solid var(--rule); }
  .hero-stack__item:last-child { border-right: none; }

  .main-layout { grid-template-columns: 1fr; padding-inline: var(--gutter); }
  .main-feed { padding: 40px 0 60px; border-right: none; }
  .main-sidebar { padding: 32px 0 60px; border-top: 1px solid var(--rule); }

  .single-wrap { grid-template-columns: 1fr; }
  .single-main { padding: 40px 0 60px; border-right: none; }
  .single-sidebar { padding: 32px 0 60px; border-top: 1px solid var(--rule); }

  .mag-a { grid-template-columns: 1fr; }
  .mag-a__lead .card-img img { height: 220px; }
  .mag-b__grid { grid-template-columns: repeat(3,1fr); }

  .archive-row-top { grid-template-columns: 1fr; }
  .archive-row-top .arc-secondary { border-left: none; border-top: 1px solid var(--rule); }
  .arc-secondary-item { grid-template-columns: 90px 1fr; }

  .related-grid { grid-template-columns: 1fr 1fr; }
  .related-grid .related-card:last-child { display: none; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }
  .main-nav { display: none; }
  .btn-burger { display: flex; }
  .topbar__social { display: none; }

  .hero-slider { height: clamp(320px, 55vw, 480px); }
  .hero-slide__body { padding: 28px 24px; }
  .hero-slide__body h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .hero-controls { right: 20px; bottom: 18px; }

  .mag-b__lead { grid-template-columns: 1fr; }
  .mag-b__lead .card-img img { min-height: 180px; }
  .mag-b__grid { grid-template-columns: 1fr 1fr; }

  .archive-grid { grid-template-columns: 1fr 1fr; }

  .related-grid { grid-template-columns: 1fr; }
  .related-grid .related-card:last-child { display: flex; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-stack { display: none; }
  .mag-b__grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-row-top .arc-secondary-item img { width: 80px; height: 72px; }
}
