/*
Theme Name: Nuevo PAR
Description: Tema moderno y profesional para el Partido Aragonés. Diseño responsive con colores institucionales aragoneses y funcionalidades avanzadas para gestión de noticias y contenido político.
Author: Partido Aragonés
Version: 1.1.2
License: GPL v2 or later
Text Domain: nuevo-par
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
*/

/* ===========================
   VARIABLES CSS - COLORES ARAGONESES
   =========================== */
:root {
  --color-azul-aragon: #CC0000;
  --color-rojo-aragon: #CC0000;
  --color-amarillo-aragon: #ffdd00;
  --color-gris-oscuro: #333333;
  --color-gris-medio: #666666;
  --color-gris-claro: #F8F9FA;
  --color-blanco: #FFFFFF;
  --color-negro: #000000;

  /* Gradientes */
  --gradiente-azul: linear-gradient(135deg, var(--color-rojo-aragon) 0%, var(--color-rojo-aragon) 100%);
  --gradiente-header: linear-gradient(90deg, var(--color-rojo-aragon) 0%, var(--color-rojo-aragon) 50%, var(--color-rojo-aragon) 100%);

  /* Tipografía */
  --fuente-principal: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --fuente-titulos: 'Roboto Slab', 'Georgia', serif;

  /* Espaciado */
  --espaciado-xs: 0.25rem;
  --espaciado-sm: 0.5rem;
  --espaciado-md: 1rem;
  --espaciado-lg: 1.5rem;
  --espaciado-xl: 2rem;
  --espaciado-xxl: 3rem;

  /* Bordes */
  --radio-borde: 0;
  --radio-borde-sm: 0;
  --radio-borde-lg: 0;

  /* Sombras */
  --sombra-suave: 0 2px 8px rgba(204, 0, 0, 0.1);
  --sombra-media: 0 4px 16px rgba(204, 0, 0, 0.15);
  --sombra-fuerte: 0 8px 32px rgba(204, 0, 0, 0.2);

  /* Transiciones */
  --transicion-rapida: 0.2s ease;
  --transicion-media: 0.3s ease;
  --transicion-lenta: 0.5s ease;
}

/* ===========================
   RESET Y BASE
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--fuente-principal);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-gris-oscuro);
  background-color: var(--color-gris-claro);
  overflow-x: hidden;
}

/* ===========================
   TIPOGRAFÍA
   =========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fuente-titulos);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--espaciado-md);
  color: var(--color-azul-aragon);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
  margin-bottom: var(--espaciado-md);
}

a {
  color: var(--color-azul-aragon);
  text-decoration: none;
  transition: var(--transicion-rapida);
}

a:hover {
  color: var(--color-rojo-aragon);
  text-decoration: underline;
}

/* ===========================
   CONTENEDOR PRINCIPAL
   =========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--espaciado-md);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--espaciado-md);
}

/* ===========================
   HEADER MODERNO HAMBURGUESA
   =========================== */
/* Ocultar el header anterior */
.site-header {
  display: none;
}

/* Barra superior delgada - ELIMINADA */
.top-bar-slim {
    display: none;
}

.top-bar-content {
  display: none;
}

/* Redes sociales */
.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: var(--color-blanco);
  font-size: 14px;
  transition: var(--transicion-rapida);
  opacity: 0.9;
}

.social-links a:hover {
  color: var(--color-amarillo-aragon);
  opacity: 1;
  transform: translateY(-2px);
}

/* Enlaces superiores */
.top-links {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-blanco);
}

.top-links a {
  color: var(--color-blanco);
  text-decoration: none;
  transition: var(--transicion-rapida);
  font-weight: 400;
}

.top-links a:hover {
  color: var(--color-amarillo-aragon);
  text-decoration: none;
}

.top-links .separator {
  color: rgba(255,255,255,0.3);
}

.top-links .highlight-link {
  background: var(--color-amarillo-aragon);
  color: var(--color-azul-aragon);
  padding: 4px 12px;
  border-radius: 0;
  font-weight: 600;
}

.top-links .highlight-link:hover {
  background: #FFC700;
  transform: scale(1.05);
}

/* Header principal */
.main-header {
  background: var(--color-blanco);
  padding: 15px 0;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* Logo */
.site-branding {
  flex-shrink: 0;
}

.site-logo-img {
  height: 50px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

/* ===========================
   NAVEGACIÓN MODERNA
   =========================== */
.main-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

.menu-container {
  width: 100%;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  gap: 5px;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: block;
  padding: 12px 18px;
  color: #333;
  font-weight: 500;
  transition: var(--transicion-rapida);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
  color: var(--color-azul-aragon);
  border-bottom-color: var(--color-amarillo-aragon);
  background: rgba(204, 0, 0, 0.05);
}

/* Mensaje de configuración del menú */
.no-menu-notice {
  padding: 10px 20px;
  background: #f5f5f5;
  border-radius: 0;
  text-align: center;
}

.no-menu-notice p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.no-menu-notice a {
  color: var(--color-azul-aragon);
  font-weight: 600;
  text-decoration: underline;
}

/* Acciones del header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-toggle {
  background: none;
  border: none;
  color: #333;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  transition: var(--transicion-rapida);
}

.search-toggle:hover {
  color: var(--color-azul-aragon);
  transform: scale(1.1);
}

.btn-cta {
  background: linear-gradient(135deg, var(--color-azul-aragon) 0%, var(--color-rojo-aragon) 100%);
  color: var(--color-blanco);
  padding: 10px 20px;
  border-radius: 0;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transicion-media);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(204, 0, 0, 0.2);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
  background: linear-gradient(135deg, var(--color-rojo-aragon) 0%, var(--color-rojo-aragon) 100%);
}

/* Búsqueda overlay */
.search-overlay {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-blanco);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 20px 0;
  z-index: 999;
}

.search-overlay.active {
  display: block;
}

.search-form-overlay {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}

.search-field-overlay {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 0;
  font-size: 1rem;
  outline: none;
}

.search-field-overlay:focus {
  border-color: var(--color-azul-aragon);
}

.search-submit-overlay,
.search-close {
  background: none;
  border: none;
  color: #333;
  font-size: 20px;
  cursor: pointer;
  padding: 10px;
}

/* Submenús */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-blanco);
  box-shadow: var(--sombra-media);
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transicion-media);
}

.nav-menu li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu a {
  color: var(--color-azul-aragon);
  border-bottom: 1px solid var(--color-gris-claro);
}

.nav-menu .sub-menu a:hover {
  background-color: var(--color-gris-claro);
  color: var(--color-rojo-aragon);
}

/* Botón menú móvil */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-blanco);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--espaciado-md);
}

/* ===========================
   SLIDER DE NOTICIAS
   =========================== */
.news-slider {
  position: relative;
  margin-bottom: var(--espaciado-xxl);
  background: var(--color-blanco);
  border-radius: var(--radio-borde-lg);
  overflow: hidden;
  box-shadow: var(--sombra-media);
}

.slider-container {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transicion-media);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: end;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  background: linear-gradient(transparent, rgba(204, 0, 0, 0.8));
  width: 100%;
  padding: var(--espaciado-xxl) var(--espaciado-lg) var(--espaciado-lg);
  color: var(--color-blanco);
}

.slide-category {
  display: inline-block;
  background-color: var(--color-amarillo-aragon);
  color: var(--color-azul-aragon);
  padding: var(--espaciado-xs) var(--espaciado-sm);
  border-radius: var(--radio-borde-sm);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--espaciado-sm);
}

.slide-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--espaciado-sm);
  color: var(--color-blanco);
}

.slide-excerpt {
  font-size: 1.1rem;
  margin-bottom: var(--espaciado-md);
  opacity: 0.9;
}

.slide-link {
  color: var(--color-amarillo-aragon);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--espaciado-xs);
}

.slide-link:hover {
  color: var(--color-blanco);
  text-decoration: none;
}

/* ===========================
   TARJETAS DE NOTICIAS
   =========================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.news-card {
  background: var(--color-blanco);
  border-radius: var(--radio-borde);
  overflow: hidden;
  box-shadow: var(--sombra-suave);
  transition: var(--transicion-media);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-fuerte);
}

.news-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card-content {
  padding: var(--espaciado-lg);
}

.news-card-category {
  display: inline-block;
  padding: var(--espaciado-xs) var(--espaciado-sm);
  border-radius: var(--radio-borde-sm);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--espaciado-sm);
  color: var(--color-blanco);
}

.categoria-zaragoza {
  background-color: var(--color-azul-aragon);
}

.categoria-huesca {
  background-color: var(--color-rojo-aragon);
}

.categoria-teruel {
  background-color: #8B4513;
}

.news-card-title {
  font-size: 1.25rem;
  margin-bottom: var(--espaciado-sm);
  line-height: 1.4;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(1.4em * 4);
}

.news-card-title a {
  color: var(--color-gris-oscuro);
  text-decoration: none;
  transition: var(--transicion-rapida);
}

.news-card-title a:hover {
  color: var(--color-azul-aragon);
}

.news-card-read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-primario);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transicion-rapida);
}

.news-card-read-more:hover {
  color: var(--color-azul-aragon);
  text-decoration: underline;
}

.news-card-excerpt {
  color: var(--color-gris-medio);
  margin-bottom: var(--espaciado-md);
  line-height: 1.5;
}

.news-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--color-gris-medio);
}

.news-card-date {
  font-weight: 500;
}

.read-more {
  color: var(--color-azul-aragon);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transicion-rapida);
}

.read-more:hover {
  color: var(--color-rojo-aragon);
}

/* ===========================
   FOOTER DELGADO AMARILLO
   =========================== */
.site-footer {
  background: #ffdd00 !important;
  color: #333 !important;
  padding: 20px 0 10px;
  margin-top: 40px;
  font-size: 0.85rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 15px;
}

.footer-section {
  flex: 1;
}

.footer-section h4 {
  color: #333;
  margin: 0 0 8px 0;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.footer-section ul li {
  margin-bottom: 4px;
  font-size: 0.8rem;
}

.footer-section a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #000;
  text-decoration: underline;
}

/* Contacto */
.contact-info {
  font-size: 0.8rem;
  line-height: 1.4;
}

.contact-address {
  margin: 0 0 8px 0;
}

.contact-phone {
  margin: 0;
  font-size: 0.8rem;
}

.contact-phone i {
  margin-right: 5px;
  font-size: 0.7rem;
}

/* Emails provinciales */
.email-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
}

.email-list i {
  font-size: 0.7rem;
  color: #666;
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(51, 51, 51, 0.2);
  padding-top: 8px;
  text-align: center;
  font-size: 0.75rem;
  color: #666;
}

.footer-bottom p {
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }

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

/* Legacy footer styles - mantener para compatibilidad */
.footer-widgets {
  display: none;
}

.footer-widget {
  display: none;
}

/* ===========================
   BOTONES
   =========================== */
.btn {
  display: inline-block;
  padding: var(--espaciado-sm) var(--espaciado-lg);
  background-color: var(--color-azul-aragon);
  color: var(--color-blanco);
  border: none;
  border-radius: var(--radio-borde);
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transicion-rapida);
  font-size: 1rem;
}

.btn:hover {
  background-color: var(--color-rojo-aragon);
  color: var(--color-blanco);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--sombra-media);
}

.btn-secondary {
  background-color: var(--color-gris-medio);
}

.btn-secondary:hover {
  background-color: var(--color-gris-oscuro);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-azul-aragon);
  color: var(--color-azul-aragon);
}

.btn-outline:hover {
  background-color: var(--color-azul-aragon);
  color: var(--color-blanco);
}

/* ===========================
   FORMULARIOS
   =========================== */
.form-group {
  margin-bottom: var(--espaciado-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--espaciado-sm);
  font-weight: 600;
  color: var(--color-gris-oscuro);
}

.form-control {
  width: 100%;
  padding: var(--espaciado-sm);
  border: 2px solid var(--color-gris-claro);
  border-radius: var(--radio-borde);
  font-size: 1rem;
  transition: var(--transicion-rapida);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-azul-aragon);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.contact-form {
  background: var(--color-blanco);
  padding: var(--espaciado-xl);
  border-radius: var(--radio-borde);
  box-shadow: var(--sombra-suave);
}

/* ===========================
   BUSCADOR
   =========================== */
.search-form {
  display: flex;
  border: 2px solid var(--color-gris-claro);
  border-radius: var(--radio-borde);
  overflow: hidden;
  background: var(--color-blanco);
}

.search-input {
  flex: 1;
  padding: var(--espaciado-sm);
  border: none;
  font-size: 1rem;
  outline: none;
}

.search-button {
  background: var(--color-azul-aragon);
  color: var(--color-blanco);
  border: none;
  padding: var(--espaciado-sm) var(--espaciado-md);
  cursor: pointer;
  transition: var(--transicion-rapida);
}

.search-button:hover {
  background: var(--color-rojo-aragon);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--espaciado-lg);
  }

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

  /* Grid responsive para tablet */
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  /* Header responsive */
  .top-bar {
    padding: 10px 0;
  }

  .top-bar-content {
    flex-direction: column;
    gap: 10px;
  }

  .top-links {
    font-size: 0.8rem;
  }

  .header-wrapper {
    position: relative;
  }

  /* Mostrar menú hamburguesa */
  .menu-toggle {
    display: flex;
    order: -1;
  }

  .main-navigation {
    position: static;
    width: 100%;
  }

  .menu-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-blanco);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .menu-container.active {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    padding: 20px 0;
  }

  .nav-menu a {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    border-left: 3px solid transparent;
  }

  .nav-menu a:hover {
    border-left-color: var(--color-amarillo-aragon);
    border-bottom-color: #f0f0f0;
  }

  .header-actions {
    margin-left: auto;
  }

  .btn-cta {
    display: none;
  }

  /* Hero responsive */
  .hero-banner {
    height: 400px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  /* Otros elementos */
  .footer-widgets {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--espaciado-md);
  }

  /* Grid responsive para móvil */
  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Ocultar enlaces de la barra superior en móvil */
  .top-links .separator,
  .top-links a:not(.highlight-link) {
    display: none;
  }

  .social-links {
    gap: 12px;
  }

  .site-logo-img {
    height: 40px;
  }

  /* Hero móvil */
  .hero-banner {
    height: 350px;
  }

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

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .hero-buttons .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .hero-content {
    padding: 40px 0;
  }
}

/* ===========================
   ACCESIBILIDAD
   =========================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color-azul-aragon);
  color: var(--color-blanco);
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 10000;
  transition: var(--transicion-rapida);
}

.skip-link:focus {
  top: 0;
}

/* Focus styles */
*:focus {
  outline: 2px solid var(--color-amarillo-aragon);
  outline-offset: 2px;
}

/* ===========================
   UTILIDADES
   =========================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--espaciado-sm); }
.mb-2 { margin-bottom: var(--espaciado-md); }
.mb-3 { margin-bottom: var(--espaciado-lg); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--espaciado-sm); }
.mt-2 { margin-top: var(--espaciado-md); }
.mt-3 { margin-top: var(--espaciado-lg); }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.color-aragon { color: var(--color-azul-aragon); }
.color-rojo { color: var(--color-rojo-aragon); }
.color-amarillo { color: var(--color-amarillo-aragon); }

/* ===========================
   ESTILOS COMPLETOS HEADER MODERNO
   =========================== */
.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quick-links {
    display: flex;
    gap: 20px;
}

.quick-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.85rem;
}

.quick-link:hover {
    color: #ffdd00;
}

.quick-link.highlight {
    color: #ffdd00;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #ffdd00;
    transform: translateY(-2px);
}

/* Header principal moderno de dos niveles */
.site-header-modern {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky !important;
    top: 0 !important;
    z-index: 1000;
    transform: none !important;
    transition: none !important;
}

/* Nivel superior del header */
.header-top-level {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.header-top-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo fijo a la izquierda */
.logo-area {
    flex: 0 0 auto;
}

/* Sección derecha del header */
.header-right-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

/* Iconos sociales agrupados */
.header-social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex: 1;
    padding: 0 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 0;
    background: rgba(255, 221, 0, 0.1);
    color: #ffdd00 !important;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: #ffdd00;
    color: #333 !important;
    transform: translateY(-2px);
}

/* Botones de afiliación */
.header-buttons {
    display: flex;
    gap: 8px;
    margin-left: -20px;
}

.btn-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 2px solid #ffdd00;
    border-radius: 0;
    background: none;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-header:hover {
    background: #ffdd00;
    color: #333;
    transform: translateY(-1px);
}

.btn-header i {
    font-size: 15px;
}

.btn-header span {
    letter-spacing: 0.3px;
}

/* Botón de donaciones con color especial */
.btn-donaciones {
    border-color: #ffdd00;
    background: linear-gradient(135deg, #ffdd00 0%, #ffc700 100%);
    color: #333 !important;
}

.btn-donaciones:hover {
    background: #ffdd00;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 221, 0, 0.4);
}

/* Barra de navegación amarilla */
.header-navigation {
    background: #ffdd00;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-navigation .container {
    padding: 0;
}

.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 0;
}

.main-menu li {
    margin: 0;
}

.main-menu a {
    display: block;
    padding: 15px 18px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.main-menu a:hover {
    background: rgba(255,255,255,0.3);
    color: #000;
}

/* Forzar que el header NUNCA se mueva - SIN transiciones */
.site-header-modern.scrolled,
.site-header-modern.hidden {
    position: sticky !important;
    top: 0 !important;
    transform: none !important;
    transition: none !important;
}

/* CSS adicional para garantizar header estático */
html .site-header-modern,
body .site-header-modern,
.site-header-modern * {
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

html .site-header-modern {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
}

/* Clase legacy para compatibilidad */
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo */
.logo-area {
    flex: 0 0 auto;
}

.logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Redes sociales individuales (legacy - ocultas) */
.header-social-facebook,
.header-social-twitter,
.header-social-instagram,
.header-social-youtube {
    display: none !important;
}


/* Búsqueda - ELIMINADA */
.header-search {
    display: none;
}

/* Menú */
.header-menu {
    flex: 0 0 auto;
}

/* Botón de búsqueda */
.search-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    color: var(--color-azul-aragon);
    transform: scale(1.1);
}

/* Menú hamburguesa - ELIMINADO */
.menu-burger {
    display: none !important;
}

/* ===========================
   MENÚ OVERLAY FULLSCREEN - FONDO BLANCO
   =========================== */
.menu-overlay,
.menu-overlay.active,
#menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    z-index: 9999 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.menu-overlay.active,
#menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
}

.menu-overlay-content {
    height: 100%;
    overflow-y: auto;
    position: relative;
}

.menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #333333 !important;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
}

.menu-close:hover {
    transform: rotate(90deg);
}

.menu-wrapper {
    padding: 100px 0 50px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.menu-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

/* Menú principal */
.overlay-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.overlay-menu li {
    margin-bottom: 5px;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideIn 0.5s ease forwards;
}

.overlay-menu li:nth-child(1) { animation-delay: 0.1s; }
.overlay-menu li:nth-child(2) { animation-delay: 0.15s; }
.overlay-menu li:nth-child(3) { animation-delay: 0.2s; }
.overlay-menu li:nth-child(4) { animation-delay: 0.25s; }
.overlay-menu li:nth-child(5) { animation-delay: 0.3s; }
.overlay-menu li:nth-child(6) { animation-delay: 0.35s; }
.overlay-menu li:nth-child(7) { animation-delay: 0.4s; }
.overlay-menu li:nth-child(8) { animation-delay: 0.45s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.overlay-menu a {
    color: #333333 !important;
    text-decoration: none;
    font-size: 2.2rem;
    font-weight: 700;
    display: block;
    padding: 12px 0;
    transition: all 0.3s ease;
    position: relative;
}

.overlay-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #CC0000;
    transition: width 0.3s ease;
}

.overlay-menu a:hover {
    color: #CC0000 !important;
    padding-left: 20px;
}

.overlay-menu a:hover::after {
    width: 60px;
}

    color: var(--color-azul-aragon);
    transform: translateY(-3px);
}

/* ===========================
   BÚSQUEDA OVERLAY
   =========================== */
.search-overlay-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(204, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9998;
    display: none;
}

.search-overlay-modern.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.search-close-btn:hover {
    transform: rotate(90deg);
}

.search-overlay-content {
    width: 100%;
    max-width: 700px;
    padding: 0 20px;
}

.search-form-modern {
    display: flex;
    position: relative;
}

.search-input-modern {
    width: 100%;
    padding: 20px 60px 20px 20px;
    background: white;
    border: none;
    border-radius: 0;
    font-size: 1.2rem;
    outline: none;
}

.search-submit-modern {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-azul-aragon);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-submit-modern:hover {
    background: #ffdd00;
    color: var(--color-azul-aragon);
}

.search-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 20px;
    font-size: 0.9rem;
}

/* ===========================
   HERO BANNER SIMPLE - USA EL CONTENIDO DE LA PÁGINA
   =========================== */
/* ===========================
   SECCIÓN NOTICIA DESTACADA
   =========================== */
.featured-news-section {
    padding: 40px 0 60px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.featured-news-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 1400px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.featured-news-image {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.news-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-news-card:hover .news-featured-img {
    transform: scale(1.05);
}

.featured-news-content {
    padding: 40px;
}

.featured-news-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
    font-family: var(--fuente-titulos);
}

.featured-news-excerpt {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.featured-news-actions {
    text-align: left;
}

.btn-saber-mas {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-azul-aragon);
    color: white;
    padding: 15px 30px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-saber-mas:hover {
    background: transparent;
    color: var(--color-azul-aragon);
    border-color: var(--color-azul-aragon);
    transform: translateX(5px);
}

.btn-saber-mas i {
    transition: transform 0.3s ease;
}

.btn-saber-mas:hover i {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .featured-news-section {
        padding: 30px 0 40px;
    }

    .featured-news-image {
        height: 250px;
    }

    .featured-news-content {
        padding: 30px 25px;
    }

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

    .featured-news-excerpt {
        font-size: 1rem;
    }

    .btn-saber-mas {
        width: 100%;
        justify-content: center;
        padding: 12px 25px;
    }
}

.hero-simple-banner {
  display: none; /* El hero ahora está en el contenido de la página */
}

/* Estilos para cuando uses un bloque HTML/Cover en la página */
.wp-block-cover.hero-custom {
  min-height: 600px !important;
}

.hero-content-modern {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    color: white !important;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-highlight {
    font-weight: 700;
    color: #ffdd00;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffdd00;
    color: var(--color-azul-aragon);
    padding: 15px 35px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.btn-hero-secondary {
    display: inline-block;
    background: transparent;
    color: white;
    padding: 15px 35px;
    border: 2px solid white;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: white;
    color: var(--color-azul-aragon);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 0;
    display: block;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 0;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0;
    }
}

/* ===========================
   HERO BANNER
   =========================== */
.hero-banner {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: var(--color-azul-aragon);
}

.hero-slider {
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--color-blanco);
  padding: 60px 0;
  z-index: 2;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-blanco) !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  max-width: 800px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.95;
  max-width: 600px;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.hero-buttons .btn {
  padding: 12px 30px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0;
  font-weight: 600;
  transition: var(--transicion-media);
  text-decoration: none;
}

.hero-buttons .btn-primary {
  background: var(--color-amarillo-aragon);
  color: var(--color-azul-aragon);
  box-shadow: 0 4px 15px rgba(255,215,0,0.3);
}

.hero-buttons .btn-primary:hover {
  background: #FFC700;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,215,0,0.4);
}

.hero-buttons .btn-outline-white {
  background: transparent;
  color: var(--color-blanco);
  border: 2px solid var(--color-blanco);
}

.hero-buttons .btn-outline-white:hover {
  background: var(--color-blanco);
  color: var(--color-azul-aragon);
}

/* Indicadores del hero */
.hero-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-indicators .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transicion-rapida);
}

.hero-indicators .indicator.active,
.hero-indicators .indicator:hover {
  background: var(--color-amarillo-aragon);
  transform: scale(1.2);
}

/* Animaciones */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.8s ease-out;
}

.animation-delay-1 {
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

.animation-delay-2 {
  animation-delay: 0.4s;
  animation-fill-mode: both;
}

/* Menú hamburguesa para móvil */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
}

.hamburger-box {
  width: 24px;
  height: 20px;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 24px;
  height: 3px;
  background: #333;
  position: absolute;
  transition: var(--transicion-rapida);
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before {
  content: '';
  top: -8px;
}

.hamburger-inner::after {
  content: '';
  top: 8px;
}

.menu-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

/* ===========================
   HERO DRAG & DROP STYLES
   =========================== */

.hero-banner-modern {
  position: relative;
  width: 100%;
  max-width: 1920px;
  height: 600px;
  min-height: 600px;
  max-height: 600px;
  margin: 0 auto;
  overflow: hidden;
}

@media (min-width: 769px) {
  .hero-banner-modern {
    height: 600px !important;
    min-height: 600px !important;
    max-height: 600px !important;
    width: 100% !important;
    max-width: 1920px !important;
  }

  .hero-background {
    background-size: 1920px 600px !important;
    background-position: center center !important;
  }
}

@media (max-width: 768px) {
  .hero-banner-modern {
    height: auto !important;
    min-height: 500px !important;
    max-height: none !important;
    max-width: 100% !important;
  }
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 2;
}

/* ===========================
   HERO INDIVIDUAL ELEMENTS STYLES
   =========================== */

.hero-element {
  position: absolute;
  z-index: 3;
  color: white;
  transition: all 0.3s ease;
  cursor: move;
  user-select: none;
}

/* Estilos específicos para cada tipo de elemento */
.hero-title-element .hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
  white-space: pre-line; /* Respeta los saltos de línea */
}

.hero-highlight-element .hero-highlight {
  font-size: 2.5rem;
  font-weight: 600;
  color: #ffdd00;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  display: block;
  line-height: 1.3;
  white-space: pre-line; /* Respeta los saltos de línea */
}

.hero-description-element .hero-description {
  font-size: 1.2rem;
  margin: 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  line-height: 1.4;
}

.hero-btn1-element .btn-hero-primary,
.hero-btn2-element .btn-hero-secondary {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 0;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-shadow: none;
}

.hero-btn1-element .btn-hero-primary {
  background: #CC0000;
  color: white;
  border: 2px solid #CC0000;
}

.hero-btn1-element .btn-hero-primary:hover {
  background: #a30000;
  border-color: #a30000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.4);
}

.hero-btn2-element .btn-hero-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.hero-btn2-element .btn-hero-secondary:hover {
  background: white;
  color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Estilos para cuando están siendo arrastrados */
.hero-element.dragging-title,
.hero-element.dragging-highlight,
.hero-element.dragging-description,
.hero-element.dragging-btn1,
.hero-element.dragging-btn2 {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: scale(1.05) !important;
  z-index: 999;
}

/* Indicadores de drag individuales */
[class*="hero-drag-indicator-"] {
  border: 2px solid white !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4) !important;
  font-size: 10px !important;
  transition: all 0.3s ease !important;
  z-index: 10;
}

[class*="hero-drag-indicator-"]:hover {
  transform: scale(1.3) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6) !important;
}

/* Customizer preview mode styles */
body.customize-preview .hero-element {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  padding: 8px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 0;
}

body.customize-preview .hero-element:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.1);
}

/* ===========================
   RESPONSIVE POSITIONING SYSTEM
   =========================== */

/* Inicializar elementos con posicionamiento absoluto */
.hero-element {
  position: absolute;
  /* transform y posiciones se definen inline en PHP */
  transition: all 0.3s ease;
  color: white;
}

/* Clases para diferentes dispositivos */
body.hero-desktop .hero-element {
  /* Posiciones controladas por JavaScript */
}

body.hero-tablet .hero-element {
  /* Ajustes automáticos para tablet */
}

body.hero-mobile .hero-element {
  /* Ajustes automáticos para móvil */
}

/* Responsive adjustments - TABLET */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero-title-element .hero-title {
    font-size: 3rem;
  }

  .hero-highlight-element .hero-highlight {
    font-size: 2.2rem;
  }

  .hero-description-element .hero-description {
    font-size: 1.1rem;
  }

  .hero-description-element {
    width: 70% !important;
  }

  .hero-btn1-element .btn-hero-primary,
  .hero-btn2-element .btn-hero-secondary {
    padding: 11px 22px;
    font-size: 15px;
  }
}

/* Responsive adjustments - MÓVIL */
@media (max-width: 768px) {
  .hero-title-element .hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .hero-highlight-element .hero-highlight {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .hero-description-element .hero-description {
    font-size: 1rem;
    line-height: 1.3;
  }

  .hero-description-element {
    width: 90% !important;
    max-width: none !important;
  }

  .hero-btn1-element .btn-hero-primary,
  .hero-btn2-element .btn-hero-secondary {
    padding: 10px 20px;
    font-size: 14px;
    margin: 5px;
  }

  /* Mejorar espaciado en móvil */
  .hero-btn1-element,
  .hero-btn2-element {
    transform: translate(-50%, -50%) scale(0.95);
  }
}

@media (max-width: 480px) {
  .hero-title-element .hero-title {
    font-size: 2rem;
    line-height: 1.1;
  }

  .hero-highlight-element .hero-highlight {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .hero-description-element .hero-description {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .hero-btn1-element .btn-hero-primary,
  .hero-btn2-element .btn-hero-secondary {
    padding: 8px 16px;
    font-size: 13px;
  }

  .hero-btn1-element,
  .hero-btn2-element {
    transform: translate(-50%, -50%) scale(0.9);
  }
}

/* Ajustes especiales para el customizer */
body.customize-preview .hero-element {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

body.customize-preview .hero-element:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.1);
}

/* Indicador de dispositivo activo */
body.hero-desktop::before {
  content: '🖥️ Desktop';
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 0;
  font-size: 12px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.hero-tablet::before {
  content: '📱 Tablet';
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 0;
  font-size: 12px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.hero-mobile::before {
  content: '📱 Móvil';
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 0;
  font-size: 12px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Mostrar indicador solo en el customizer */
body.customize-preview.hero-desktop::before,
body.customize-preview.hero-tablet::before,
body.customize-preview.hero-mobile::before {
  opacity: 1;
}


/* ===========================
   HERO BANNER SECTION
   =========================== */

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-element {
    position: absolute;
    z-index: 2;
    color: white;
    cursor: move;
    user-select: none;
    transition: all 0.3s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    white-space: nowrap;
}

.hero-highlight {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-amarillo-aragon);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    display: block;
    line-height: 1.3;
}

.hero-description {
    font-size: 1.2rem;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    line-height: 1.4;
    max-width: 600px;
}

/* Indicador de drag */
.drag-indicator {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-element:hover .drag-indicator {
    opacity: 1;
}

/* ===========================
   HERO TÍTULO FIJO (NUEVO)
   =========================== */
/* Contenedor draggable del título */
.hero-title-container {
    position: absolute;
    z-index: 3;
    color: white;
}

/* Clase específica para drag & drop */
.hero-title-draggable {
    transition: all 0.2s ease;
}

body.customize-preview .hero-title-draggable {
    min-width: 200px;
    min-height: 60px;
}

body.customize-preview .hero-title-draggable:hover {
    border-color: rgba(255, 255, 255, 0.6) !important;
    background: rgba(0, 0, 0, 0.2) !important;
}

/* Contenedor draggable del subtítulo */
.hero-subtitle-container {
    position: absolute;
    z-index: 3;
    color: white;
}

/* Clase específica para drag & drop del subtítulo */
.hero-subtitle-draggable {
    transition: all 0.2s ease;
}

body.customize-preview .hero-subtitle-draggable {
    min-width: 150px;
    min-height: 30px;
    border: 1px dashed rgba(255, 215, 0, 0.3);
    padding: 5px;
    border-radius: 0;
}

body.customize-preview .hero-subtitle-draggable:hover {
    border-color: rgba(255, 215, 0, 0.8) !important;
    background: rgba(255, 215, 0, 0.1) !important;
}

.hero-title-simple {
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
    color: white;
    text-align: inherit;
}

.hero-subtitle-simple {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0.5rem 0 0 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.9);
    text-align: inherit;
    font-style: italic;
}

/* Responsive para título simple */
@media (max-width: 1024px) {
    .hero-title-simple {
        font-size: 3.5rem;
    }

    .hero-subtitle-simple {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-title-simple {
        font-size: 3rem;
        line-height: 1.2;
    }

    .hero-subtitle-simple {
        font-size: 1rem;
        margin-top: 0.4rem;
    }
}

@media (max-width: 480px) {
    .hero-title-simple {
        font-size: 2.5rem;
    }

    .hero-subtitle-simple {
        font-size: 0.9rem;
        margin-top: 0.3rem;
    }
}

/* Responsive para hero */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-highlight {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-banner-modern {
        min-height: 400px;
    }

    .hero-title {
        font-size: 2.5rem;
        white-space: normal;
    }

    .hero-highlight {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-highlight {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }
}

/* ===========================
   BOTONES GENERALES
   =========================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--color-rojo-aragon);
    color: white;
    border: 2px solid var(--color-rojo-aragon);
}

.btn-primary:hover {
    background: #a30000;
    border-color: #a30000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-rojo-aragon);
    border: 2px solid var(--color-rojo-aragon);
}

.btn-outline:hover {
    background: var(--color-rojo-aragon);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* ===========================
   VER MÁS NOTICIAS
   =========================== */
.ver-mas-noticias {
    text-align: center;
    margin: 40px 0;
    padding: 20px 0;
}

.ver-mas-noticias .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
    justify-content: center;
}

.ver-mas-noticias .btn i {
    transition: transform 0.3s ease;
}

.ver-mas-noticias .btn:hover i {
    transform: translateX(5px);
}

/* ===========================
   PÁGINA DE NOTICIAS
   =========================== */
.noticias-page {
    padding: 40px 0;
    background: var(--color-gris-claro);
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 20px 0;
}

.page-title {
    font-size: 2.5rem;
    color: var(--color-gris-oscuro);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-description {
    font-size: 1.1rem;
    color: var(--color-gris-medio);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.news-grid.noticias-archive {
    margin-bottom: 50px;
}

/* ===========================
   PAGINACIÓN PERSONALIZADA
   =========================== */
.noticias-pagination {
    margin: 50px 0;
}

.pagination-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

/* Forzar que los elementos de paginación estén en línea */
.pagination-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

.pagination-wrapper > * {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    color: var(--color-gris-oscuro);
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--sombra-suave);
    border: 2px solid transparent;
}

.pagination-btn:hover {
    background: var(--color-rojo-aragon);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--sombra-media);
}

.pagination-btn.prev-btn i {
    order: -1;
}

.pagination-btn.next-btn i {
    order: 1;
}

.pagination-numbers {
    display: flex !important;
    gap: 8px !important;
    margin: 0 !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    color: var(--color-gris-oscuro);
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--sombra-suave);
    border: 2px solid transparent;
}

.pagination-number:hover,
.pagination-number.active {
    background: var(--color-rojo-aragon);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--sombra-media);
}

.pagination-number.active {
    border-color: var(--color-amarillo-aragon);
}

.pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 40px;
    color: var(--color-gris-medio);
    font-weight: 700;
    user-select: none;
    pointer-events: none;
}

.pagination-info {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    font-size: 0.9rem;
    color: var(--color-gris-medio);
    white-space: nowrap;
    font-weight: 500;
}

/* ===========================
   RESPONSIVE PARA BOTONES Y PAGINACIÓN
   =========================== */
@media (max-width: 768px) {
    .ver-mas-noticias .btn {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-description {
        font-size: 1rem;
        padding: 0 20px;
    }

    .pagination-nav {
        flex-wrap: wrap !important;
        gap: 8px !important;
        flex-direction: row !important;
    }

    .pagination-numbers {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .pagination-numbers {
        margin: 0;
    }

    .pagination-btn {
        min-width: 100px;
        justify-content: center;
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    .pagination-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* FORZAR PAGINACIÓN EN UNA SOLA LÍNEA - MÁXIMA ESPECIFICIDAD */
body .site .pagination-wrapper,
body .site .noticias-pagination,
body .site .pagination-nav,
body .site nav.navigation,
body .site .navigation.pagination,
body .site .posts-navigation,
body .site .post-navigation {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

body .site .nav-links,
body .site .pagination-numbers {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
}

body .site .page-numbers,
body .site .pagination-number,
body .site .pagination-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 12px !important;
    margin: 0 4px !important;
    text-decoration: none !important;
    border: 1px solid #ddd !important;
    background: white !important;
    color: #333 !important;
    transition: all 0.3s ease !important;
    border-radius: 0 !important;
    float: none !important;
    clear: none !important;
    width: auto !important;
    height: auto !important;
    min-width: 40px !important;
    text-align: center !important;
}

body .site .page-numbers:hover,
body .site .page-numbers.current,
body .site .pagination-number:hover,
body .site .pagination-number.active,
body .site .pagination-btn:hover {
    background: var(--color-rojo-aragon) !important;
    color: white !important;
    border-color: var(--color-rojo-aragon) !important;
}

/* Eliminar cualquier float o display block que pueda causar apilamiento */
body .site .pagination-wrapper *,
body .site .noticias-pagination *,
body .site .nav-links *,
body .site .pagination-numbers * {
    float: none !important;
    clear: none !important;
    display: inline-flex !important;
    vertical-align: middle !important;
}

/* Asegurar que no hay elementos block dentro */
body .site .pagination-wrapper div,
body .site .pagination-wrapper span,
body .site .pagination-wrapper a {
    display: inline-flex !important;
}

/* ===========================
   OVERRIDE FINAL PARA MENU OVERLAY - FORZAR FONDO BLANCO
   =========================== */
body .menu-overlay,
body #menu-overlay,
html body .menu-overlay.active,
html body #menu-overlay.active,
.menu-overlay.active,
#menu-overlay.active {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    background-attachment: scroll !important;
    background-repeat: no-repeat !important;
    background-position: 0 0 !important;
    background-size: auto !important;
    background-clip: border-box !important;
}


/* Footer legal link */
.footer-legal-link {
    color: var(--color-amarillo-aragon);
    text-decoration: none;
    margin-left: 5px;
    transition: color 0.3s ease;
}

.footer-legal-link:hover {
    color: var(--color-rojo-aragon);
    text-decoration: underline;
}

/* Cookie Consent Popup */
#cookie-consent-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#cookie-consent-popup.show {
    opacity: 1;
    visibility: visible;
}

#cookie-consent-popup.hide {
    opacity: 0;
    visibility: hidden;
}

.cookie-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-popup-content {
    background: white;
    max-width: 600px;
    width: 100%;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-popup-header {
    background: var(--color-rojo-aragon);
    color: white;
    padding: 20px 30px;
}

.cookie-popup-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.cookie-popup-body {
    padding: 30px;
}

.cookie-popup-body p {
    color: var(--color-gris-medio);
    line-height: 1.6;
    margin-bottom: 20px;
}

.cookie-types {
    margin: 20px 0;
}

.cookie-type {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid var(--color-amarillo-aragon);
}

.cookie-type strong {
    color: var(--color-gris-oscuro);
    display: block;
    margin-bottom: 5px;
}

.cookie-popup-actions {
    padding: 0 30px 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
}

.btn-reject {
    background: var(--color-gris-claro);
    color: white;
}

.btn-reject:hover {
    background: var(--color-gris-medio);
}

.btn-essential {
    background: var(--color-amarillo-aragon);
    color: var(--color-gris-oscuro);
}

.btn-essential:hover {
    background: #d4a745;
}

.btn-accept {
    background: var(--color-rojo-aragon);
    color: white;
}

.btn-accept:hover {
    background: #a22b29;
}

.cookie-popup-footer {
    padding: 0 30px 30px;
    text-align: center;
}

.cookie-policy-link {
    color: var(--color-amarillo-aragon);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.cookie-policy-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-popup-content {
        margin: 10px;
        max-width: none;
    }

    .cookie-popup-header,
    .cookie-popup-body,
    .cookie-popup-actions,
    .cookie-popup-footer {
        padding: 20px;
    }

    .cookie-popup-actions {
        flex-direction: column;
    }

    .cookie-btn {
        flex: none;
        width: 100%;
        margin-bottom: 10px;
    }
}

/* ===========================
   FOOTER LEGAL LINKS
   =========================== */
.footer-legal-links {
    margin-top: 10px;
    text-align: center;
}

.footer-legal-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-legal-link:hover {
    color: var(--color-rojo-aragon);
    text-decoration: underline;
}

.footer-legal-links .separator {
    color: #999;
    margin: 0 10px;
}

@media (max-width: 768px) {
    .footer-legal-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .footer-legal-links .separator {
        display: none;
    }
}
