/* home.css — estilos propios de index.php.
   Extraído del <style> embebido el 2026-07-06 (Fase 1, sin cambios de contenido).
   Esta página NO usa rmc.css: todo su CSS vive aquí. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Estructura — charcoal cálido (base Midnight Asphalt) */
  --ivory:      #1A1917;  /* fondo de página */
  --cream:      #242220;  /* header / secciones alt */
  --parchment:  #3A3833;  /* bordes / hairlines */
  --ink:        #E3DDCF;  /* texto principal — Classic Oatstone */
  --ink-mid:    #211F1C;  /* inputs / feat-right */
  --stone:      #B0ADA6;  /* apagado — Industrial Slate */
  --mist:       #7C786E;  /* tenue */
  --dark:       #121110;  /* más profundo — edition bar / footer */
  /* Acento único + variantes */
  --teal:       #DDB460;  /* repunteado → Racing Ochre (acento de texto) */
  --teal-light: #18140C;
  --teal-mid:   #DDB460;
  --gold:       #DDB460;
  --gold-light: #18140C;
  --coral:      #D0604C;  /* → Bordeaux Velocity aclarado (legible sobre fondo oscuro) */
  /* Moodboard — paleta completa */
  --ochre:      #DDB460;  /* Racing Ochre */
  --oatstone:   #E3DDCF;  /* Classic Oatstone */
  --slate:      #B0ADA6;  /* Industrial Slate */
  --fog:        #434549;  /* Metallic Fog */
  --asphalt:    #2A2A2A;  /* Midnight Asphalt */
  --bordeaux:   #5E1014;  /* Bordeaux Velocity */
  --gunmetal:   #465763;  /* Gunmetal Ocean */
  --nautical:   #00425E;  /* Nautical Steel */
  --touring:    #264739;  /* Touring Green */
  --leather:    #5B452F;  /* Leatherline Club */
  --sans:   'Lato', sans-serif;
  --serif:  'Lato', sans-serif;
  --serif2: 'Lato', sans-serif;
  --header-h: 0px;
}

html { scroll-behavior: auto; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
}

/* ══════════════════════════════════════════
   SITE HEADER — fixed, fades in on scroll
══════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  opacity: 0;
  will-change: opacity, transform;
  transition: box-shadow 0.25s ease;
}

/* EDITION BAR */
.edition-bar {
  background: var(--dark);
  border-bottom: 1px solid var(--parchment);
  padding: 9px 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.eb-left, .eb-right, .eb-center {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}
.eb-left  { color: var(--mist); text-align: left; }
.eb-center { color: var(--stone); text-align: center; }
.eb-right { color: var(--mist); text-align: right; }

/* HEADER */
header {
  background: var(--cream);
  border-bottom: 1px solid var(--parchment);
}
.header-top {
  padding: 4px 56px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.header-nav-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 0;
}
.header-nav-left .nav-group { display: flex; gap: 24px; }
.header-nav-left a, .header-nav-right a {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
  font-weight: 400;
}
.header-nav-left a:hover, .header-nav-right a:hover { color: var(--ink); }

.logo-center { text-align: center; padding-bottom: 0; }
.masthead-logo { display: inline-block; text-decoration: none; line-height: 0; margin: 10px 0; }
.masthead-logo img { height: 60px; width: auto; display: block; }
.logo-type-wrap { display: inline-flex; flex-direction: column; align-items: center; }
.logo-type-main {
  font-family: 'Times New Roman', Times, serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  line-height: 1;
  white-space: nowrap;
  display: block;
}
.logo-type-sub {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 300;
  color: var(--stone);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
}

.header-nav-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  margin-top: 0;
}
.header-nav-right .nav-group { display: flex; gap: 20px; align-items: center; }
.btn-sub {
  background: var(--dark) !important;
  color: var(--ink) !important;
  padding: 7px 16px !important;
  font-size: 9px !important;
  letter-spacing: 0.18em !important;
}

.header-cats {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--parchment);
  padding: 0 56px;
  overflow: visible;
}
/* Colapso suave del header al entrar al contenido (controlado por JS por scroll) */
.edition-bar, .header-top { overflow: hidden; box-sizing: border-box; }
.nav-toggle { display: none; }
.mobile-nav { display: none; }
.site-header.condensed { z-index: 250; box-shadow: 0 1px 0 var(--parchment), 0 8px 22px rgba(0,0,0,0.22); }
.site-header.condensed .header-cats { border-top: none; min-height: 78px; align-items: center; background: var(--cream); padding-left: 25px; padding-right: 25px; }
/* Logo pegado a 25px de la izquierda, "Visitar…" a 25px de la derecha */
.site-header.condensed .hcat-site { padding-right: 0; }
/* Colapsar del todo la fila superior al condensar (mata el padding-top fantasma) */
.site-header.condensed .header-top { padding-top: 0; padding-bottom: 0; }
/* Emblema chiquito que emerge a la izquierda de las categorías al condensar */
.cats-logo {
  display: none; align-items: center; line-height: 0; flex-shrink: 0;
  overflow: hidden; max-width: 0; opacity: 0; margin-right: 0; padding-right: 0;
  border-right: 1px solid var(--parchment);
}
.cats-logo img { height: 68px; width: auto; display: block; }
.site-header.condensed .cats-logo { display: flex; }
.hcat {
  padding: 13px 22px;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  font-weight: 400;
}
.hcat:hover { color: var(--ink); }
.hcat.active { color: var(--teal); border-bottom-color: var(--teal); font-weight: 500; }

/* Enlace al sitio oficial, a la derecha de las categorías */
.hcat-site { margin-left: auto; flex-shrink: 0; text-decoration: none; color: var(--gold); }
.hcat-site:hover { color: var(--teal-mid); }
.hcat-site .ext { font-size: 11px; }

/* Desplegable de Secciones en el header */
.hcat-dd { position: relative; }
.hcat-dd .dd-caret { font-size: 8px; margin-left: 4px; color: var(--teal); }
.hcat-dd-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 300;
  min-width: 240px;
  background: var(--cream);
  border: 1px solid var(--parchment);
  border-top: 2px solid var(--teal);
  padding: 6px 0;
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
}
.hcat-dd:hover .hcat-dd-menu { display: block; }
.hcat-dd-item {
  display: block;
  padding: 10px 18px;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s;
}
.hcat-dd-item:hover { color: var(--teal); background: rgba(255,255,255,0.04); }

/* ══════════════════════════════════════════
   ANIMATION SECTION — scroll-driven
══════════════════════════════════════════ */
.anim-section {
  height: 500vh;
  position: relative;
}
.anim-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
#anim-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.anim-ui {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
.anim-center {
  position: absolute;
  top: 28px;
  left: clamp(20px, 4vw, 56px);
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.anim-logo-main {
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(22px, 2.7vw, 40px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  line-height: 1;
  white-space: nowrap;
}
.anim-logo-sub {
  font-family: var(--sans);
  font-size: clamp(8px, 0.86vw, 12px);
  font-weight: 400;
  color: var(--stone);
  letter-spacing: 0.4em;
  display: flex;
  justify-content: space-between;
}
.anim-logo-img {
  height: 110px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.45));
}
.anim-tagline {
  position: absolute;
  bottom: 152px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: clamp(8px, 0.85vw, 11px);
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  text-align: center;
}
.anim-portal-text {
  position: absolute;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  will-change: opacity;
  font-family: var(--sans);
  font-size: clamp(13px, 1.6vw, 20px);
  font-weight: 700;
  letter-spacing: 0.175em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  line-height: 1.32;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.anim-portal-text .pt-gold  { color: var(--gold); }
.anim-portal-text .pt-l2    { font-size: 1.1em; }
.anim-portal-text .br-m     { display: none; }
.anim-portal-text.pt-top    { bottom: auto; top: clamp(60px, calc(12vh - 30px), 120px); }
.anim-portal-text.pt-bottom { opacity: 0; }
.anim-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.anim-scroll span {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink);
}
.anim-scroll .arrow {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--ink), transparent);
  animation: scroll-drop 1.8s ease-in-out infinite;
}
@keyframes scroll-drop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* ══════════════════════════════════════════
   PAGE CONTENT — normal scroll
══════════════════════════════════════════ */
#page-content {
  position: relative;
  z-index: 20;
  background: var(--ivory);
  margin-top: -100vh;
}

/* DATE BAR */
.date-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--parchment);
  padding: 10px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.date-left { font-size: 10px; letter-spacing: 0.12em; color: var(--mist); }
.date-right { display: flex; gap: 20px; align-items: center; }
.date-right a {
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--stone); text-decoration: none; cursor: pointer;
}
.search-icon {
  width: 28px; height: 28px;
  border: 1px solid var(--parchment);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; background: var(--cream);
}
.search-icon svg { width: 13px; height: 13px; stroke: var(--stone); fill: none; stroke-width: 1.5; }

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  border-bottom: 1px solid var(--parchment);
  align-items: start;
}
.hero-main {
  padding: 52px 56px 28px;
  border-right: 1px solid var(--parchment);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: var(--header-h);
  align-self: start;
  height: calc(100vh - var(--header-h));
  background: url('../img/bg-hero.jpg') center/cover no-repeat;
}
/* Overlay: oscurece la parte baja para que el pie (autor + botón) se lea sobre la foto */
.hero-main::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 60%; pointer-events: none; z-index: 0;
  background: linear-gradient(to top, rgba(8,7,6,0.9) 8%, rgba(8,7,6,0.55) 45%, transparent 100%);
}
.hero-main > * { position: relative; z-index: 1; }
.hero-label { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.hero-label-line { width: 28px; height: 1.5px; background: var(--teal); }
.hero-label-text { font-size: 9px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--teal); font-weight: 500; }
.hero-badge { background: var(--ochre); color: var(--asphalt); font-size: 8.5px; letter-spacing: 0.2em; text-transform: uppercase; padding: 4px 10px; font-weight: 700; }
.hero-headline { font-size: 35px; font-weight: 400; line-height: 1.12; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.55); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 24px; }
.hero-headline em { font-style: normal; color: var(--teal); }
.hero-footer {
  display: flex; align-items: center; gap: 28px;
  padding-top: 28px; border-top: 1px solid var(--parchment); margin-top: auto;
}
.hero-byline { font-size: 10.5px; color: var(--mist); letter-spacing: 0.08em; }
.hero-byline strong { color: var(--ink); font-weight: 500; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #F3E9DA; background: #5E1014; padding: 11px 24px;
  cursor: pointer; font-weight: 500; transition: background 0.2s;
}
.hero-cta:hover { background: #7C1A20; color: #fff; }

/* HERO SIDEBAR */
.hero-sidebar { background: var(--ivory); display: flex; flex-direction: column; }
.sidebar-title {
  padding: 24px 28px 18px; border-bottom: 1px solid var(--parchment);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-title-accent { width: 16px; height: 1.5px; background: var(--gold); }
.sidebar-title-text { font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.sidebar-item {
  padding: 16px 22px; border-bottom: 1px solid var(--parchment);
  cursor: pointer; transition: background 0.15s; background: var(--ivory);
  display: flex; gap: 14px; align-items: flex-start;
}
.sidebar-item:hover { background: var(--cream); }
.si-thumb { width: 72px; height: 72px; flex-shrink: 0; }
.si-info { flex: 1; min-width: 0; }
.si-cat { font-size: 7.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--coral); margin-bottom: 6px; font-weight: 400; }
.si-title { font-size: 10px; font-weight: 400; color: var(--ink); line-height: 1.5; margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.06em; }
.si-read { font-size: 8.5px; color: var(--mist); letter-spacing: 0.14em; text-transform: uppercase; }

/* SECTION HEADS */
.section-head { padding: 36px 56px 0; display: flex; align-items: center; gap: 20px; }
.sh-label { font-size: 9px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--ink); font-weight: 500; white-space: nowrap; }
.sh-rule { flex: 1; height: 1px; background: var(--parchment); }
.sh-more { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); cursor: pointer; font-weight: 500; text-decoration: none; }

/* HOME — EDICIÓN DESTACADA (mientras haya una sola revista) */
.home-ed-featured { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 64px; align-items: center; padding: 44px 56px 40px; }
.home-ed-sep { height: 1px; background: var(--parchment); margin: 8px 56px 40px; }
.home-ed-info { width: 470px; max-width: 470px; }
.home-ed-kicker { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.home-ed-title { font-family: 'Times New Roman', Times, serif; font-weight: 300; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.03; color: var(--ink); letter-spacing: 0.01em; margin-bottom: 22px; text-transform: uppercase; }
.home-ed-desc { font-size: 14px; line-height: 1.7; color: var(--stone); margin-bottom: 30px; }
.home-ed-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.home-ed-btn { display: inline-block; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; padding: 14px 26px; cursor: pointer; text-decoration: none; transition: all 0.2s; border: 1px solid var(--parchment); color: var(--ink); }
.home-ed-btn.primary { background: var(--gold); border-color: var(--gold); color: var(--asphalt); font-weight: 600; }
.home-ed-btn.primary:hover { background: var(--teal-mid); border-color: var(--teal-mid); }
.home-ed-btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.home-ed-cover { display: block; justify-self: start; max-width: 323px; width: 100%; box-shadow: 0 30px 70px rgba(0,0,0,0.5); border: 1px solid var(--parchment); }
.home-ed-cover img { display: block; width: 100%; height: auto; }
.home-ed-foot { padding: 0 56px 6px; text-align: right; font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--mist); }
@media (max-width: 860px) {
  .home-ed-featured { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 30px 20px 10px; text-align: center; }
  .home-ed-info { display: contents; }
  .home-ed-kicker { order: 1; }
  .home-ed-title { order: 2; white-space: nowrap; font-size: clamp(17px, 5.6vw, 30px); }
  .home-ed-cover { order: 3; max-width: 213px; }
  .home-ed-desc { order: 4; margin-bottom: 0; }
  .home-ed-actions { order: 5; justify-content: center; flex-wrap: nowrap; gap: 10px; }
  .home-ed-btn { padding: 12px 15px; font-size: 9px; letter-spacing: 0.12em; white-space: nowrap; }
  .home-ed-foot { text-align: center; }
}

/* COVERS CAROUSEL */
.covers-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 32px 0 40px;
  border-top: 1px solid var(--parchment);
  border-bottom: 1px solid var(--parchment);
  margin-top: 24px;
}
.covers-viewport {
  overflow: hidden;
  flex: 1;
}
.covers-track {
  display: flex;
  transition: transform 0.48s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.cover-card {
  flex-shrink: 0;
  width: 220px;
  margin-right: 20px;
  background: var(--dark);
  border: 1px solid var(--parchment);
  box-shadow: 0 6px 28px rgba(0,0,0,0.55);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.cover-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.7);
}
.cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
.cover-card-footer {
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--parchment);
}
.cover-card-label {
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 400;
}
.cover-card-btn {
  font-size: 7.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
}
.cover-card.locked { cursor: default; }
.cover-card.locked:hover { transform: none; box-shadow: 0 6px 28px rgba(0,0,0,0.55); }
.cover-card.locked img { filter: brightness(0.5) grayscale(0.8); }
.cover-card-soon {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 7px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #DDB460; border: 1px solid #DDB460; padding: 4px 8px; background: rgba(0,0,0,0.5);
}
.cover-card-soon.live { color: #121110; background: #DDB460; border-color: #DDB460; }
.cover-card-btn.soon { color: #7C786E; }
.cover-card-btn.live { color: #DDB460; }

.edition-feature {
  display: flex; gap: 44px; align-items: center;
  padding: 44px 56px 52px; margin-top: 24px;
  border-top: 1px solid var(--parchment); border-bottom: 1px solid var(--parchment);
}
.ef-cover { flex-shrink: 0; width: 300px; display: block; box-shadow: 0 18px 50px rgba(0,0,0,0.55); border: 1px solid var(--parchment); transition: transform 0.3s ease; }
.ef-cover:hover { transform: translateY(-6px); }
.ef-cover img { width: 100%; aspect-ratio: 612 / 792; object-fit: cover; display: block; }
.ef-info { flex: 1; min-width: 0; }
.ef-kicker { font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.ef-title { font-family: 'Times New Roman', Times, serif; font-weight: 300; font-size: clamp(26px, 3.4vw, 44px); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); line-height: 1.1; margin: 14px 0 16px; }
.ef-desc { font-size: 14px; line-height: 1.75; color: var(--stone); max-width: 500px; margin-bottom: 28px; font-weight: 300; }
.ef-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.ef-btn { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; padding: 15px 30px; border: 1px solid var(--parchment); color: var(--ink); text-decoration: none; font-weight: 500; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.ef-btn:hover { background: var(--parchment); }
.ef-btn.primary { background: var(--gold); border-color: var(--gold); color: var(--dark); font-weight: 700; }
.ef-btn.primary:hover { background: #e9c67e; border-color: #e9c67e; }
@media (max-width: 768px) {
  .edition-feature { flex-direction: column; text-align: center; padding: 34px 20px 42px; gap: 26px; }
  .ef-cover { width: 220px; }
  .ef-desc { margin-left: auto; margin-right: auto; }
  .ef-actions { justify-content: center; }
}

.cover-card.empty-card { cursor: default; }
.cover-card.empty-card:hover { transform: none; box-shadow: 0 6px 28px rgba(0,0,0,0.55); }
.cover-empty { width: 100%; aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; background: var(--cream); }
.cover-empty span { font-size: 8px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mist); border: 1px solid var(--parchment); padding: 8px 12px; }

.carousel-btn {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--parchment);
  color: var(--stone);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  margin: 0 20px;
}
.carousel-btn:hover { background: var(--ochre); border-color: var(--ochre); color: var(--asphalt); }
.carousel-btn:disabled { opacity: 0.25; cursor: default; pointer-events: none; }
.carousel-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* PULL QUOTE */
.pull-quote {
  padding: 64px 140px; text-align: center; border-bottom: 1px solid var(--parchment);
  background: linear-gradient(rgba(94,16,20,0.88), rgba(74,10,14,0.94)), url('../img/bg-parallax-1.jpg') center/cover no-repeat fixed;
}
.pq-text { font-size: 27px; font-weight: 300; color: var(--oatstone); line-height: 1.55; margin-bottom: 20px; }
.pq-rule { width: 40px; height: 1.5px; background: var(--gold); margin: 0 auto 14px; }
.pq-attr { font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ochre); font-weight: 500; }

/* FEATURED STRIP */
.featured { display: grid; grid-template-columns: 400px 1fr; border-bottom: 1px solid var(--parchment); }
.feat-left { background: var(--touring); padding: 52px 48px; display: flex; flex-direction: column; justify-content: center; }
.feat-kicker { font-size: 8.5px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--oatstone); margin-bottom: 16px; font-weight: 500; }
.feat-headline { font-size: 36px; font-weight: 300; color: white; line-height: 1.1; margin-bottom: 16px; }
.feat-body { font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.72); line-height: 1.7; margin-bottom: 28px; }
.feat-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--asphalt); background: var(--ochre); padding: 10px 20px;
  cursor: pointer; font-weight: 700; align-self: flex-start; transition: background 0.2s;
}
.feat-cta:hover { background: #ECC67E; }
.feat-right { background: var(--ink-mid); display: flex; flex-direction: column; }
.feat-list-item {
  padding: 22px 40px; border-bottom: 1px solid var(--parchment);
  display: grid; grid-template-columns: 32px 1fr 18px; gap: 16px;
  align-items: center; cursor: pointer; transition: background 0.15s; background: var(--ink-mid);
  flex: 1 1 auto; /* las notas se reparten toda la altura de la columna: sin espacio muerto abajo */
}
.feat-list-item:hover { background: var(--parchment); }
.feat-list-item:last-child { border-bottom: none; }
.fli-num { font-size: 13px; font-weight: 700; color: var(--ochre); line-height: 1; }
.fli-title { font-size: 14.5px; font-weight: 300; color: var(--ink); line-height: 1.35; }
.fli-cat { font-size: 8.5px; color: var(--mist); letter-spacing: 0.1em; margin-top: 4px; }
.fli-arrow { font-size: 13px; color: var(--stone); }

/* DOUBLE FEATURE */
.double-feat { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--parchment); }
.df { padding: 48px 52px; border-right: 1px solid var(--parchment); cursor: pointer; transition: background 0.15s; background: var(--ink-mid); }
.df:hover { background: var(--parchment); }
.df:last-child { border-right: none; }
.df-rule { width: 28px; height: 2px; background: var(--coral); margin-bottom: 18px; }
.df-rule.gold { background: var(--gold); }
.df-cat { font-size: 8px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--coral); margin-bottom: 12px; font-weight: 500; }
.df-cat.g { color: var(--gold); }
.df-title { font-size: 25px; font-weight: 300; color: var(--ink); line-height: 1.25; margin-bottom: 14px; }
.df-title em { font-style: normal; }
.df-body { font-size: 12.5px; color: var(--stone); line-height: 1.75; margin-bottom: 24px; }
.df-link { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--parchment); padding-bottom: 2px; display: inline-block; font-weight: 500; }

/* CARD GRID */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--parchment); margin: 24px 0 0; border-top: 1px solid var(--parchment); border-bottom: 1px solid var(--parchment); }
.card { background: var(--ink-mid); padding: 36px 36px 28px; cursor: pointer; transition: background 0.15s; }
.card:hover { background: var(--parchment); }
.card-thumb { height: 100px; margin-bottom: 22px; position: relative; overflow: hidden; }
.ct-label { position: absolute; bottom: 12px; left: 14px; background: rgba(42,42,42,0.82); border-left: 2px solid var(--ochre); padding: 5px 10px; font-size: 8.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--oatstone); font-weight: 500; }
.card-cat { font-size: 8px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; font-weight: 500; }
.card-title { font-size: 19px; font-weight: 300; color: var(--ink); line-height: 1.3; margin-bottom: 12px; }
.card-body { font-size: 12.5px; color: var(--stone); line-height: 1.7; margin-bottom: 20px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--parchment); }
.card-read { font-size: 10px; color: var(--mist); }
.card-arrow { font-size: 14px; color: var(--teal); }

/* NEWSLETTER */
.newsletter {
  border-bottom: 1px solid var(--parchment); padding: 52px 56px;
  display: grid; grid-template-columns: 1fr 420px; gap: 60px; align-items: center;
  background: linear-gradient(rgba(0,66,94,0.90), rgba(0,46,66,0.96)), url('../img/bg-parallax-2.jpg') center/cover no-repeat fixed;
}
.nl-kicker { font-size: 8.5px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--ochre); font-weight: 500; margin-bottom: 12px; }
.nl-headline { font-size: 32px; font-weight: 300; color: var(--oatstone); line-height: 1.15; margin-bottom: 10px; }
.nl-body { font-size: 15px; color: #fff; line-height: 1.6; }
.nl-form { display: flex; }
.nl-input { flex: 1; border: 1px solid var(--parchment); border-right: none; background: var(--ink-mid); padding: 13px 18px; font-size: 12px; color: var(--ink); font-family: var(--sans); outline: none; }
.nl-input::placeholder { color: var(--mist); }
.nl-btn { background: var(--ochre); border: none; padding: 13px 24px; font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--asphalt); cursor: pointer; font-family: var(--sans); font-weight: 700; transition: background 0.2s; }
.nl-btn:hover { background: #ECC67E; }
.nl-privacy { margin-top: 10px; font-size: 10px; color: #fff; }

/* FOOTER */
footer { background: var(--dark); padding: 56px 56px 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 28px; }
.ft-logo { display: inline-block; margin-bottom: 4px; line-height: 0; text-decoration: none; }
.ft-logo img { height: 80px; width: auto; display: block; }
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--gold); }
footer .ft-links a, footer .ft-copy, footer .ft-lang a, footer .ft-tagline, footer .ft-col-title { color: rgba(255,255,255,0.85) !important; }
.ft-tagline { font-size: 13px; color: rgba(255,255,255,0.35); line-height: 1.6; margin-bottom: 20px; }
.ft-social { display: flex; gap: 12px; }
.ft-social-btn { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 10px; color: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.15s; font-weight: 500; }
.ft-social-btn:hover { border-color: rgba(255,255,255,0.3); color: white; }
.ft-col-title { font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 18px; }
.ft-links { display: flex; flex-direction: column; gap: 11px; }
.ft-links a { font-size: 12px; color: rgba(255,255,255,0.4); text-decoration: none; cursor: pointer; transition: color 0.15s; }
.ft-links a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.ft-copy { font-size: 10px; color: rgba(255,255,255,0.2); letter-spacing: 0.05em; }
.ft-lang { display: flex; gap: 14px; }
.ft-lang a { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.3); text-decoration: none; cursor: pointer; }
.ft-lang a.active { color: var(--teal-mid); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .anim-logo-img { height: 100px; margin-top: 20px; }
  .anim-center { left: 50%; transform: translateX(-50%); align-items: center; }
  .anim-tagline   { font-size: 8px; letter-spacing: 0.2em; }
  /* Texto entre el logo (arriba) y el carro (centro) */
  .anim-portal-text { font-size: 15px; letter-spacing: 0.2em; white-space: normal; width: 90%; bottom: auto; top: calc(28px + 100px + 55px); }
  .anim-portal-text .pt-l1 { font-size: 15px; }
  .anim-portal-text .pt-l2 { font-size: 15px; }
  /* En móvil el texto va SIEMPRE abajo: sin crossfade arriba/abajo */
  .anim-portal-text.pt-top { display: none; }
  .anim-portal-text .br-m  { display: inline; }
  .anim-portal-text.pt-bottom { opacity: 1 !important; }

  .edition-bar { padding: 7px 16px; grid-template-columns: 1fr 1fr; }
  .eb-left   { display: none; }
  .eb-center { font-size: 8.5px; letter-spacing: 0.14em; text-align: left; }
  .eb-right  { font-size: 8.5px; letter-spacing: 0.12em; }

  .header-top { height: 70px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 0; position: relative; }
  .header-nav-left, .header-nav-right { display: none; }
  /* Hamburguesa a la DERECHA, se transforma en X al abrir */
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none;
    border: none; cursor: pointer; padding: 8px; order: 5; z-index: 320;
  }
  .nav-toggle span {
    width: 24px; height: 2px; background: var(--ink); border-radius: 2px; display: block;
    transition: transform .32s cubic-bezier(.6,.05,.28,.99), opacity .2s; transform-origin: center;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* Menú full-screen que entra desde la derecha + ítems en cascada */
  .mobile-nav {
    display: flex; flex-direction: column; justify-content: center;
    position: fixed; inset: 0; z-index: 310;
    background: linear-gradient(165deg, #1b1a18 0%, #0c0b0a 100%);
    padding: 96px 34px 48px; transform: translateX(100%); opacity: 0;
    transition: transform .5s cubic-bezier(.16,1,.3,1), opacity .35s ease; overflow-y: auto;
  }
  .mobile-nav.open { transform: translateX(0); opacity: 1; }
  .mobile-nav a {
    display: block; padding: 15px 0; border-bottom: 1px solid var(--parchment);
    font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink); text-decoration: none; font-weight: 300;
    opacity: 0; transform: translateX(30px);
    transition: opacity .45s ease, transform .5s cubic-bezier(.16,1,.3,1), color .15s;
  }
  .mobile-nav.open a { opacity: 1; transform: translateX(0); }
  .mobile-nav.open a:nth-child(2){transition-delay:.06s}
  .mobile-nav.open a:nth-child(3){transition-delay:.11s}
  .mobile-nav.open a:nth-child(4){transition-delay:.16s}
  .mobile-nav.open a:nth-child(5){transition-delay:.21s}
  .mobile-nav.open a:nth-child(6){transition-delay:.26s}
  .mobile-nav.open a:nth-child(7){transition-delay:.31s}
  .mobile-nav.open a:nth-child(8){transition-delay:.36s}
  .mobile-nav.open a:nth-child(9){transition-delay:.41s}
  .mobile-nav.open a:nth-child(10){transition-delay:.46s}
  .mobile-nav.open a:nth-child(11){transition-delay:.51s}
  .mobile-nav.open a:nth-child(12){transition-delay:.56s}
  .mobile-nav a:hover, .mobile-nav a:active { color: var(--gold); }
  .mn-close { position: absolute; top: 20px; right: 20px; background: none;
    border: 1px solid var(--parchment); color: var(--ink); width: 40px; height: 40px;
    font-size: 18px; cursor: pointer; border-radius: 50%; transition: all .2s; }
  .mn-close:hover { border-color: var(--gold); color: var(--gold); }
  .logo-center { order: 0; padding-bottom: 0; text-align: left; } .masthead-logo { margin: 0; }
  .masthead-logo img { height: 50px; }
  .hero-byline { display: none; }
  .hero-footer { justify-content: center; }
  .hero-cta { white-space: nowrap; padding: 13px 22px; font-size: 9px; }
  .ft-logo img { height: 84px; }
  .logo-type-main { font-size: 20px; letter-spacing: 0.22em; }
  /* En móvil toda la navegación vive en el menú hamburguesa → se oculta la barra de categorías */
  .header-cats { display: none; }
  .hcat { padding: 11px 11px; font-size: 8.5px; letter-spacing: 0.13em; }
  /* El header móvil queda SIEMPRE visible: al condensar no debe colapsar la fila
     del logo (la barra de categorías está oculta, así que si no, desaparecería). */
  .site-header.condensed .header-top {
    max-height: none !important; opacity: 1 !important; overflow: visible !important;
    padding: 12px 20px !important;
  }

  .date-bar { padding: 8px 16px; }
  .date-left { font-size: 9px; letter-spacing: 0.05em; }
  .date-right { display: none; }

  .hero { grid-template-columns: 1fr; }
  .hero-main { position: relative; top: auto; height: auto; min-height: 65vh; padding: 32px 20px 28px; border-right: none; }
  .hero-headline { font-size: 21px; margin-bottom: 20px; }
  .hero-sidebar { display: none; }

  .section-head { padding: 28px 16px 0; }
  .covers-gallery { grid-template-columns: repeat(2, 1fr); }

  .pull-quote { padding: 48px 20px; }
  .pq-text    { font-size: 17px; }

  .featured { grid-template-columns: 1fr; }
  .feat-left { padding: 36px 20px; min-height: 0; }
  .feat-headline { font-size: 26px; }
  .feat-body     { font-size: 14px; }
  .feat-list-item { padding: 16px 20px; }
  .fli-title { font-size: 13px; }

  .double-feat { grid-template-columns: 1fr; }
  .df { padding: 32px 20px; border-right: none; border-bottom: 1px solid var(--parchment); }
  .df:last-child { border-bottom: none; }
  .df-title { font-size: 20px; }

  .card-grid { grid-template-columns: 1fr; }
  .card      { padding: 24px 20px; }
  .card-title { font-size: 17px; }

  .newsletter { grid-template-columns: 1fr; padding: 40px 20px; gap: 28px; }
  .nl-headline { font-size: 24px; }
  .nl-form { flex-direction: column; }
  .nl-input { border-right: 1px solid var(--parchment); }

  footer { padding: 36px 16px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; padding-bottom: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .hero-headline { font-size: 19px; }
  .nl-headline   { font-size: 22px; }
  .feat-headline { font-size: 24px; }
  .hcat { padding: 10px 9px; font-size: 8px; letter-spacing: 0.10em; }
}

/* ── Espacios publicitarios (placeholder) ── */
.ad-wrap { padding: 0 56px; }
.ad-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  text-align: center; color: var(--mist); margin: 0 auto;
  border: 1px dashed var(--parchment);
  background: repeating-linear-gradient(45deg, transparent, transparent 11px, rgba(176,173,166,0.035) 11px, rgba(176,173,166,0.035) 22px);
}
.ad-slot .ad-label { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--stone); }
.ad-slot .ad-dim   { font-size: 9px;  letter-spacing: 0.18em; color: var(--mist); }
/* Ancho fluido + aspect-ratio: escala en móvil sin deformarse. */
.ad-leaderboard { width: 100%; margin: 48px auto; }
.ad-970x250 { max-width: 970px;  aspect-ratio: 970 / 250; }  /* 3.88 : 1 */
.ad-728x90  { max-width: 728px;  aspect-ratio: 728 / 90;  }  /* 8.09 : 1 */
.ad-billboard   { width: 100%; max-width: 970px; aspect-ratio: 970 / 250; margin: 8px auto 20px; }
.ad-vertical    { width: 100%; margin: 0 auto; }
.ad-300x600     { max-width: 300px; aspect-ratio: 300 / 600; }
.ad-square      { width: 100%; margin: 0 auto; }
.ad-300x300     { max-width: 300px; aspect-ratio: 1 / 1; }
.ad-500x500     { max-width: 500px; aspect-ratio: 1 / 1; }
/* Cuadrado grande como tercer módulo de la fila Regularidad/Campeones.
   Sin anuncio activo, la fila vuelve a sus 2 tarjetas normales. */
.double-feat.has-sq { grid-template-columns: 380px 1fr 1fr; }
.df-ad {
  background: var(--ink-mid); border-right: 1px solid var(--parchment);
  display: flex; align-items: center; justify-content: center; padding: 28px;
}
.df-ad .ad-wrap { padding: 0; width: 100%; }
@media (min-width: 769px) and (max-width: 1100px) {
  .double-feat.has-sq { grid-template-columns: 1fr 1fr; }
  .df-ad { grid-column: 1 / -1; order: 3; border-right: none; border-top: 1px solid var(--parchment); padding: 28px 16px; }
}
/* Con arte real: la caja toma la proporción de la imagen (sin recorte ni punteado) */
.ad-slot.ad-has-img { aspect-ratio: auto; border: none; background: none; }
/* Etiqueta discreta pegada bajo el arte */
.ad-caption {
  display: block; text-align: center; margin-top: 4px;
  font-size: 8.5px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--mist);
}
/* Cuadrado chico como quinta columna del footer. Sin anuncio activo,
   el footer queda con sus 4 columnas normales (no se agrega la clase). */
.footer-top.has-ad { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 220px; }
.ft-ad { display: flex; align-items: center; justify-content: center; }
.ft-ad .ad-wrap { padding: 0; width: 100%; }
@media (min-width: 481px) and (max-width: 1100px) {
  /* En pantallas medias el cuadrado baja a fila completa, centrado */
  .footer-top.has-ad { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; }
  .ft-ad { grid-column: 1 / -1; margin-top: 12px; }
}
/* Columna publicitaria vertical junto a los blogs destacados */
.featured.has-vad { grid-template-columns: 400px 1fr 332px; }
.feat-vertical {
  background: var(--ink-mid); border-left: 1px solid var(--parchment);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.feat-vertical .ad-wrap { padding: 0; width: 100%; }
@media (min-width: 769px) and (max-width: 1024px) {
  /* En tablet la columna vertical baja a fila completa bajo los blogs */
  .featured.has-vad { grid-template-columns: 400px 1fr; }
  .feat-vertical { grid-column: 1 / -1; border-left: none; border-top: 1px solid var(--parchment); padding: 28px 16px; }
}
.ad-dim-mobile { display: none; }
@media (max-width:768px){
  .ad-wrap { padding: 0 16px; }
  .ad-leaderboard { margin: 32px auto; }
  .ad-slot .ad-label { font-size: 9px; }
  .ad-slot .ad-dim   { font-size: 8px; }
  .ad-slot { gap: 4px; }
  /* En móvil el 728×90 se sustituye por Rectángulo 300×250 */
  .ad-m-300x250 { max-width: 300px; aspect-ratio: 300 / 250; }
  .ad-dim-desktop { display: none; }
  .ad-dim-mobile  { display: block; }
}

/* ── Overrides MÓVILES de los espacios publicitarios ──
   ⚠️ Este bloque debe quedar AL FINAL del archivo: las reglas base de los
   slots (has-vad / has-sq / has-ad) están arriba y, a igual especificidad,
   gana la última declarada. */
@media (max-width: 768px) {
  .featured.has-vad { grid-template-columns: 1fr; }
  .feat-vertical { border-left: none; border-top: 1px solid var(--parchment); padding: 28px 16px; }
  .double-feat.has-sq { grid-template-columns: 1fr; }
  .df-ad { order: 3; border-right: none; border-top: 1px solid var(--parchment); padding: 28px 16px; }
}
@media (max-width: 480px) {
  .footer-top.has-ad { grid-template-columns: 1fr 1fr; }
  .ft-ad { grid-column: 1 / -1; margin-top: 8px; }
}
