/*
Theme Name: Carteristas Fiscales
Theme URI: https://carteristas.es
Author: Amsterdam & Partners LLP
Author URI: 
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --red:        #C41E3A;
  --red-dark:   #8B0000;
  --red-light:  #E8192C;
  --gold:       #B89A3E;
  --gold-light: #D4AF6A;
  --charcoal:   #1A1614;
  --charcoal-2: #2C2420;
  --charcoal-3: #3E3733;
  --cream:      #FDFCF8;
  --cream-2:    #F5F2EA;
  --cream-3:    #EDE8DC;
  --text:       #1C1814;
  --text-muted: #6B5E53;
  --text-light: #9A8E84;
  --white:      #FFFFFF;
  --border:     rgba(180,150,100,0.2);
  --border-dark: rgba(180,150,100,0.4);
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Lora', Georgia, serif;
  --font-ui:       'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-caption:  'Barlow', sans-serif;
  --max-w:    1200px;
  --max-w-sm: 800px;
  --header-h: 72px;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.18);
  --shadow-red: 0 4px 24px rgba(196,30,58,0.3);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--charcoal);
}

p { margin-bottom: 1.25em; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.container--sm { max-width: var(--max-w-sm); }
.text-center { text-align: center; }
.text-left   { text-align: left; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   LANGUAGE TOGGLE BANNER
   ============================================================ */
.lang-banner {
  background: var(--charcoal);
  border-bottom: 2px solid var(--red);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lang-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.lang-banner__alert {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.lang-banner__alert span { color: var(--white); }

.lang-toggle-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 2px;
}
.lang-btn {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  color: rgba(255,255,255,0.55);
  background: transparent;
}
.lang-btn.active { background: var(--red); color: var(--white); }
.lang-btn:hover:not(.active) { color: var(--white); background: rgba(255,255,255,0.1); }

/* Social icons in banner */
.lang-banner__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-right: 1.25rem;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.lang-banner__social a {
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.lang-banner__social a:hover { color: var(--white); }
@media (max-width: 640px) { .lang-banner__social { display: none; } }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  background: var(--charcoal);
  height: var(--header-h);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
}
.site-logo img { height: 32px; width: auto; }
.site-logo .custom-logo { height: 32px; width: auto; }
.site-logo .custom-logo,
.custom-logo-link img {
  height: 32px !important;
  width: auto !important;
  max-width: none;
}
.site-logo-secondary {
  display: flex;
  align-items: center;
}
.site-logo__wordmark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.02em;
  line-height: 1.2;
  display: none;
}
@media (min-width: 640px) { .site-logo__wordmark { display: block; } }

/* Primary Nav */
.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
}
.site-nav a {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: 3px;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
}
.site-nav a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.site-nav .nav-cta { margin-left: 0.625rem; }
.site-nav .nav-cta a {
  background: var(--red);
  color: var(--white);
  padding: 0.55rem 1.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  border-radius: 3px;
}
.site-nav .nav-cta a:hover { background: var(--red-light); }

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--charcoal-2);
    padding: 1rem;
    border-bottom: 2px solid var(--red);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .site-nav a { display: block; padding: 0.75rem 1rem; font-size: 0.875rem; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero.loaded .hero__bg { transform: scale(1); }
.hero__texture {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='none'/%3E%3Crect width='1' height='1' fill='rgba(255,255,255,0.025)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero__rule {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 6rem 0 5rem;
  max-width: 820px;
}
.hero__eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.hero__title em { font-style: italic; color: var(--gold-light); }
.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  margin-bottom: 2.5rem;
  max-width: 640px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 1.75rem;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
  box-shadow: none;
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  color: var(--white);
}
.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
}
.btn-outline-dark {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline-dark:hover {
  background: var(--charcoal);
  color: var(--white);
}
.btn svg { width: 16px; height: 16px; }

/* ============================================================
   CREDIBILITY BAR
   ============================================================ */
.credibility-bar {
  background: var(--cream-2);
  border-bottom: 1px solid var(--border-dark);
  padding: 1.25rem 0;
}
.credibility-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.cred-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cred-item svg { color: var(--red); flex-shrink: 0; }
.cred-divider { width: 1px; height: 20px; background: var(--border-dark); }

/* ============================================================
   SECTION FRAMING
   ============================================================ */
.section { padding: 6rem 0; }
.section--dark { background: var(--charcoal); color: var(--cream); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--cream); }
.section--cream-2 { background: var(--cream-2); }
.section--cream-3 { background: var(--cream-3); }
.section--bordered {
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}
.section-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.section-label::after {
  content: '';
  display: block;
  height: 1px;
  width: 40px;
  background: var(--red);
}
.section--dark .section-label { color: var(--gold-light); }
.section--dark .section-label::after { background: var(--gold); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.section-lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 4.5rem;
}
.section--dark .section-lead { color: rgba(253,252,248,0.72); }

/* ============================================================
   WHITEPAPER
   ============================================================ */
.whitepaper-section {
  background: var(--charcoal-2);
  position: relative;
  overflow: hidden;
}
.whitepaper-section::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(196,30,58,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.whitepaper-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 768px) { .whitepaper-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.whitepaper-cover { position: relative; }
.whitepaper-cover img {
  border-radius: 2px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  transition: transform 0.4s var(--ease);
  max-width: 380px;
  margin: 0 auto;
}
.whitepaper-cover:hover img { transform: translateY(-4px) rotate(0.5deg); }
.whitepaper-cover::before {
  content: '';
  position: absolute;
  inset: 12px -8px -12px 8px;
  background: var(--red);
  border-radius: 2px;
  z-index: -1;
  opacity: 0.6;
}
.whitepaper-body { color: var(--cream); }
.whitepaper-body .section-title { color: var(--cream); }
.whitepaper-body .section-lead { color: rgba(253,252,248,0.72); }
.whitepaper-body .whitepaper-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2rem;
}
.whitepaper-authors {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-caption);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}
.whitepaper-authors strong { color: var(--gold-light); }

/* ============================================================
   ABUSE PILLARS
   ============================================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  background: var(--border-dark);
  border: 1.5px solid var(--border-dark);
  border-radius: 3px;
  overflow: hidden;
}
.pillar-card {
  background: var(--cream);
  padding: 2.5rem 2rem;
  position: relative;
  transition: background 0.2s var(--ease);
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-card:hover { background: var(--white); }
.pillar-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(196,30,58,0.12);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.pillar-card h3 {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.875rem;
}
.pillar-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   DOCUMENTARY SECTION
   ============================================================ */
.documentary-section {
  background: #0D0B09;
  position: relative;
  overflow: hidden;
}
.documentary-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 0h1v1H0zm59 0h1v1h-1zM0 59h1v1H0zm59 59h1v1h-1z' fill='rgba(255,255,255,0.015)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.documentary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
@media (max-width: 768px) { .documentary-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.documentary-body { color: var(--cream); position: relative; z-index: 1; }
.documentary-body .section-title { color: var(--white); font-style: italic; }
.documentary-body p { color: rgba(255,255,255,0.72); margin-bottom: 1rem; }
.documentary-media { position: relative; z-index: 1; }
.video-wrapper {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.video-wrapper video,
.video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  background: #000;
}
.video-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  border: 1px solid rgba(196,30,58,0.4);
  border-radius: 3px;
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   EL JUEGO DEL FRAUDE — YouTube Series
   ============================================================ */
.juego-section {
  background: var(--red);
  position: relative;
  overflow: hidden;
}
.juego-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(139,0,0,0.5) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(0,0,0,0.3) 0%, transparent 60%);
  pointer-events: none;
}
.juego-section .section-label {
  color: var(--gold-light);
}
.juego-section .section-label::after {
  background: var(--gold);
}
.juego-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .juego-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.juego-video-wrap {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.15);
}
.juego-video-wrap iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
}
.juego-body {
  position: relative;
  z-index: 1;
}
.juego-body .section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--white);
  font-style: italic;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--red);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 28rem;
  font-weight: 700;
  color: rgba(255,255,255,0.05);
  position: absolute;
  top: -6rem; left: -2rem;
  line-height: 1;
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; text-align: center; }
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.cta-band p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.cta-band .btn-gold { font-size: 0.9rem; padding: 1.1rem 2.25rem; }
.cta-band .btn-secondary {
  border-color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
  padding: 1.1rem 2.25rem;
}
.cta-band-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   NEWS SECTION
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5px;
  background: var(--border-dark);
  border: 1.5px solid var(--border-dark);
  border-radius: 2px;
  overflow: hidden;
}
.news-card {
  background: var(--cream);
  transition: background 0.2s var(--ease);
  display: flex;
  flex-direction: column;
}
.news-card:hover { background: var(--white); }
.news-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--cream-3);
}
.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.news-card:hover .news-card__image img { transform: scale(1.04); }
.news-card__body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-card__date {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.625rem;
}
.news-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--charcoal);
  margin-bottom: 0.875rem;
  flex: 1;
}
.news-card__title a { color: inherit; text-decoration: none; }
.news-card__title a:hover { color: var(--red); }
.news-card__excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card__footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.news-card__readmore {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  text-decoration: none;
}
.news-card__readmore:hover { color: var(--red-dark); gap: 0.625rem; }
.news-card__readmore svg { transition: transform 0.2s var(--ease); }
.news-card__readmore:hover svg { transform: translateX(3px); }
.news-footer { text-align: center; margin-top: 3rem; }

/* ============================================================
   J'ACCUSE FEATURE
   ============================================================ */
.jaccuse-section {
  background: var(--cream-2);
  border-top: 4px solid var(--red);
  padding: 4rem 0;
}
.jaccuse-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 700px) { .jaccuse-inner { grid-template-columns: 1fr; } }
.jaccuse-text .section-label { color: var(--red); }
.jaccuse-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-style: italic;
  margin-bottom: 0.875rem;
}
.jaccuse-text p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 520px;
}
.jaccuse-cover { flex-shrink: 0; max-width: 180px; }
.jaccuse-cover img {
  box-shadow: var(--shadow-lg);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}
.jaccuse-cover:hover img { transform: translateY(-4px); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--charcoal);
  padding: 5rem 0 4rem;
  border-bottom: 3px solid var(--red);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 0.875rem;
}
.page-hero .lead {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.72);
  max-width: 600px;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }
.violations-list { list-style: none; }
.violations-list li {
  padding: 1rem 0 1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.violations-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 1.4rem;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
}
.violations-list li strong { color: var(--charcoal); display: block; margin-bottom: 0.25rem; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-header { background: var(--charcoal); padding: 4rem 0 3rem; }
.post-header__cat {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.post-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--white);
  max-width: 760px;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.post-header__meta {
  font-family: var(--font-caption);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}
.post-featured-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-bottom: 3px solid var(--red);
}
.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.post-body h2 { font-size: 1.875rem; margin: 2.5rem 0 1rem; }
.post-body h3 { font-size: 1.375rem; margin: 2rem 0 0.75rem; }
.post-body p { margin-bottom: 1.5rem; }
.post-body blockquote {
  border-left: 3px solid var(--red);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--cream-2);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--charcoal);
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
  padding: 4rem 0 2rem;
  border-top: 3px solid var(--red);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand img { height: 48px; margin-bottom: 1rem; filter: brightness(1.2); }
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 300px;
}
.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.625rem; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-caption);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--white); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--cream-3);
  border-radius: 2px;
  background: var(--white);
  color: var(--text);
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--red); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}

/* Contact Form 7 styling */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--cream-3);
  border-radius: 2px;
  background: var(--white);
  color: var(--text);
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--red); }
.wpcf7 textarea { min-height: 140px; resize: vertical; }
.wpcf7 input[type="submit"] {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1.1rem 1.75rem;
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.22s var(--ease);
}
.wpcf7 input[type="submit"]:hover { background: var(--white); color: var(--red); }

/* ============================================================
   ARCHIVE PAGE
   ============================================================ */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5px;
  background: var(--border-dark);
  border: 1.5px solid var(--border-dark);
  border-radius: 2px;
  overflow: hidden;
}

/* ============================================================
   ARCHIVE PAGINATION
   ============================================================ */
.archive-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-dark);
}
.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  border-radius: 2px;
  border: 1.5px solid var(--border-dark);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s var(--ease);
  background: var(--cream);
}
.archive-pagination .page-numbers:hover {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}
.archive-pagination .page-numbers.current {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.archive-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}
body.lang-es div[data-lang="en"] .archive-pagination { display: none; }
body.lang-en div[data-lang="es"] .archive-pagination { display: none; }

/* ============================================================
   AD LIBRARY
   ============================================================ */
.ad-library { display: flex; flex-direction: column; gap: 5rem; }
.ad-entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--border-dark);
}
.ad-entry--reverse { direction: rtl; }
.ad-entry--reverse > * { direction: ltr; }
.ad-entry:last-child { border-bottom: none; }
.ad-entry__media img {
  border-radius: 2px;
  box-shadow: var(--shadow-lg);
  width: 100%;
}
.ad-placeholder {
  background: var(--cream-3);
  border: 1.5px solid var(--border-dark);
  border-radius: 2px;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-muted);
}
.ad-entry__date {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.ad-entry__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}
.ad-entry__body p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .ad-entry, .ad-entry--reverse { grid-template-columns: 1fr; direction: ltr; gap: 2rem; }
}

/* ============================================================
   PUBLICATIONS PAGE
   ============================================================ */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
}
@media (max-width: 900px) { .pub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pub-grid { grid-template-columns: 1fr; } }
.pub-card {
  background: var(--white);
  border: 1.5px solid var(--border-dark);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.pub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
.pub-card__cover {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--charcoal-2);
}
.pub-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.5s var(--ease);
}
.pub-card:hover .pub-card__cover img { transform: scale(1.04); }
.pub-card__lang-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
}
.pub-card__lang-badge--es { background: rgba(196,30,58,0.9); color: #fff; }
.pub-card__lang-badge--en {
  background: rgba(26,22,20,0.85);
  color: var(--gold-light);
  border: 1px solid var(--gold);
}
.pub-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pub-card__type {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}
.pub-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--charcoal);
  flex: 1;
}
.pub-card__desc {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}
.pub-card__footer {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.pub-card__footer .btn {
  font-size: 0.72rem;
  padding: 0.65rem 1.1rem;
  flex: 1;
  justify-content: center;
  min-width: 0;
}
.pub-card--featured {
  grid-column: span 2;
  flex-direction: row;
}
@media (max-width: 900px) {
  .pub-card--featured { grid-column: span 1; flex-direction: column; }
}
.pub-card--featured .pub-card__cover {
  aspect-ratio: auto;
  width: 280px;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .pub-card--featured .pub-card__cover { width: 100%; aspect-ratio: 3/2; }
}
.pub-card--featured .pub-card__title { font-size: 1.5rem; }
.pub-card--featured .pub-card__desc { font-size: 0.9rem; }
.pub-section-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.pub-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-dark);
}
.pub-section-label:first-child { margin-top: 0; }

/* ============================================================
   LANGUAGE CONTENT SWITCHING
   ============================================================ */
div[data-lang],
section[data-lang],
article[data-lang],
p[data-lang],
h1[data-lang],
h2[data-lang],
h3[data-lang],
h4[data-lang],
ul[data-lang],
li[data-lang] { display: none; }

span[data-lang] { display: none; }

body.lang-es div[data-lang="es"],
body.lang-es section[data-lang="es"],
body.lang-es article[data-lang="es"],
body.lang-es p[data-lang="es"],
body.lang-es h1[data-lang="es"],
body.lang-es h2[data-lang="es"],
body.lang-es h3[data-lang="es"],
body.lang-es h4[data-lang="es"],
body.lang-es ul[data-lang="es"],
body.lang-es li[data-lang="es"] { display: block; }
body.lang-es span[data-lang="es"] { display: inline; }

body.lang-en div[data-lang="en"],
body.lang-en section[data-lang="en"],
body.lang-en article[data-lang="en"],
body.lang-en p[data-lang="en"],
body.lang-en h1[data-lang="en"],
body.lang-en h2[data-lang="en"],
body.lang-en h3[data-lang="en"],
body.lang-en h4[data-lang="en"],
body.lang-en ul[data-lang="en"],
body.lang-en li[data-lang="en"] { display: block; }
body.lang-en span[data-lang="en"] { display: inline; }

.site-nav a span[data-lang] { display: none; }
body.lang-es .site-nav a span[data-lang="es"] { display: inline; }
body.lang-en .site-nav a span[data-lang="en"] { display: inline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 4rem 0; }
  .hero { min-height: 70vh; }
  .hero__content { padding: 3rem 0; }
  .hero__ctas { flex-direction: column; align-items: flex-start; }
  .lang-banner__alert { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .lang-banner, .site-header, .site-footer, .hero__bg { display: none; }
  .hero { min-height: auto; padding: 2rem 0; }
  body { background: white; color: black; }
}