  /* Variables CSS - Paleta de colores inspirada en TechCrunch/The Verge */
  :root {
      --primary-color: #0056ff;
      --primary-dark: #0041c4;
      --secondary-color: #f8f9fa;
      --dark-bg: #121212;
      --light-bg: #ffffff;
      --card-bg: #ffffff;
      --text-dark: #121212;
      --text-light: #f8f9fa;
      --text-gray: #6c757d;
      --text-muted: #8a8d91;
      --border-color: #e0e0e0;
      --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.4);
      --radius: 8px;
      --header-height: 70px;
      --transition: 0.3s ease;
  }

  /* Dark Mode Variables */
  body.dark-mode {
      --primary-color: #3b82f6;
      /* Lighter blue for dark mode */
      --primary-dark: #60a5fa;
      --secondary-color: #1f2937;
      --dark-bg: #000000;
      --light-bg: #121212;
      --card-bg: #1e1e1e;
      --text-dark: #f3f4f6;
      --text-light: #e5e7eb;
      --text-gray: #9ca3af;
      --text-muted: #6b7280;
      --border-color: #374151;
      --shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
      --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.6);
  }

  /* Reset y estilos base */
  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }

  html {
      scroll-behavior: smooth;
  }

  body {
      font-family: 'Inter', sans-serif;
      line-height: 1.6;
      color: var(--text-dark);
      background-color: var(--light-bg);
      overflow-x: hidden;
      transition: background-color 0.3s ease, color 0.3s ease;
  }

  img {
      max-width: 100%;
      height: auto;
      display: block;
  }

  ul {
      list-style: none;
  }

  a {
      text-decoration: none;
      color: inherit;
      transition: var(--transition);
  }

  button {
      cursor: pointer;
      font-family: inherit;
      border: none;
      background: none;
  }

  .container {
      width: 100%;
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 20px;
  }

  /* Botones */
  .btn {
      display: inline-block;
      padding: 12px 24px;
      border-radius: var(--radius);
      font-weight: 600;
      font-size: 0.95rem;
      text-decoration: none;
      text-align: center;
      cursor: pointer;
      transition: var(--transition);
      border: none;
      font-family: inherit;
  }

  .btn-primary {
      background-color: var(--primary-color);
      color: var(--light-bg);
  }

  .btn-primary:hover {
      background-color: var(--primary-dark);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 86, 255, 0.3);
  }

  .btn-yellow {
      background-color: #FFD700;
      color: #333;
      font-weight: 700;
  }

  .btn-yellow:hover {
      background-color: #FFC700;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
  }

  /* Utilidades */
  .hidden {
      display: none !important;
  }

  .fade-in {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .fade-in.visible {
      opacity: 1;
      transform: translateY(0);
  }

  .slide-up {
      opacity: 0;
      transform: translateY(40px);
      transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .slide-up.visible {
      opacity: 1;
      transform: translateY(0);
  }

  /* Header */
  header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: var(--header-height);
      background-color: var(--light-bg);
      box-shadow: var(--shadow);
      z-index: 1000;
  }

  .header-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 100%;
  }

  .logo {
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 700;
      font-size: 1.8rem;
      color: var(--primary-color);
      display: flex;
      align-items: center;
      gap: 8px;
  }

  .logo i {
      font-size: 1.6rem;
  }

  /* Navegación Desktop */
  .nav-desktop {
      display: flex;
      align-items: center;
      gap: 30px;
  }

  .nav-links {
      display: flex;
      gap: 25px;
  }

  .nav-link {
      font-weight: 600;
      font-size: 0.95rem;
      color: var(--text-dark);
      position: relative;
      padding: 5px 0;
  }

  .nav-link:hover {
      color: var(--primary-color);
  }

  .nav-link::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 2px;
      background-color: var(--primary-color);
      transition: width 0.3s ease;
  }

  .nav-link:hover::after {
      width: 100%;
  }

  /* Barra de búsqueda */
  .search-container {
      position: relative;
      width: 300px;
  }

  .search-input {
      width: 100%;
      padding: 10px 15px 10px 40px;
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      font-size: 0.95rem;
      background-color: var(--secondary-color);
      transition: var(--transition);
  }

  .search-input:focus {
      outline: none;
      border-color: var(--primary-color);
      background-color: var(--light-bg);
      box-shadow: 0 0 0 3px rgba(0, 86, 255, 0.1);
  }

  .search-icon {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-gray);
  }

  /* Botón Dark Mode */
  .theme-toggle {
      background: none;
      border: none;
      color: var(--text-dark);
      font-size: 1.2rem;
      cursor: pointer;
      padding: 10px;
      border-radius: 50%;
      transition: var(--transition);
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .theme-toggle:hover {
      background-color: var(--secondary-color);
      transform: rotate(15deg);
  }

  /* Menú hamburger móvil */
  .hamburger-menu {
      display: none;
      background: transparent;
      border: none;
      cursor: pointer;
      font-size: 1.5rem;
      color: var(--text-dark);
      z-index: 1002;
  }

  /* Remove old span styles */

  /* Navegación móvil */
  .nav-mobile {
      position: fixed;
      top: var(--header-height);
      left: 0;
      width: 100%;
      background-color: var(--light-bg);
      padding: 20px;
      box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
      transform: translateY(-150%);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: transform 0.4s ease, opacity 0.3s ease, visibility 0.4s;
      z-index: 999;
  }

  .nav-mobile.active {
      transform: translateY(0);
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
  }

  .mobile-links {
      display: flex;
      flex-direction: column;
      gap: 15px;
  }

  .mobile-link {
      font-weight: 600;
      padding: 12px 0;
      border-bottom: 1px solid var(--border-color);
  }

  /* Main content */
  main {
      margin-top: var(--header-height);
      padding: 40px 0;
  }

  /* Hero Section */
  .hero {
      margin-bottom: 50px;
  }



  .category-filters {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
  }

  .filter-btn {
      padding: 10px 20px;
      background-color: var(--secondary-color);
      border-radius: 50px;
      font-weight: 600;
      font-size: 0.9rem;
      color: var(--text-dark);
      transition: var(--transition);
      border: 1px solid transparent;
  }

  .filter-btn:hover {
      background-color: #e9ecef;
  }

  .filter-btn.active {
      background-color: var(--primary-color);
      color: var(--light-bg);
      border-color: var(--primary-color);
  }

  /* Grid de noticias */
  .news-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
      gap: 30px;
      margin-bottom: 50px;
  }

  .news-card {
      background-color: var(--card-bg);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow);
      transition: var(--transition);
      opacity: 0;
      transform: translateY(20px);
  }

  .news-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-hover);
  }

  .news-card.visible {
      opacity: 1;
      transform: translateY(0);
  }

  .card-image {
      width: 100%;
      height: 200px;
      object-fit: cover;
      transition: transform 0.5s ease;
  }

  .news-card:hover .card-image {
      transform: scale(1.03);
  }

  .card-content {
      padding: 25px;
  }

  .card-category {
      display: inline-block;
      padding: 5px 12px;
      background-color: var(--secondary-color);
      border-radius: 50px;
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--text-dark);
      margin-bottom: 12px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
  }

  .card-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.4rem;
      font-weight: 700;
      line-height: 1.3;
      margin-bottom: 12px;
      color: var(--text-dark);
  }

  .card-excerpt {
      color: var(--text-gray);
      margin-bottom: 20px;
      font-size: 0.95rem;
      line-height: 1.6;
  }

  .card-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.85rem;
      color: var(--text-muted);
  }

  .card-date {
      color: var(--text-muted);
  }

  .card-bookmark-btn {
      position: absolute;
      top: 15px;
      right: 15px;
      width: 35px;
      height: 35px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.9);
      border: none;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      color: #ccc;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.2s ease;
      z-index: 5;
  }

  .card-bookmark-btn:hover {
      transform: scale(1.1);
      color: var(--primary-color);
  }

  .card-bookmark-btn.active {
      color: #ff3d00;
  }

  .card-date {
      display: flex;
      align-items: center;
      gap: 5px;
  }

  /* Botón de carga */
  .load-more-container {
      text-align: center;
      margin: 40px 0 60px;
  }

  .load-more-btn {
      padding: 14px 32px;
      background-color: var(--primary-color);
      color: var(--light-bg);
      border-radius: var(--radius);
      font-weight: 600;
      font-size: 1rem;
      transition: var(--transition);
  }

  .load-more-btn:hover {
      background-color: var(--primary-dark);
      transform: translateY(-2px);
  }

  /* Footer */
  footer {
      background-color: var(--dark-bg);
      color: var(--text-light);
      padding: 60px 0 30px;
  }

  .footer-container {
      display: flex;
      flex-direction: column;
      align-items: center;
  }

  .footer-logo {
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 700;
      font-size: 2rem;
      color: var(--light-bg);
      margin-bottom: 20px;
  }

  .footer-tagline {
      color: var(--text-muted);
      text-align: center;
      max-width: 600px;
      margin-bottom: 40px;
      font-size: 1.1rem;
  }

  .footer-social {
      display: flex;
      gap: 20px;
      margin-bottom: 40px;
  }

  .social-link {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      background-color: rgba(255, 255, 255, 0.1);
      border-radius: 50%;
      font-size: 1.2rem;
      transition: var(--transition);
  }

  .social-link:hover {
      background-color: var(--primary-color);
      transform: translateY(-3px);
  }

  .footer-copyright {
      color: var(--text-muted);
      font-size: 0.9rem;
      text-align: center;
      padding-top: 30px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      width: 100%;
  }

  /* Mensaje de no resultados */
  .no-results {
      grid-column: 1 / -1;
      text-align: center;
      padding: 60px 20px;
  }

  .no-results-title {
      font-size: 1.8rem;
      margin-bottom: 15px;
      color: var(--text-dark);
  }

  .no-results-text {
      color: var(--text-gray);
      max-width: 500px;
      margin: 0 auto;
  }

  /* Media queries para responsividad */
  @media (max-width: 1024px) {

      .card-content {
          padding: 20px;
      }
  }

  /* --- Estilos para Páginas Específicas --- */

  /* Estilos Generales de Página */
  .page-header {
      padding-top: 40px;
      margin-bottom: 40px;
      text-align: center;
  }

  .page-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 2.5rem;
      font-weight: 700;
      color: var(--text-dark);
      margin-bottom: 15px;
  }

  .page-description {
      color: var(--text-gray);
      max-width: 700px;
      margin: 0 auto;
      font-size: 1.1rem;
  }

  /* Página de Categorías */
  .categories-grid-large {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 30px;
      margin-bottom: 60px;
  }

  .category-card-large {
      position: relative;
      height: 250px;
      border-radius: var(--radius);
      overflow: hidden;
      cursor: pointer;
      transition: var(--transition);
      box-shadow: var(--shadow);
      text-decoration: none;
  }

  .category-card-large:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-hover);
  }

  .category-card-large img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.6s ease;
  }

  .category-card-large:hover img {
      transform: scale(1.1);
  }

  .category-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 25px;
  }

  .category-name-large {
      color: var(--text-light);
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.8rem;
      font-weight: 700;
      margin-bottom: 5px;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  .category-count {
      color: rgba(255, 255, 255, 0.9);
      font-size: 0.95rem;
      font-weight: 500;
  }

  /* Página Acerca */
  .about-content {
      background-color: var(--card-bg);
      padding: 50px;
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      margin-bottom: 60px;
  }

  .about-text h3 {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.8rem;
      margin-bottom: 20px;
      color: var(--text-dark);
  }

  .about-text p {
      margin-bottom: 20px;
      font-size: 1.05rem;
      color: var(--text-dark);
      line-height: 1.8;
  }

  .team-section {
      margin-top: 60px;
  }

  .team-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 30px;
      margin-top: 40px;
  }

  .team-member {
      background-color: var(--card-bg);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow);
      text-align: center;
      transition: var(--transition);
  }

  .team-member:hover {
      transform: translateY(-5px);
  }

  .member-img {
      width: 100%;
      height: 280px;
      object-fit: cover;
  }

  .member-info {
      padding: 25px 20px;
  }

  .member-name {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.4rem;
      font-weight: 700;
      margin-bottom: 5px;
      color: var(--text-dark);
  }

  .member-role {
      color: var(--primary-color);
      font-weight: 600;
      font-size: 0.9rem;
      margin-bottom: 10px;
      display: block;
  }

  /* Página Contacto */
  .contact-wrapper {
      display: grid;
      grid-template-columns: 1fr 1.5fr;
      gap: 50px;
      background-color: var(--card-bg);
      border-radius: var(--radius);
      padding: 50px;
      box-shadow: var(--shadow);
      margin-bottom: 50px;
  }

  .contact-info-item {
      display: flex;
      align-items: flex-start;
      gap: 20px;
      margin-bottom: 35px;
  }

  .contact-icon {
      width: 50px;
      height: 50px;
      background-color: rgba(0, 86, 255, 0.1);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      color: var(--primary-color);
      flex-shrink: 0;
  }

  .info-content h3 {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.2rem;
      margin-bottom: 5px;
      color: var(--text-dark);
  }

  .info-content p {
      color: var(--text-gray);
      line-height: 1.5;
  }

  .contact-form .form-group {
      margin-bottom: 25px;
  }

  .contact-form label {
      display: block;
      margin-bottom: 8px;
      font-weight: 600;
      color: var(--text-dark);
      font-size: 0.95rem;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
      width: 100%;
      padding: 12px 15px;
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      font-family: inherit;
      font-size: 1rem;
      background-color: var(--secondary-color);
      transition: var(--transition);
  }

  .contact-form input:focus,
  .contact-form textarea:focus,
  .contact-form select:focus {
      outline: none;
      border-color: var(--primary-color);
      background-color: var(--light-bg);
      box-shadow: 0 0 0 3px rgba(0, 86, 255, 0.1);
  }

  .contact-form textarea {
      resize: vertical;
      min-height: 150px;
  }

  .submit-btn {
      width: 100%;
      padding: 16px;
      background-color: var(--primary-color);
      color: var(--light-bg);
      border: none;
      border-radius: var(--radius);
      font-size: 1.05rem;
      font-weight: 700;
      cursor: pointer;
      transition: var(--transition);
      letter-spacing: 0.5px;
  }

  .submit-btn:hover {
      background-color: var(--primary-dark);
      transform: translateY(-2px);
      box-shadow: 0 6px 15px rgba(0, 86, 255, 0.25);
  }

  @media (max-width: 900px) {
      .contact-wrapper {
          grid-template-columns: 1fr;
          padding: 30px;
      }

      .contact-info {
          margin-bottom: 40px;
          padding-bottom: 40px;
          border-bottom: 1px solid var(--border-color);
      }
  }

  /* Newsletter Section */
  .newsletter-section {
      background-color: var(--secondary-color);
      padding: 60px 0;
      text-align: center;
      margin-top: 60px;
  }

  .newsletter-content {
      max-width: 600px;
      margin: 0 auto;
  }

  .newsletter-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 2rem;
      margin-bottom: 15px;
      color: var(--text-dark);
  }

  .newsletter-text {
      font-size: 1.1rem;
      margin-bottom: 30px;
      color: var(--text-gray);
  }

  .newsletter-form {
      display: flex;
      gap: 10px;
      justify-content: center;
  }

  .newsletter-input {
      padding: 12px 20px;
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      font-size: 1rem;
      width: 60%;
      background-color: var(--card-bg);
      color: var(--text-dark);
      transition: var(--transition);
  }

  .newsletter-input:focus {
      outline: none;
      border-color: var(--primary-color);
      box-shadow: 0 0 0 3px rgba(0, 86, 255, 0.1);
  }

  @media (max-width: 480px) {
      .newsletter-form {
          flex-direction: column;
      }

      .newsletter-input {
          width: 100%;
      }

      .newsletter-section .submit-btn {
          width: 100%;
      }
  }

  /* Scroll to Top Button */
  .scroll-top-btn {
      position: fixed;
      bottom: 30px;
      right: 30px;
      background-color: var(--primary-color);
      color: white;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      cursor: pointer;
      box-shadow: var(--shadow);
      opacity: 0;
      visibility: hidden;
      transform: translateY(20px);
      transition: all 0.3s ease;
      z-index: 99;
  }

  .scroll-top-btn.visible {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
  }

  .scroll-top-btn:hover {
      background-color: var(--primary-dark);
      transform: translateY(-5px);
      box-shadow: var(--shadow-hover);
  }

  /* Hero Carousel */
  .hero-carousel {
      position: relative;
      width: 100%;
      height: 600px;
      overflow: hidden;
      margin-bottom: 50px;
      border-radius: 0 0 var(--radius) var(--radius);
  }

  .carousel-inner {
      width: 100%;
      height: 100%;
      position: relative;
  }

  .carousel-item {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      transition: opacity 0.8s ease-in-out;
      background-size: cover;
      background-position: center;
  }

  .carousel-item.active {
      opacity: 1;
      z-index: 1;
  }

  .carousel-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 60px;
  }

  .carousel-content {
      max-width: 800px;
      color: white;
      transform: translateY(20px);
      transition: transform 0.8s ease-out;
  }

  .carousel-item.active .carousel-content {
      transform: translateY(0);
  }

  .carousel-category {
      display: inline-block;
      background-color: var(--primary-color);
      color: white;
      padding: 6px 12px;
      border-radius: 4px;
      font-size: 0.9rem;
      font-weight: 600;
      margin-bottom: 15px;
  }

  .carousel-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 3rem;
      margin-bottom: 15px;
      line-height: 1.1;
  }

  .carousel-excerpt {
      font-size: 1.2rem;
      margin-bottom: 25px;
      opacity: 0.9;
      max-width: 600px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
  }

  .carousel-control {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: white;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      font-size: 1.2rem;
      cursor: pointer;
      z-index: 2;
      backdrop-filter: blur(5px);
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .carousel-control:hover {
      background: white;
      color: var(--primary-color);
  }

  .carousel-control.prev {
      left: 30px;
  }

  .carousel-control.next {
      right: 30px;
  }

  .carousel-dots {
      position: absolute;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 10px;
      z-index: 2;
  }

  .carousel-dot {
      width: 12px;
      height: 12px;
      background-color: rgba(255, 255, 255, 0.3);
      border-radius: 50%;
      cursor: pointer;
      transition: all 0.3s ease;
  }

  .carousel-dot.active {
      background-color: var(--primary-color);
      transform: scale(1.2);
  }

  @media (max-width: 768px) {
      .hero-carousel {
          height: 400px;
      }

      .carousel-title {
          font-size: 2rem;
      }

      .carousel-overlay {
          padding: 30px;
      }

      .carousel-control {
          width: 40px;
          height: 40px;
          font-size: 1rem;
      }
  }

  /* Comments Section */
  .comments-section {
      margin-bottom: 80px;
  }

  .comment-list {
      margin-bottom: 40px;
  }

  .comment-card {
      display: flex;
      gap: 20px;
      margin-bottom: 30px;
      animation: fadeIn 0.5s ease;
  }

  .comment-avatar {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background-color: var(--secondary-color);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      color: var(--primary-color);
      flex-shrink: 0;
  }

  .comment-content {
      flex: 1;
  }

  .comment-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 5px;
  }

  .comment-author {
      font-weight: 700;
      color: var(--text-dark);
  }

  .comment-date {
      font-size: 0.9rem;
      color: var(--text-gray);
  }

  .comment-text {
      line-height: 1.6;
      color: var(--text-dark);
  }

  .comment-form-container {
      background-color: var(--secondary-color);
      padding: 30px;
      border-radius: var(--radius);
  }

  .comment-form textarea {
      width: 100%;
      padding: 15px;
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      min-height: 100px;
      margin-bottom: 15px;
      resize: vertical;
      font-family: inherit;
      background-color: var(--card-bg);
      color: var(--text-dark);
  }

  .comment-form input {
      width: 100%;
      padding: 12px;
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      margin-bottom: 15px;
      background-color: var(--card-bg);
      color: var(--text-dark);
  }

  /* Reading Progress Bar */
  #reading-progress {
      position: fixed;
      top: 0;
      left: 0;
      width: 0%;
      height: 4px;
      background-color: var(--primary-color);
      z-index: 9999;
      transition: width 0.1s linear;
      box-shadow: 0 0 10px var(--primary-color);
  }

  /* Mobile Menu & Responsive Fixes */
  @media (max-width: 768px) {
      .nav-desktop {
          display: none;
      }

      .hamburger-menu {
          display: block;
          /* Make sure it's visible */
      }

      .header-container {
          padding: 0 15px;
      }

      .news-grid {
          grid-template-columns: 1fr;
      }

      /* Adjust navbar mobile position if needed */
      .nav-mobile {
          top: var(--header-height);
          /* Now defined */
          height: calc(100vh - var(--header-height));
          overflow-y: auto;
      }
  }

  /* Print Styles */
  @media print {

      header,
      .navbar,
      .footer-container,
      .sidebar,
      .features-sidebar,
      .scroll-top-btn,
      .theme-toggle,
      .share-tooltip,
      .submit-btn,
      .read-more,
      .filters-section,
      #comments-section,
      #related-news-section,
      .card-bookmark-btn,
      .hamburger-menu {
          display: none !important;
      }

      body {
          background: #fff;
          color: #000;
          font-family: 'Times New Roman', Times, serif;
      }

      .container,
      .main-content {
          width: 100%;
          max-width: 100%;
          margin: 0;
          padding: 0;
          box-shadow: none;
      }

      .article-header h1 {
          font-size: 24pt;
          color: #000;
      }

      .article-body {
          font-size: 12pt;
          line-height: 1.5;
          color: #000;
      }

      .article-body p {
          margin-bottom: 1em;
          widows: 3;
          orphans: 3;
      }

      img {
          max-width: 100% !important;
          page-break-inside: avoid;
          filter: grayscale(100%);
      }

      a {
          text-decoration: none;
          color: #000;
      }
  }








  /* Estilos para el modo lectura */
  .reading-mode {
      background: #fdfdfd;
      color: #111;
      line-height: 1.6;
      font-size: 1.2rem;
  }

  /* Opcional: mejorar la legibilidad del botón */
  .reading-mode-toggle {
      margin-top: 1rem;
      background: var(--primary-color, #00ffab);
      color: #fff;
      border: none;
      padding: 0.5rem 1rem;
      border-radius: 4px;
      cursor: pointer;
  }

  .reading-mode-toggle:hover {
      background: var(--secondary-color, #ff00c8);
  }