/*
Theme Name: La Vuelta News Modern
Description: Tema moderno y elegante de WordPress para noticias de espectáculos y farándula dominicana
Version: 3.8
Author: La Vuelta News
*/

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Source+Sans+Pro:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap");

:root {
  --primary-color: #e91e63;
  --primary-light: #f8bbd9;
  --primary-dark: #ad1457;
  --secondary-color: #6366f1;
  --accent-color: #f59e0b;
  --success-color: #10b981;
  --white: #ffffff;
  --light-gray: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --gradient-primary: linear-gradient(135deg, #e91e63 0%, #ad1457 100%);
  --gradient-secondary: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gradient-light: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans Pro", sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--light-gray);
  overflow-x: hidden;
  font-weight: 400;
}

/* Loading Animation */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--gray-200);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Breaking News Banner */
.breaking-news {
  background: var(--primary-color); /* Fondo #e91e63 */
  color: white;
  padding: 12px 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.breaking-news::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.breaking-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.breaking-icon {
  animation: pulse 2s infinite;
  font-size: 16px;
}

/* Header Styles - MODERN */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-xl);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.site-logo {
  position: relative;
  z-index: 2;
}

.site-logo img {
  width: 150px;
  height: 100px;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 12px rgba(233, 30, 99, 0.2));
}

.site-logo:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 8px 20px rgba(233, 30, 99, 0.3));
}

/* Navigation - MODERN STYLE */
.main-navigation {
  position: relative;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 0;
  background: var(--white);
  border-radius: 50px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  color: var(--text-primary);
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 25px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.main-navigation a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-color); /* Fondo #e91e63 al pasar el mouse */
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 25px;
  z-index: -1;
}

.main-navigation a:hover::before {
  opacity: 1;
}

.main-navigation a:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Dropdown Menus */
.main-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%; /* Posiciona el submenú debajo del elemento padre */
  left: 0;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  min-width: 200px;
  padding: 10px 0;
  z-index: 999;
  flex-direction: column; /* Para que los elementos del submenú se apilen verticalmente */
}

.main-navigation ul li:hover > ul {
  display: flex; /* Muestra el submenú al pasar el ratón */
}

.main-navigation ul ul li {
  border-bottom: none; /* Elimina el borde inferior de los elementos del submenú */
  padding: 0;
}

.main-navigation ul ul li a {
  padding: 10px 20px; /* Ajusta el padding para los elementos del submenú */
  border-radius: 0; /* Elimina el border-radius para los elementos del submenú */
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
}

.main-navigation ul ul li a:hover {
  background: var(--primary-color); /* Fondo #e91e63 al pasar el mouse en submenú */
  color: white;
  transform: none; /* Elimina la transformación en hover para submenú */
  box-shadow: none; /* Elimina la sombra en hover para submenú */
  border-radius: 5px; /* Pequeño border-radius para elementos de submenú */
}

/* Header Actions (for search and mobile toggle) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem; /* Espacio entre el buscador y el botón de menú móvil */
}

/* Search Form Styling */
.header-search .search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--light-gray);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  padding: 5px;
  transition: all 0.3s ease;
}

.header-search .search-form:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.header-search .search-field {
  border: none;
  background: transparent;
  padding: 8px 15px;
  font-size: 15px;
  color: var(--text-primary);
  font-family: "Source Sans Pro", sans-serif;
  width: 180px; /* Ancho por defecto */
  transition: width 0.3s ease;
}

.header-search .search-field:focus {
  outline: none;
  width: 220px; /* Expandir al enfocar */
}

.header-search .search-submit {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  letter-spacing: 0.5px;
}

.header-search .search-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Hide screen reader text for search label */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

/* Header Banner */
.header-banner {
  max-width: 1400px;
  margin: 1.5rem auto; /* Espacio arriba y abajo del banner */
  padding: 0 2rem;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  background: var(--white); /* Fondo por si la imagen no carga */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px; /* Altura mínima para el contenedor del banner */
}

.header-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 20px; /* Asegura que la imagen también tenga bordes redondeados */
}

/* Main Content */
.site-main {
  max-width: 1400px;
  margin: 3rem auto 0;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 380px; /* Por defecto con sidebar */
  gap: 4rem;
  position: relative;
}

/* Layout para páginas sin sidebar */
body.page .site-main {
  grid-template-columns: 1fr; /* Ocupa todo el ancho */
}

/* Articles Section */
.articles-section {
  margin-bottom: 4rem;
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 100px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-title::before {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 20px;
  width: 60px;
  height: 2px;
  background: var(--gradient-secondary);
  border-radius: 1px;
}

/* Article Grid - MODERN CARDS */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 3rem;
}

.article-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-light);
}

.article-image-container {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.article-card:hover .article-image {
  transform: scale(1.1);
}

.article-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(233, 30, 99, 0.8), rgba(99, 102, 241, 0.6));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-card:hover .article-overlay {
  opacity: 1;
}

.read-more-btn {
  background: var(--primary-color); /* Fondo #e91e63 por defecto */
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--primary-color); /* Borde del mismo color */
  letter-spacing: 0.5px;
}

.read-more-btn:hover {
  background: var(--primary-dark); /* Fondo más oscuro al pasar el mouse */
  color: white;
  border-color: var(--primary-dark);
  transform: translateY(0);
}

.article-content {
  padding: 2.5rem;
  position: relative;
}

.article-category {
  background: var(--gradient-accent);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: inline-block;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

.article-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.4;
  transition: color 0.3s ease;
  letter-spacing: -0.01em;
}

.article-title a {
  color: inherit;
  text-decoration: none;
}

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

.article-excerpt {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
  font-size: 1rem;
  font-weight: 400;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-light);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-family: "Poppins", sans-serif;
}

.meta-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-secondary);
}

.meta-author::before {
  content: "✍️";
  font-size: 16px;
}

.meta-date {
  font-weight: 500;
}

.meta-date::before {
  content: "📅";
  margin-right: 6px;
}

/* Sidebar - MODERN STYLE */
.sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.widget {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid var(--border-color);
}

.widget:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.widget-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
  letter-spacing: -0.01em;
}

.widget-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.widget ul {
  list-style: none;
}

.widget li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.widget li:hover {
  padding-left: 12px;
  border-left: 3px solid var(--primary-color);
}

.widget a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Source Sans Pro", sans-serif;
}

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

.widget a::before {
  content: "→";
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  color: var(--primary-color);
  font-weight: 600;
}

.widget a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Social Widget */
.social-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 15px;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  font-size: 14px;
  background: var(--primary-color); /* Fondo #e91e63 por defecto */
  color: white;
}

.social-link.facebook {
  background: #1877f2; /* Mantener colores de marca para redes sociales */
}

.social-link.instagram {
  background: #e4405f;
}

.social-link.twitter {
  background: #1da1f2;
}

.social-link.youtube {
  background: #ff0000;
}

.social-link:hover {
  background: var(--primary-dark); /* Fondo más oscuro al pasar el mouse */
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-xl);
}

/* Newsletter Widget */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.newsletter-form input {
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 14px;
  font-family: "Source Sans Pro", sans-serif;
  transition: all 0.3s ease;
  background: var(--light-gray);
  color: var(--text-primary);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.newsletter-form button {
  background: var(--primary-color); /* Fondo #e91e63 por defecto */
  color: white;
  border: none;
  padding: 14px 18px;
  border-radius: 12px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  letter-spacing: 0.5px;
}

.newsletter-form button:hover {
  background: var(--primary-dark); /* Fondo más oscuro al pasar el mouse */
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Footer - MODERN */
.site-footer {
  background: var(--white);
  color: var(--text-primary);
  margin-top: 6rem;
  position: relative;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.footer-section h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.footer-section p,
.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1.8;
  transition: color 0.3s ease;
  font-family: "Source Sans Pro", sans-serif;
}

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

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.8rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
  background: var(--light-gray);
  font-family: "Poppins", sans-serif;
  font-weight: 500;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none; /* Se controla con JS para mostrar en móvil */
  background: var(--primary-color); /* Fondo #e91e63 por defecto */
  color: white;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  font-family: "Poppins", sans-serif;
}

.mobile-menu-toggle:hover {
  background: var(--primary-dark); /* Fondo más oscuro al pasar el mouse */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .site-main {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .article-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }

  .site-logo img {
    width: 130px;
    height: 85px;
  }

  .section-title {
    font-size: 3rem;
  }

  .header-banner {
    padding: 0 1rem;
    margin: 1rem auto;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block; /* Mostrar en móvil */
  }

  .main-navigation ul {
    display: none; /* Oculto por defecto en móvil */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    margin-top: 1rem;
    border: 1px solid var(--border-color);
  }

  .main-navigation.mobile-menu-open ul {
    display: flex; /* Mostrar cuando la clase está activa */
  }

  .main-navigation a {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
  }

  /* Submenús en móvil */
  .main-navigation ul ul {
    position: static; /* Eliminar posicionamiento absoluto */
    display: none; /* Ocultar por defecto */
    background: var(--gray-100); /* Fondo diferente para submenús en móvil */
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 1rem;
    margin-top: 0.5rem;
  }

  .main-navigation ul li.menu-item-has-children > a {
    position: relative;
    padding-right: 30px; /* Espacio para el icono de toggle */
  }

  .main-navigation ul li.menu-item-has-children > a::after {
    content: "+"; /* Icono de toggle */
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    transition: transform 0.3s ease;
  }

  .main-navigation ul li.menu-item-has-children.menu-item-open > a::after {
    content: "-";
    transform: translateY(-50%) rotate(180deg);
  }

  .main-navigation ul li.menu-item-has-children.menu-item-open > ul {
    display: flex; /* Mostrar submenú cuando el padre está abierto */
  }

  .site-logo img {
    width: 120px;
    height: 80px;
  }

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

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

  .site-main {
    padding: 0 1rem;
    margin-top: 2rem;
    /* Para posts individuales en móvil, la sidebar se apila debajo */
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2.5rem;
  }

  /* Responsive adjustments for search */
  .header-actions {
    flex-grow: 1; /* Permite que las acciones tomen el espacio disponible */
    justify-content: flex-end; /* Empuja el botón de menú móvil a la derecha */
  }

  .header-search {
    display: none; /* Oculta el formulario de búsqueda en pantallas móviles por defecto */
  }
}

/* Animations */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Additional Modern Elements */
.post-count {
  background: var(--gradient-secondary);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
  font-family: "Poppins", sans-serif;
}

.trending-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gradient-accent);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
  font-family: "Poppins", sans-serif;
}

.share-buttons {
  display: flex;
  gap: 8px;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.share-btn {
  background: var(--primary-color); /* Fondo #e91e63 por defecto */
  color: white;
  border: 1px solid var(--primary-color);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
}

.share-btn:hover {
  background: var(--primary-dark); /* Fondo más oscuro al pasar el mouse */
  color: white;
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gray-200);
  z-index: 9999;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  transition: width 0.3s ease;
}

/* Estilos para la imagen destacada en el artículo */
.post-featured-image {
  margin-bottom: 3rem; /* Espacio debajo de la imagen */
  border-radius: 20px; /* Bordes redondeados */
  overflow: hidden; /* Asegura que la imagen respete el border-radius */
  box-shadow: var(--shadow-lg); /* Sombra para darle profundidad */
  border: 1px solid var(--border-color); /* Borde sutil */
}

.post-featured-image img {
  width: 100%; /* Ocupa todo el ancho del contenedor */
  height: auto; /* Mantiene la proporción */
  display: block; /* Elimina espacio extra debajo de la imagen */
  object-fit: cover; /* Asegura que la imagen cubra el área sin distorsionarse */
}

/* Estilos para preservar espacios y tabulaciones */
.post-content pre,
.comment-content pre,
.page-content pre {
  background-color: var(--gray-100);
  padding: 1.5rem;
  border-radius: 10px;
  overflow-x: auto;
  font-family: "Space Mono", monospace; /* Una fuente monoespaciada para código */
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap; /* Preserva espacios y saltos de línea */
  word-wrap: break-word; /* Rompe palabras largas si es necesario */
}

.post-content code,
.comment-content code,
.page-content code {
  font-family: "Space Mono", monospace;
  background-color: var(--gray-200);
  padding: 0.2em 0.4em;
  border-radius: 5px;
  font-size: 0.9em;
}

/* Asegurar que los párrafos respeten el formato básico */
.post-content p,
.comment-content p,
.page-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  text-align: justify; /* Opcional: justificar texto para una apariencia más formal */
}

/* Estilo específico para el botón del newsletter en el footer */
.footer-newsletter button {
  background-color: var(--primary-color); /* Color sólido #e91e63 */
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.5px;
}

.footer-newsletter button:hover {
  background-color: var(--primary-dark); /* Color más oscuro al pasar el mouse */
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Eliminación de estilos de comentarios */
/* Se han eliminado todas las reglas CSS relacionadas con #comments, .comment-list, .comment, etc. */
