/* esplanforweekend.com — revista 2026 */

:root {
  --bg: #f4ede4;
  --bg-elevated: #faf6ef;
  --ink: #1c1b18;
  --muted: #5c564c;
  --accent: #c75b43;
  --accent-soft: rgba(199, 91, 67, 0.12);
  --secondary: #4a5d4e;
  --secondary-soft: rgba(74, 93, 78, 0.14);
  --footer-bg: #252320;
  --footer-text: #e8e3db;
  --footer-muted: #a39e94;
  --border: rgba(28, 27, 24, 0.12);
  --shadow: 0 12px 40px rgba(28, 27, 24, 0.08);
  --radius: 14px;
  --radius-sm: 8px;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #a84833;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 0.5rem;
}

/* Contenedores de imagen: siempre contain */
.media-box,
.img-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-box img,
.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.media-box--hero {
  aspect-ratio: 16 / 9;
  max-height: 420px;
}

.media-box--square {
  aspect-ratio: 1;
}

.media-box--card {
  aspect-ratio: 4 / 3;
  min-height: 180px;
}

.media-box--thumb {
  aspect-ratio: 3 / 2;
  min-height: 100px;
}

.media-box--narrow {
  aspect-ratio: 21 / 9;
  max-height: 160px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fade-up 0.55s ease-out both;
}

.stagger-1 {
  animation-delay: 0.05s;
}
.stagger-2 {
  animation-delay: 0.1s;
}
.stagger-3 {
  animation-delay: 0.15s;
}
.stagger-4 {
  animation-delay: 0.2s;
}
.stagger-5 {
  animation-delay: 0.25s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 237, 228, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

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

.brand__logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.brand__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
}

.brand__tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.breadcrumbs {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumbs ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  opacity: 0.5;
}

.breadcrumbs a {
  color: var(--muted);
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
}

.hero {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
  margin-bottom: 2.5rem;
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  max-width: 52ch;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn--primary:hover {
  transform: translateY(-1px);
  color: #fff;
}

.btn--ghost {
  background: var(--bg-elevated);
  color: var(--ink);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--secondary);
  color: var(--ink);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent-soft);
}

.section-lead {
  color: var(--muted);
  max-width: 65ch;
  margin-top: -0.25rem;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

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

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

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(28, 27, 24, 0.12);
}

.card__body {
  padding: 1.1rem 1.2rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__meta {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--secondary);
  margin: 0 0 0.35rem;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.card__excerpt {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
  flex: 1;
}

.two-col-block {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (min-width: 820px) {
  .two-col-block {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.note-box {
  background: var(--secondary-soft);
  border-left: 4px solid var(--secondary);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.98rem;
}

.note-box--accent {
  background: var(--accent-soft);
  border-left-color: var(--accent);
}

/* Artículo + sidebar */
.article-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }
}

.article-main {
  min-width: 0;
}

.article-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.article-dek {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  max-width: 60ch;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.article-main h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.article-main h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.article-main p {
  margin: 0 0 1rem;
  max-width: 65ch;
}

.article-main ul,
.article-main ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  max-width: 65ch;
}

.article-main blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  font-style: italic;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.gallery-row {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .gallery-row {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
  }
  .gallery-row .media-box--hero {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .gallery-row .media-box--thumb {
    grid-column: 2;
  }
}

.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.sidebar-card h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}

.sidebar-card dl {
  margin: 0;
  font-size: 0.92rem;
}

.sidebar-card dt {
  font-weight: 700;
  margin-top: 0.65rem;
}

.sidebar-card dt:first-child {
  margin-top: 0;
}

.sidebar-card dd {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

.download-box {
  border: 1px dashed var(--accent);
  background: var(--accent-soft);
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.download-box a {
  font-weight: 700;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--secondary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.prose-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 1rem;
}

.prose-page h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.prose-page p,
.prose-page ul {
  max-width: 70ch;
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2.5rem 1.25rem 2rem;
  margin-top: 2rem;
}

.site-footer a {
  color: #f0c4b8;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1.2fr repeat(3, 1fr);
  }
}

.site-footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.site-footer__logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.site-footer__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}

.site-footer__muted {
  font-size: 0.9rem;
  color: var(--footer-muted);
  margin: 0;
  line-height: 1.5;
}

.site-footer h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.65rem;
  color: var(--footer-muted);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  max-width: 1160px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: var(--footer-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
}

.table-simple {
  width: 100%;
  max-width: 65ch;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1rem 0;
}

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

.table-simple th {
  background: var(--secondary-soft);
}

.newsletter-faux {
  margin: 2.5rem 0;
  padding: 1.75rem;
  background: linear-gradient(135deg, var(--accent-soft), var(--secondary-soft));
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.newsletter-faux h2 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
}

.newsletter-faux p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 55ch;
}

.fake-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fake-form input {
  flex: 1 1 200px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: inherit;
  background: var(--bg-elevated);
}
