/*
Theme Name: DAK INFORMANDO
Theme URI: https://dakagency.net/blog
Author: DAK Agency
Author URI: https://dakagency.net
Description: Tema periodístico para DAK INFORMANDO Blog — réplica 1:1 del diseño Astro. Newspaper-style con Playfair Display + Inter.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dak-informando
Tags: blog, one-column, custom-menu, featured-images, translation-ready
*/

/* ===================================
   DAK INFORMANDO BLOG — CSS
   Newspaper-style · Playfair Display
   ================================== */

:root {
  /* Brand */
  --color-primary: #B024FF;
  --color-primary-dark: #8B1CC7;
  --color-teal: #00A5A5;
  --color-green: #009462;
  --color-warm: #C08850;

  /* Light mode palette */
  --bg-main: #F8F6F2;
  --bg-card: #FFFFFF;
  --bg-surface: #F0EDE7;

  /* Text */
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted: #888888;
  --text-light: #ABABAB;

  /* Borders */
  --border-light: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.15);
  --border-dark: rgba(0, 0, 0, 0.25);

  /* Typography — Fox Newspaper style */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;

  --z-navigation: 1000;
  --z-mini-nav: 1100;
  --z-cursor: 9999;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

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

ul {
  list-style: none;
}

/* ---------- Cursor Grid ---------- */
.cursor-grid-reveal {
  position: fixed;
  inset: 0;
  z-index: var(--z-cursor);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background-image:
    linear-gradient(rgba(176, 36, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 36, 255, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle 180px at var(--mx, -200px) var(--my, -200px), rgba(0, 0, 0, 0.5) 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle 180px at var(--mx, -200px) var(--my, -200px), rgba(0, 0, 0, 0.5) 0%, transparent 100%);
}

@media (max-width: 768px) {
  .cursor-grid-reveal {
    display: none;
  }
}

/* ===================================
   FIXED MINI-NAV
   ================================== */
.mini-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-mini-nav);
  background: rgba(248, 246, 242, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  border-bottom: 2px solid var(--color-primary);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  pointer-events: none;
}

.mini-nav.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mini-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.6rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.mini-nav-logo-img {
  height: 28px;
  width: auto;
}

.mini-nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.mini-nav-link {
  padding: 0.4rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  transition: color var(--transition-base);
}

.mini-nav-link:hover,
.mini-nav-link.active {
  color: var(--color-primary);
}

.mini-nav-subscribe {
  padding: 0.35rem 1rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
  transition: all var(--transition-base);
}

.mini-nav-subscribe:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ===================================
   MAIN HEADER
   ================================== */
.header {
  position: relative;
  z-index: var(--z-navigation);
  background: var(--bg-main);
}

/* Utility bar */
.header-utility {
  border-bottom: 1px solid var(--border-light);
}

.header-utility-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.utility-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.date-text {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.utility-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-social {
  display: flex;
  gap: 0.35rem;
}

.social-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.social-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(176, 36, 255, 0.06);
}

.subscribe-btn {
  padding: 0.4rem 1.1rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--text-primary);
  text-transform: uppercase;
  transition: all var(--transition-base);
}

.subscribe-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Admin login button */
.admin-login-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.admin-login-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(176, 36, 255, 0.06);
}

/* Breadcrumbs */
.breadcrumbs {
  max-width: 780px;
  margin: 0 auto;
  padding: 1.25rem 2rem 0;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.breadcrumbs-list li:not(:last-child)::after {
  content: '›';
  margin-left: 0.3rem;
  color: var(--text-light);
}

.breadcrumbs-list a {
  color: var(--text-muted);
  transition: color var(--transition-base);
}

.breadcrumbs-list a:hover {
  color: var(--color-primary);
}

.breadcrumbs-list li:last-child {
  color: var(--text-secondary);
  font-weight: 700;
}

/* Screen reader text (hidden but SEO visible) */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Masthead */
.masthead {
  padding: 1.5rem 3rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.masthead-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.1rem;
}

.masthead-logo-main {
  height: clamp(50px, 8vw, 80px);
  width: auto;
  transition: opacity var(--transition-base);
}

.masthead-logo-link:hover .masthead-logo-main {
  opacity: 0.7;
}

.masthead-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 900;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-top: -0.15rem;
}

.masthead-tagline {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* Nav bar */
.nav-bar {
  border-bottom: 2px solid var(--color-primary);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  transition: all var(--transition-base);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===================================
   HERO BLOG SECTION
   ================================== */
.hero-blog {
  position: relative;
  padding: 2.5rem 0 4rem;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(176, 36, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 36, 255, 0.018) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 10%, rgba(0, 0, 0, 0.4) 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 10%, rgba(0, 0, 0, 0.4) 90%, transparent 100%);
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 2.5rem;
}

/* Sidebars */
.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-sidebar-left {
  border-right: 1px solid var(--border-light);
  padding-right: 2rem;
}

.hero-sidebar-right {
  border-left: 1px solid var(--border-light);
  padding-left: 2rem;
}

.visual-article {
  display: flex;
  flex-direction: column;
}

.visual-image-link {
  display: block;
  margin-bottom: 0.75rem;
}

.visual-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 0.4rem;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.visual-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-visual {
  background: linear-gradient(135deg, rgba(176, 36, 255, 0.04), rgba(0, 165, 165, 0.03));
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-visual .placeholder-icon {
  color: rgba(176, 36, 255, 0.15);
  position: relative;
  z-index: 1;
}

.visual-article .category-tag {
  margin-bottom: 0.3rem;
}

.visual-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.visual-title a {
  transition: color var(--transition-base);
}

.visual-title a:hover {
  color: var(--color-primary);
}

.visual-excerpt {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-separator {
  border: none;
  height: 1px;
  background: var(--border-medium);
  margin: 0.5rem 2rem;
}

/* Featured */
.hero-featured {
  display: flex;
  flex-direction: column;
}

.featured-image-link {
  display: block;
}

.featured-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, transparent 30%);
  pointer-events: none;
}

.featured-content {
  padding-top: 1.5rem;
}

/* Category tags */
.category-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.tag-marketing {
  color: var(--color-primary);
}

.tag-seo {
  color: var(--color-teal);
}

.tag-branding {
  color: var(--color-green);
}

.tag-video {
  color: var(--color-warm);
}

.tag-blog {
  color: #009462;
}

.tag-entrevistas {
  color: #C08850;
}

.tag-opinion {
  color: #00A5A5;
}

.tag-uncategorized {
  color: #bbb;
}

.featured-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.featured-title a {
  background: linear-gradient(to right, var(--color-primary), var(--color-primary)) no-repeat 0 100%;
  background-size: 0% 2px;
  transition: background-size 0.4s ease, color var(--transition-base);
}

.featured-title a:hover {
  color: var(--color-primary);
  background-size: 100% 2px;
}

.featured-excerpt {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-light);
  text-transform: uppercase;
}

.meta-separator {
  color: var(--color-primary);
  opacity: 0.4;
}

/* ===================================
   SECTION HEADER (Fox Newspaper)
   ================================== */

/* Full-width divider line — spans the entire viewport */
.section-divider-full {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 1px;
  background: var(--border-dark);
  margin-top: 1rem;
}

.category-section,
.opinion-section,
.interview-section,
.latest-section {
  padding: 0;
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 0.75rem;
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
  padding-bottom: 0.6rem;
  /* Thick underline — contained within the section-container */
  border-bottom: 4px solid var(--text-primary);
  width: 100%;
}

.section-link {
  position: absolute;
  right: 0;
  top: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-base);
}

.section-link:hover {
  color: var(--color-primary);
}

/* ===================================
   ARTICLE CARDS GRID
   ================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
}

/* Vertical dividers */
.articles-grid-divided {
  gap: 0;
}

.articles-grid-divided .article-card {
  padding: 0 1.5rem;
  border-left: 1px solid var(--border-medium);
}

.articles-grid-divided .article-card:first-child {
  padding-left: 0;
  border-left: none;
}

.articles-grid-divided .article-card:last-child {
  padding-right: 0;
}

.article-card {
  display: flex;
  flex-direction: column;
}

.article-card-image {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 0.4rem;
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-bottom: 0.75rem;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card-body {
  display: flex;
  flex-direction: column;
}

.article-card-body .category-tag {
  margin-bottom: 0.25rem;
}

.article-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.article-card-title a {
  transition: color var(--transition-base);
}

.article-card-title a:hover {
  color: var(--color-primary);
}

.article-card-excerpt {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.article-card-meta {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-top: auto;
}

/* ===================================
   OPINION SECTION
   ================================== */
.opinion-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.opinion-image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0.25rem;
}

.opinion-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.opinion-content-col {
  padding-top: 1rem;
}

.opinion-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.opinion-title a {
  transition: color var(--transition-base);
}

.opinion-title a:hover {
  color: var(--color-primary);
}

.opinion-excerpt {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.opinion-meta {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.opinion-read-more {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
  text-transform: uppercase;
  transition: all var(--transition-base);
}

.opinion-read-more:hover {
  background: var(--text-primary);
  color: var(--bg-main);
}

/* ===================================
   INTERVIEW SECTION (hero overlay)
   ================================== */
.interview-hero {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  aspect-ratio: 16 / 7;
  overflow: hidden;
}

.interview-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) brightness(0.5);
}

.interview-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.interview-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 650px;
  margin-bottom: 0.75rem;
}

.interview-hero-meta {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.interview-hero-excerpt {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
  max-width: 550px;
  margin-bottom: 1.5rem;
}

.interview-read-more {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
  border: 2px solid #fff;
  text-transform: uppercase;
  transition: all var(--transition-base);
}

.interview-read-more:hover {
  background: #fff;
  color: var(--text-primary);
}

/* ===================================
   LATEST SECTION (horizontal cards + sidebar)
   ================================== */
.latest-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
}

.latest-main {
  display: flex;
  flex-direction: column;
}

.latest-article {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.latest-article-image {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 0.25rem;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.latest-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-article-body {
  display: flex;
  flex-direction: column;
}

.latest-article-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.latest-article-title a {
  transition: color var(--transition-base);
}

.latest-article-title a:hover {
  color: var(--color-primary);
}

.latest-article-date {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-light);
  text-transform: uppercase;
}

.latest-article-excerpt {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0.5rem 0 0.75rem;
}

.latest-separator {
  border: none;
  height: 1px;
  background: var(--border-medium);
  margin: 1.5rem 0;
}

/* Latest sidebar */
.latest-sidebar {
  border-left: 1px solid var(--border-medium);
  padding-left: 2rem;
}

.latest-sidebar-header {
  display: inline-block;
  padding: 0.35rem 1rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #fff;
  background: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.latest-sidebar-img {
  margin-bottom: 1rem;
}

.latest-sidebar-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.latest-sidebar-title a {
  transition: color var(--transition-base);
}

.latest-sidebar-title a:hover {
  color: var(--color-primary);
}

.latest-sidebar-excerpt {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ===================================
   RESPONSIVE
   ================================== */

@media (max-width: 1200px) {
  .hero-container {
    grid-template-columns: 240px 1fr 240px;
    gap: 2rem;
    padding: 0 2rem;
  }

  .header-utility-inner,
  .nav-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .masthead {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .section-container {
    padding: 0 2rem;
  }

  .mini-nav-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .hero-featured {
    grid-column: 1 / -1;
    order: -1;
  }

  .hero-sidebar-left {
    border-right: none;
    padding-right: 0;
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
  }

  .hero-sidebar-right {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
  }

  .masthead-logo-main {
    height: clamp(40px, 7vw, 65px);
  }

  .articles-grid,
  .articles-grid-divided {
    grid-template-columns: repeat(2, 1fr);
  }

  .articles-grid-divided .article-card:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }

  .opinion-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .opinion-image-wrapper {
    aspect-ratio: 16 / 9;
  }

  .latest-layout {
    grid-template-columns: 1fr;
  }

  .latest-sidebar {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border-medium);
    padding-top: 2rem;
    margin-top: 1rem;
  }

  .latest-article {
    grid-template-columns: 200px 1fr;
  }
}

@media (max-width: 768px) {
  .header-utility-inner {
    padding: 0.5rem 1.5rem;
  }

  .date-text {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .masthead {
    padding: 1rem 1.5rem 0.75rem;
  }

  .masthead-logo-main {
    height: 40px;
  }

  .masthead-subtitle {
    font-size: 0.9rem;
  }

  .masthead-tagline {
    font-size: 0.5rem;
    letter-spacing: 0.12em;
  }

  .nav-inner {
    justify-content: center;
    padding: 0 1.5rem;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(248, 246, 242, 0.98);
    border-bottom: 2px solid var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
    z-index: 100;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }

  .nav-link::after {
    display: none;
  }

  .hero-blog {
    padding: 1.5rem 0 3rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
  }

  .hero-sidebar-left,
  .hero-sidebar-right {
    flex-direction: row;
    gap: 1.5rem;
  }

  .sidebar-separator {
    display: none;
  }

  .visual-article {
    flex: 1;
    min-width: 0;
  }

  .featured-title {
    font-size: 1.5rem;
  }

  .section-container {
    padding: 0 1.5rem;
  }

  .articles-grid,
  .articles-grid-divided {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .articles-grid-divided .article-card {
    padding: 0;
    border-left: none;
  }

  .mini-nav-links {
    display: none;
  }

  .mini-nav-inner {
    padding: 0.5rem 1.5rem;
  }

  .interview-hero {
    aspect-ratio: 16 / 9;
  }

  .interview-hero-title {
    font-size: 1.3rem;
  }

  .interview-hero-excerpt {
    font-size: 0.8rem;
  }

  .latest-article {
    grid-template-columns: 140px 1fr;
    gap: 1rem;
  }

  .latest-article-title {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .header-utility-inner {
    padding: 0.5rem 1rem;
  }

  .header-social {
    gap: 0.25rem;
  }

  .subscribe-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.6rem;
  }

  .masthead {
    padding: 0.75rem 1rem;
  }

  .masthead-logo-main {
    height: 32px;
  }

  .masthead-subtitle {
    font-size: 0.75rem;
  }

  .masthead-tagline {
    font-size: 0.45rem;
    letter-spacing: 0.08em;
  }

  .hero-container {
    padding: 0 1rem;
  }

  .hero-sidebar-left,
  .hero-sidebar-right {
    flex-direction: column;
  }

  .featured-title {
    font-size: 1.35rem;
  }

  .featured-excerpt {
    font-size: 0.85rem;
  }

  .section-container {
    padding: 0 1rem;
  }

  .articles-grid,
  .articles-grid-divided {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-header {
    margin-top: 0;
  }

  .interview-hero {
    aspect-ratio: 4 / 3;
  }

  .interview-hero-overlay {
    padding: 1.5rem;
  }

  .interview-hero-title {
    font-size: 1.1rem;
  }

  .interview-hero-excerpt {
    display: none;
  }

  .latest-article {
    grid-template-columns: 1fr;
  }

  .latest-article-image {
    aspect-ratio: 16 / 9;
  }
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

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

/* ===================================
   FOOTER (light mode adaptation)
   ================================== */
.footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2rem;
}

/* Marquee ticker */
.footer-marquee {
  overflow: hidden;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marqueeScroll 40s linear infinite;
}

.marquee-content {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
  padding-right: 1rem;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-33.333%);
  }
}

/* Footer container */
.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3.5rem 3rem 2rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Brand column */
.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: inline-block;
  cursor: pointer;
  margin-bottom: 0.5rem;
  transition: opacity var(--transition-base);
}

.footer-logo:hover {
  opacity: 0.7;
}

.footer-logo-img {
  height: 50px;
  width: auto;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer-description {
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-base);
}

.footer-social-link:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(176, 36, 255, 0.25);
}

/* Footer columns */
.footer-col-title {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav li a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  transition: all var(--transition-base);
}

.footer-nav li a:hover {
  color: var(--color-primary);
  padding-left: 6px;
}

/* Newsletter */
.footer-newsletter-desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1rem;
}

.footer-newsletter-form {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
}

.footer-newsletter-input {
  flex: 1;
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  font-family: var(--font-sans);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-right: none;
  color: #fff;
  outline: none;
  transition: border-color var(--transition-base);
}

.footer-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.footer-newsletter-input:focus {
  border-color: var(--color-primary);
}

.footer-newsletter-btn {
  padding: 0.55rem 1rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-family: var(--font-sans);
  background: var(--color-primary);
  color: #fff;
  border: 1px solid var(--color-primary);
  cursor: pointer;
  transition: all var(--transition-base);
}

.footer-newsletter-btn:hover {
  background: var(--color-primary-dark);
}

/* Location info */
.footer-location-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-location-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-location-row svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
}

.back-to-top {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  font-family: var(--font-sans);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-base);
}

.back-to-top:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.footer-legal {
  display: flex;
  gap: 0.5rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.35);
  transition: color var(--transition-base);
}

.footer-legal a:hover {
  color: var(--color-primary);
}

/* Footer responsive */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .footer-container {
    padding: 2.5rem 1.5rem 1.5rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .footer-brand .footer-logo {
    display: flex;
    justify-content: center;
  }

  .footer-tagline {
    text-align: center;
  }

  .footer-description {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-col {
    text-align: center;
    align-items: center;
  }

  .footer-col-title {
    text-align: center;
  }

  .footer-nav {
    align-items: center;
  }

  .footer-newsletter-form {
    justify-content: center;
  }

  .footer-location-info {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 2rem 1rem 1rem;
  }
}
/* ===================================
   ARTICLE SINGLE PAGE
   (from [slug].astro scoped styles)
   ================================== */

.article-single-hero {
  position: relative;
  width: 100%;
  max-height: 520px;
  overflow: hidden;
}

.article-single-hero-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.article-single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
}

.article-single-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem;
}

.article-single-header {
  text-align: center;
  padding: 3rem 0 2rem;
  border-bottom: 2px solid var(--text-primary, #1A1A1A);
  margin-bottom: 2.5rem;
}

.article-single-header .category-tag {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
}

.article-single-title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-primary, #1A1A1A);
  margin-bottom: 1.25rem;
}

.article-single-meta {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted, #999);
}

.article-single-meta .meta-separator {
  margin: 0 0.5rem;
  opacity: 0.4;
}

.article-single-body {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-secondary, #3A3A3A);
  padding-bottom: 3rem;
}

.article-single-body h2 {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary, #1A1A1A);
  margin: 2.5rem 0 1rem;
  line-height: 1.25;
}

.article-single-body h3 {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary, #1A1A1A);
  margin: 2rem 0 0.75rem;
}

.article-single-body p {
  margin-bottom: 1.5rem;
}

.article-single-body img {
  width: 100%;
  height: auto;
  border-radius: 0.4rem;
  margin: 2rem 0;
}

.article-single-body blockquote {
  border-left: 4px solid var(--color-primary, #B024FF);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  font-style: italic;
  color: var(--text-muted, #666);
  background: var(--bg-card, #fff);
  border-radius: 0 0.25rem 0.25rem 0;
}

.article-single-body ul,
.article-single-body ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.article-single-body li {
  margin-bottom: 0.5rem;
  list-style: disc;
}

.article-single-body a {
  color: var(--color-primary, #B024FF);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-single-body a:hover {
  opacity: 0.8;
}

.article-single-body pre {
  background: var(--text-primary, #1A1A1A);
  color: #e0e0e0;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2rem 0;
  font-size: 0.88rem;
  line-height: 1.6;
}

.article-single-body code {
  background: rgba(176, 36, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 0.2rem;
  font-size: 0.9em;
}

.article-single-body pre code {
  background: none;
  padding: 0;
}

.article-single-body figure {
  margin: 2rem 0;
}

.article-single-body figcaption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted, #999);
  margin-top: 0.5rem;
}

.article-single-footer {
  border-top: 1px solid var(--border-light, #e8e4df);
  padding: 2rem 0 4rem;
}

.article-back-link {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted, #999);
  transition: color 0.3s ease;
}

.article-back-link:hover {
  color: var(--color-primary, #B024FF);
}

@media (max-width: 768px) {
  .article-single-hero-img {
    height: 300px;
  }
  .article-single-container {
    padding: 0 1.25rem;
  }
  .article-single-body {
    font-size: 1rem;
  }
}

/* ===================================
   ADMIN PILL & BREADCRUMBS FIX
   ================================== */
/* Ocultar las breadcrumbs inyectadas por RankMath para que no rompan el diseño */
.breadcrumbs {
  display: none !important;
}

/* Botón de admin en el Header */
.header-admin-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  background: rgba(176, 36, 255, 0.08);
  color: var(--color-primary);
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  text-decoration: none;
  border: 1px solid rgba(176, 36, 255, 0.15);
}

.header-admin-pill:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(176, 36, 255, 0.25);
}

.header-admin-pill svg {
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.header-admin-pill:hover svg {
  transform: rotate(90deg);
}

