/* ========================================================
   CSS WEBANIMAL - DISEÑO CENTRADO Y ORDENADO
   ======================================================== */

/* Variables de colores */
:root {
  --webanimal-primary: #207daf;
  --webanimal-secondary: #E14D36;
  --webanimal-dark: #2c3e50;
  --webanimal-gray: #666;
  --webanimal-light: #f8f9fa;
  --webanimal-border: #e1e8ed;
}

/* ================================
   ULTIMO RECURSO: CSS SUPER AGRESIVO
   PARA ARTÍCULOS INDIVIDUALES
   ================================ */

/* Forzar TODOS los contenedores a ancho completo */
html body.single-post div#wrapper,
html body.single-post div#primary,
html body.single-post main#main,
html body.single-post div.site-main,
html body.single-post div.content-area,
html body.single-post div.content-container,
html body.single-post div.site-container,
html body.single-post div.content-wrap,
html body.single-post section.entry,
html body.single-post article.single-entry,
html body.single-post div.entry-content-wrap {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  float: none !important;
}

/* Forzar artículo al centro */
html body.single-post article.single-entry {
  max-width: 900px !important;
  margin: 0 auto !important;
  float: none !important;
  display: block !important;
}

/* CENTRAR CONTENIDO DEL ARTÍCULO */
html body.single-post header.entry-header {
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

html body.single-post h1.entry-title {
  text-align: center !important;
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html body.single-post div.post-thumbnail {
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html body.single-post div.entry-content {
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: left !important;
}

html body.single-post div.entry-content p {
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: left !important;
}

/* ELIMINAR CLASES DE KADENCE QUE ESTRECHAN */
html body.single-post .content-width-narrow,
html body.single-post .content-style-boxed,
html body.single-post .content-style-unboxed {
  max-width: 100% !important;
  width: 100% !important;
}

/* Reset básico para el contenido */
.webanimal-homepage {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

/* Contenedor centrado principal */
.webanimal-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Secciones deben ocupar todo el ancho del contenedor */
.featured-article-section,
.recent-articles-section,
.main-content-with-sidebar {
  width: 100%;
}

/* Asegurar que el main esté centrado */
#primary.site-main {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  float: none;
}

/* Override de estilos de Kadence que alinean a la izquierda */
.wrap.kt-clear {
  max-width: 100% !important;
  width: 100% !important;
}

.content-container.site-container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
}

/* ================================
   HEADER PERSONALIZADO CON GRADIENTE
   ================================ */
.webanimal-header {
  background: linear-gradient(180deg,
      #4a90c2 0%,
      #207daf 50%,
      #1a6a96 100%);
  padding: 1.2rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  margin-bottom: 2rem;
  border-radius: 8px;
  width: 100%;
  position: relative !important;
  z-index: 100 !important;
}

.webanimal-header-inner {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0.5rem 1rem !important;
  max-width: 1200px;
  margin: 0 auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
}

.webanimal-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 1rem;
}

.webanimal-logo a {
  color: white;
  margin: 0;
  font-size: 1.2rem;
  text-decoration: none;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.webanimal-logo-icon {
  font-size: 1.2rem;
  margin-right: 0.3rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.webanimal-nav-search {
  display: flex !important;
  gap: 1rem;
  align-items: center !important;
  flex: 1;
  justify-content: flex-end !important;
}

.webanimal-main-nav {
  display: flex !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0.4rem 0.8rem !important;
  gap: 0.2rem !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 50px !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  width: auto !important;
}

.webanimal-main-nav li {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  flex-shrink: 0 !important;
}

.webanimal-main-nav li a {
  color: white !important;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.9rem !important;
  border-radius: 25px !important;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem !important;
  white-space: nowrap !important;
  display: block !important;
}

.webanimal-main-nav li a:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  transform: translateY(-2px) !important;
}

/* Toggle Menu (Hamburguesa) - Oculto en escritorio */
.webanimal-menu-toggle {
  display: none !important;
  background: none !important;
  border: none !important;
  color: white !important;
  font-size: 1.8rem !important;
  cursor: pointer !important;
  padding: 0.5rem !important;
  margin-right: 1rem !important;
}

/* Menu Wrapper - Visible en escritorio */
.webanimal-main-nav-wrapper {
  display: flex !important;
  align-items: center !important;
  flex: 1 !important;
  justify-content: flex-end !important;
}

/* ================================
   SUBMENÚS - HACER QUE APAREZCAN
   ================================ */

/* Contenedor de submenús */
.webanimal-main-nav ul,
.webanimal-main-nav .sub-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  background: white !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
  min-width: 200px !important;
  padding: 0.5rem 0 !important;
  margin: 0 !important;
  display: none !important;
  z-index: 9999 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.3s ease !important;
}

/* Mostrar submenú al hover */
.webanimal-main-nav li:hover>ul,
.webanimal-main-nav li:hover>.sub-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Elementos del submenú */
.webanimal-main-nav ul li,
.webanimal-main-nav .sub-menu li {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Enlaces del submenú */
.webanimal-main-nav ul li a,
.webanimal-main-nav .sub-menu li a {
  display: block !important;
  padding: 0.8rem 1.5rem !important;
  color: #2c3e50 !important;
  font-size: 0.95rem !important;
  text-shadow: none !important;
  border-radius: 0 !important;
  white-space: nowrap !important;
}

/* Hover en submenú */
.webanimal-main-nav ul li a:hover,
.webanimal-main-nav .sub-menu li a:hover {
  background: var(--webanimal-primary) !important;
  color: white !important;
  transform: none !important;
}

/* Indicador de submenú (flecha) - ELIMINADO */
.webanimal-main-nav li.menu-item-has-children>a::after {
  content: '' !important;
}

/*间隙处理，保持菜单层级清晰*/
.webanimal-main-nav ul {
  gap: 0 !important;
}

.webanimal-search-box {
  position: relative;
  margin-left: 1rem;
}

.webanimal-search-box input[type="search"] {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  width: 200px;
  color: #333;
}

.webanimal-search-box input[type="search"]:focus {
  border-color: white !important;
  background: white !important;
  outline: none !important;
}

.webanimal-search-box button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: #207daf;
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
}

.webanimal-search-box button:hover {
  background: #E14D36 !important;
}

.webanimal-tagline {
  text-align: center;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin-top: 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.webanimal-tagline p {
  margin: 0;
  color: white !important;
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ================================
   ARTÍCULO DESTACADO CENTRADO
   ================================ */
.featured-article-section {
  margin-bottom: 3rem;
  width: 100%;
}

/* FORZAR GRID DE KADENCE - ESTILOS ESPECÍFICOS */
#archive-container.kadence-posts-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
  margin: 0 !important;
  list-style: none !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}

#archive-container.kadence-posts-list .entry-list-item {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  float: none !important;
  display: block !important;
}

/* Artículos del grid (excepto el primero) */
#archive-container .entry-list-item:not(:first-child) .entry {
  background: white !important;
  border-radius: 15px !important;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden !important;
  border: 1px solid var(--webanimal-border) !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

#archive-container .entry-list-item:not(:first-child):hover .entry {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

/* Imágenes en el grid */
#archive-container .entry-list-item:not(:first-child) .post-thumbnail {
  margin: 0 !important;
  width: 100% !important;
  border-radius: 15px 15px 0 0 !important;
  overflow: hidden !important;
}

#archive-container .entry-list-item:not(:first-child) .post-thumbnail img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  transition: transform 0.3s ease !important;
  display: block !important;
}

#archive-container .entry-list-item:not(:first-child):hover .post-thumbnail img {
  transform: scale(1.03) !important;
}

/* Títulos en el grid */
#archive-container .entry-list-item:not(:first-child) .entry-title {
  font-size: 1.2rem !important;
  line-height: 1.3 !important;
  margin: 1.2rem 1.5rem 0.8rem !important;
}

#archive-container .entry-list-item:not(:first-child) .entry-title a {
  color: var(--webanimal-dark) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

#archive-container .entry-list-item:not(:first-child) .entry-title a:hover {
  color: var(--webanimal-primary) !important;
}

/* Meta información en el grid */
#archive-container .entry-list-item:not(:first-child) .entry-meta {
  color: var(--webanimal-gray) !important;
  font-size: 0.9rem !important;
  margin: 0 1.5rem 1rem !important;
  display: flex !important;
  gap: 1rem !important;
  flex-wrap: wrap !important;
}

/* Resumen/contenido en el grid */
#archive-container .entry-list-item:not(:first-child) .entry-summary,
#archive-container .entry-list-item:not(:first-child) .entry-content {
  padding: 0 1.5rem 1rem !important;
  color: var(--webanimal-gray) !important;
  line-height: 1.6 !important;
  flex-grow: 1 !important;
}

/* Categorías en el grid */
#archive-container .entry-list-item:not(:first-child) .entry-taxonomies {
  padding: 0 1.5rem 1rem !important;
}

#archive-container .entry-list-item:not(:first-child) .entry-taxonomies a {
  display: inline-block !important;
  background: var(--webanimal-light) !important;
  color: var(--webanimal-primary) !important;
  padding: 0.3rem 0.8rem !important;
  border-radius: 12px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  margin-right: 0.5rem !important;
  margin-bottom: 0.5rem !important;
  transition: all 0.3s ease !important;
  border: 1px solid var(--webanimal-border) !important;
}

#archive-container .entry-list-item:not(:first-child) .entry-taxonomies a:hover {
  background: var(--webanimal-primary) !important;
  color: white !important;
  transform: translateY(-1px) !important;
}

/* Botón Leer Más en el grid */
#archive-container .entry-list-item:not(:first-child) .read-more {
  display: inline-block !important;
  background: var(--webanimal-primary) !important;
  color: white !important;
  padding: 0.6rem 1.2rem !important;
  border-radius: 20px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  transition: all 0.3s ease !important;
  margin: 0 1.5rem 1.5rem !important;
  align-self: flex-start !important;
}

#archive-container .entry-list-item:not(:first-child) .read-more:hover {
  background: var(--webanimal-secondary) !important;
  transform: translateX(5px) !important;
}

/* Artículo destacado - AHORA AL FINAL EN HOMEPAGE */
body.home #archive-container .entry-list-item:first-child {
  grid-column: span 3 !important;
  margin-top: 2rem !important;
  order: 2 !important;
}

/* Resto de artículos van primero */
body.home #archive-container .entry-list-item:not(:first-child) {
  order: 1 !important;
}

/* DESTACADO - Layout horizontal: Imagen izquierda, Texto derecha */
.featured-article-section {
  margin-bottom: 3rem;
  width: 100%;
}

.featured-article {
  background: linear-gradient(135deg, #f8f9fa 0%, #e1e8ed 100%);
  border-radius: 12px;
  padding: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.featured-content {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
}

/* Imagen a la izquierda - 45% */
.featured-image {
  flex: 0 0 45% !important;
  max-width: 45% !important;
  width: 45% !important;
  margin: 0 !important;
  position: relative;
  overflow: hidden;
  display: flex !important;
  align-items: stretch !important;
}

.featured-image img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4/3;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
}

/* Texto a la derecha - 55% */
.featured-text {
  flex: 0 0 55% !important;
  max-width: 55% !important;
  width: 55% !important;
  padding: 2.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.featured-title {
  color: #207daf;
  font-size: 2.2rem;
  margin: 0.5rem 0 1rem;
  line-height: 1.2;
}

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

.featured-title a:hover {
  color: var(--webanimal-secondary);
}

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

.featured-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #666;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.featured-read-more {
  background: #207daf;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 1rem;
}

.featured-read-more:hover {
  background: var(--webanimal-secondary);
  transform: translateY(-2px);
}

/* Responsive: en móvil vuelve a vertical */
@media (max-width: 768px) {
  .featured-content {
    flex-direction: column !important;
  }
  
  .featured-image {
    flex: none !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .featured-image img {
    min-height: 200px;
    max-height: 250px;
  }
  
  .featured-text {
    flex: none !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 1.5rem !important;
  }
  
  .featured-title {
    font-size: 1.5rem;
  }
}

/* En categorías y archivos, el primer artículo es igual que los demás */
body.archive #archive-container .entry-list-item:first-child,
body.category #archive-container .entry-list-item:first-child {
  grid-column: span 1 !important;
}

body.archive #archive-container .entry-list-item:first-child .entry,
body.category #archive-container .entry-list-item:first-child .entry {
  background: white !important;
  border-left: none !important;
  padding: 0 !important;
  border-radius: 15px !important;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08) !important;
}

body.archive #archive-container .entry-list-item:first-child .entry-title,
body.category #archive-container .entry-list-item:first-child .entry-title {
  font-size: 1.2rem !important;
  color: var(--webanimal-dark) !important;
}

body.archive #archive-container .entry-list-item:first-child .entry-meta,
body.category #archive-container .entry-list-item:first-child .entry-meta {
  color: var(--webanimal-gray) !important;
  font-size: 0.9rem !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

/* Grid Responsive */
@media (max-width: 1024px) {
  #archive-container.kadence-posts-list {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }

  body.home #archive-container .entry-list-item:first-child {
    grid-column: span 2 !important;
    order: 2 !important;
  }

  body.home #archive-container .entry-list-item:not(:first-child) {
    order: 1 !important;
  }

  body.home #archive-container .entry-list-item:first-child .entry-title {
    font-size: 1.8em !important;
  }
}

@media (max-width: 768px) {
  #archive-container.kadence-posts-list {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  body.home #archive-container .entry-list-item:first-child {
    grid-column: span 1 !important;
    order: 2 !important;
  }

  body.home #archive-container .entry-list-item:not(:first-child) {
    order: 1 !important;
  }

  body.home #archive-container .entry-list-item:first-child .entry {
    padding: 1.5rem !important;
  }

  body.home #archive-container .entry-list-item:first-child .entry-title {
    font-size: 1.6em !important;
  }
}

.featured-article {
  background: linear-gradient(135deg, #f8f9fa 0%, #e1e8ed 100%);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #E14D36;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.featured-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.featured-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-height: 400px;
}

.featured-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.featured-category {
  color: #E14D36;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

.featured-text {
  width: 100%;
}

.featured-title {
  color: #207daf;
  font-size: 2.2rem;
  margin: 0.5rem 0 1rem;
  line-height: 1.2;
}

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

.featured-title a:hover {
  color: var(--webanimal-secondary);
}

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

.featured-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #666;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.featured-read-more {
  background: #207daf;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.featured-read-more:hover {
  background: var(--webanimal-secondary);
  transform: translateY(-2px);
}

/* ================================
   GRID DE ARTÍCULOS CENTRADO
   ================================ */
.recent-articles-section {
  margin-bottom: 3rem;
  width: 100%;
}

.section-title {
  font-size: 2rem;
  color: var(--webanimal-primary);
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--webanimal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.recent-articles-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
  width: 100% !important;
}

/* Forzar grid en el contenedor principal de artículos - COMENTADO TEMPORALMENTE */
/*
.site-main .entry,
.site-main .post,
.site-main .type-post {
  width: 100% !important;
  margin: 0 0 2rem 0 !important;
  float: none !important;
}

/* Grid para artículos principales (no el destacado) */
/*
.site-main .entry:not(:first-child),
.site-main .post:not(:first-child),
.site-main .type-post:not(:first-child) {
  background: white !important;
  border-radius: 15px !important;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08) !important;
  overflow: hidden !important;
  border: 1px solid var(--webanimal-border) !important;
  transition: all 0.3s ease !important;
}

.site-main .entry:not(:first-child):hover,
.site-main .post:not(:first-child):hover,
.site-main .type-post:not(:first-child):hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}
*/

.entry-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--webanimal-border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.entry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.entry-thumbnail {
  overflow: hidden;
  width: 100%;
}

.entry-thumbnail img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.entry-card:hover .entry-thumbnail img {
  transform: scale(1.03);
}

.entry-card .entry-title {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 1.2rem 1.5rem 0.8rem;
}

.entry-card .entry-title a {
  color: var(--webanimal-dark);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.entry-card .entry-meta {
  color: var(--webanimal-gray);
  font-size: 0.9rem;
  margin: 0 1.5rem 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.entry-card .entry-summary {
  padding: 0 1.5rem 1rem;
  color: var(--webanimal-gray);
  line-height: 1.6;
  flex-grow: 1;
}

.entry-card .entry-taxonomies {
  padding: 0 1.5rem 1rem;
}

.entry-card .entry-taxonomies a {
  display: inline-block;
  background: var(--webanimal-light);
  color: var(--webanimal-primary);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  border: 1px solid var(--webanimal-border);
}

.entry-card .entry-taxonomies a:hover {
  background: var(--webanimal-primary);
  color: white;
  transform: translateY(-1px);
}

.entry-card .read-more {
  display: inline-block;
  background: var(--webanimal-primary);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  margin: 0 1.5rem 1.5rem;
  align-self: flex-start;
}

.entry-card .read-more:hover {
  background: var(--webanimal-secondary);
  transform: translateX(5px);
}

/* ================================
   LAYOUT PRINCIPAL CON SIDEBAR - ELIMINADO POR PROBLEMAS
   ================================ */

/* Contenido principal */
.content-area-main {
  width: 100%;
}

.secondary-article {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 0 0 1.5rem 0;
  border: 1px solid var(--webanimal-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.secondary-thumbnail {
  width: 100%;
}

.secondary-thumbnail img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.secondary-content {
  width: 100%;
}

.secondary-category {
  color: var(--webanimal-primary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.secondary-title {
  color: var(--webanimal-dark);
  margin: 0.5rem 0;
  font-size: 1.3rem;
  line-height: 1.3;
}

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

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

.secondary-excerpt {
  color: #666;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.secondary-meta {
  color: #666;
  font-size: 0.85rem;
}

/* Sidebar */
.widget-area,
#secondary,
aside {
  width: 100% !important;
}

.widget-area .widget,
#secondary .widget,
aside .widget {
  background: white !important;
  border-radius: 12px !important;
  padding: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid var(--webanimal-border) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.widget-area .widget-title,
#secondary .widget-title,
aside .widget-title {
  font-size: 1.1rem !important;
  color: var(--webanimal-primary) !important;
  border-bottom: 3px solid var(--webanimal-primary) !important;
  padding-bottom: 0.5rem !important;
  margin-bottom: 1rem !important;
  font-weight: 700 !important;
  margin-top: 0 !important;
}

/* Widget Los Más Vistos */
.widget-most-viewed,
.widget_popular_posts,
.widget_views {
  padding-left: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.widget-most-viewed li,
.widget_popular_posts li,
.widget_views li {
  margin-bottom: 1rem !important;
  padding-bottom: 1rem !important;
  border-bottom: 1px solid var(--webanimal-border) !important;
  transition: all 0.3s ease !important;
}

.widget-most-viewed li:hover,
.widget_popular_posts li:hover,
.widget_views li:hover {
  background: var(--webanimal-light) !important;
  padding-left: 0.5rem !important;
  margin: 0 -0.5rem 1rem -0.5rem !important;
  border-radius: 6px !important;
}

.widget-most-viewed li:last-child,
.widget_popular_posts li:last-child,
.widget_views li:last-child {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.widget-most-viewed a,
.widget_popular_posts a,
.widget_views a {
  color: var(--webanimal-primary) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  display: block !important;
  margin-bottom: 0.3rem !important;
  transition: color 0.3s ease !important;
}

.widget-most-viewed a:hover,
.widget_popular_posts a:hover,
.widget_views a:hover {
  color: var(--webanimal-secondary) !important;
}

.widget-most-viewed .view-count,
.widget_popular_posts .post-stats,
.widget_views .post-stats {
  color: #666 !important;
  font-size: 0.8rem !important;
}

/* Widget de Categorías */
.widget_categories ul,
.widget_archive ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.widget_categories ul li,
.widget_archive ul li {
  border-bottom: 1px solid var(--webanimal-border) !important;
  padding: 0.8rem 0 !important;
  transition: all 0.3s ease !important;
}

.widget_categories ul li:hover,
.widget_archive ul li:hover {
  background: var(--webanimal-light) !important;
  padding-left: 0.5rem !important;
  margin: 0 -0.5rem !important;
  border-radius: 6px !important;
}

.widget_categories ul li:last-child,
.widget_archive ul li:last-child {
  border-bottom: none !important;
}

.widget_categories a,
.widget_archive a {
  color: var(--webanimal-dark) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.3s ease !important;
}

.widget_categories a:hover,
.widget_archive a:hover {
  color: var(--webanimal-primary) !important;
}

.widget_categories .count,
.widget_archive .count {
  background: var(--webanimal-primary) !important;
  color: white !important;
  padding: 0.2rem 0.5rem !important;
  border-radius: 10px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  min-width: 24px !important;
  text-align: center !important;
  margin-left: 0.5rem !important;
}

/* ================================
   WIDGET SERVICIOS CERCA DE TI
   ================================ */
.widget-location-services {
  background: linear-gradient(135deg, rgba(32, 125, 175, 0.1), rgba(225, 77, 54, 0.05)) !important;
  border: 2px solid var(--webanimal-primary) !important;
}

.widget-location-services .widget-title {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  color: var(--webanimal-primary) !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
  border-bottom: 2px solid var(--webanimal-primary) !important;
  padding-bottom: 0.5rem !important;
}

.location-detection-status {
  text-align: center !important;
  padding: 1rem !important;
  color: var(--webanimal-gray) !important;
  font-size: 0.9rem !important;
}

.location-detection-status i {
  display: block !important;
  font-size: 2rem !important;
  margin-bottom: 0.5rem !important;
  color: var(--webanimal-primary) !important;
}

.location-service-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.location-service-item {
  background: white !important;
  border-radius: 10px !important;
  padding: 1rem !important;
  margin-bottom: 0.75rem !important;
  border: 1px solid var(--webanimal-border) !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

.location-service-item:hover {
  transform: translateX(5px) !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1) !important;
  border-color: var(--webanimal-primary) !important;
}

.location-service-icon {
  font-size: 1.5rem !important;
  margin-right: 0.5rem !important;
}

.location-service-name {
  font-weight: 600 !important;
  color: var(--webanimal-dark) !important;
  display: block !important;
  margin-bottom: 0.25rem !important;
}

.location-service-address {
  font-size: 0.85rem !important;
  color: var(--webanimal-gray) !important;
  display: block !important;
  margin-bottom: 0.25rem !important;
}

.location-service-distance {
  font-size: 0.8rem !important;
  color: var(--webanimal-primary) !important;
  font-weight: 600 !important;
}

.location-service-link {
  display: inline-block !important;
  margin-top: 0.5rem !important;
  color: var(--webanimal-primary) !important;
  text-decoration: none !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
}

.location-service-link:hover {
  color: var(--webanimal-secondary) !important;
}

.location-error {
  background: #fff3cd !important;
  border: 1px solid #ffc107 !important;
  border-radius: 8px !important;
  padding: 1rem !important;
  text-align: center !important;
  font-size: 0.9rem !important;
  color: #856404 !important;
}

.location-manual-input {
  margin-top: 1rem !important;
}

.location-manual-input input {
  width: 100% !important;
  padding: 0.5rem !important;
  border: 1px solid var(--webanimal-border) !important;
  border-radius: 5px !important;
  margin-bottom: 0.5rem !important;
  font-size: 0.9rem !important;
}

.location-manual-input button {
  width: 100% !important;
  padding: 0.5rem !important;
  background: var(--webanimal-primary) !important;
  color: white !important;
  border: none !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
}

.location-manual-input button:hover {
  background: var(--webanimal-secondary) !important;
}

/* ================================
   BOTÓN DE EMERGENCIAS
   ================================ */
.emergency-button {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
  color: white !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 15px 25px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4) !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.3s ease !important;
  animation: emergencyPulse 2s infinite !important;
}

.emergency-button:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6) !important;
}

.emergency-icon {
  font-size: 1.5rem !important;
}

.emergency-text {
  line-height: 1.2 !important;
  text-align: left !important;
}

.emergency-text small {
  font-size: 0.7rem !important;
  opacity: 0.9 !important;
}

@keyframes emergencyPulse {
  0% {
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(231, 76, 60, 0.7);
  }
  100% {
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
  }
}

/* ================================
   MODAL DE EMERGENCIAS
   ================================ */
.emergency-modal {
  display: none;
  position: fixed !important;
  z-index: 10000 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(0, 0, 0, 0.7) !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 20px !important;
}

.emergency-modal-content {
  background: white !important;
  border-radius: 20px !important;
  max-width: 600px !important;
  width: 100% !important;
  max-height: 80vh !important;
  overflow-y: auto !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}

.emergency-modal-header {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
  color: white !important;
  padding: 20px !important;
  border-radius: 20px 20px 0 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.emergency-modal-header h2 {
  margin: 0 !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
}

.emergency-close {
  background: none !important;
  border: none !important;
  color: white !important;
  font-size: 2rem !important;
  cursor: pointer !important;
  line-height: 1 !important;
  padding: 0 !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  transition: background 0.3s ease !important;
}

.emergency-close:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

.emergency-modal-body {
  padding: 20px !important;
}

.emergency-location-status {
  text-align: center !important;
  padding: 20px !important;
  background: #f8f9fa !important;
  border-radius: 10px !important;
  margin-bottom: 20px !important;
  font-size: 1rem !important;
  color: #333 !important;
}

.loading-spinner {
  display: inline-block !important;
  animation: spin 1s linear infinite !important;
  margin-right: 8px !important;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.emergency-vets-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;
}

.emergency-vet-card {
  background: #f8f9fa !important;
  border-radius: 15px !important;
  padding: 20px !important;
  border-left: 5px solid #e74c3c !important;
  transition: all 0.3s ease !important;
}

.emergency-vet-card:hover {
  transform: translateX(5px) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.emergency-vet-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  margin-bottom: 10px !important;
}

.emergency-vet-header h3 {
  margin: 0 !important;
  font-size: 1.1rem !important;
  color: #2c3e50 !important;
  font-weight: 700 !important;
}

.emergency-distance {
  background: #e74c3c !important;
  color: white !important;
  padding: 5px 10px !important;
  border-radius: 20px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

.emergency-address {
  color: #666 !important;
  margin: 0 0 15px 0 !important;
  font-size: 0.95rem !important;
}

.emergency-actions {
  display: flex !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
}

.emergency-call-btn,
.emergency-map-btn {
  flex: 1 !important;
  padding: 12px 15px !important;
  text-align: center !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  transition: all 0.3s ease !important;
}

.emergency-call-btn {
  background: #27ae60 !important;
  color: white !important;
}

.emergency-call-btn:hover {
  background: #229954 !important;
  transform: translateY(-2px) !important;
}

.emergency-map-btn {
  background: #3498db !important;
  color: white !important;
}

.emergency-map-btn:hover {
  background: #2980b9 !important;
  transform: translateY(-2px) !important;
}

.emergency-map-btn.full-width {
  flex: none !important;
  width: 100% !important;
}

.emergency-status {
  display: inline-block !important;
  padding: 5px 10px !important;
  border-radius: 5px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
}

.emergency-status.open {
  background: #d4edda !important;
  color: #155724 !important;
}

.emergency-status.closed {
  background: #f8d7da !important;
  color: #721c24 !important;
}

/* Búsqueda manual de emergencias */
.emergency-manual-search {
  text-align: center !important;
}

.emergency-manual-search p {
  margin-bottom: 15px !important;
  color: #666 !important;
}

.emergency-manual-search input {
  width: 100% !important;
  padding: 12px !important;
  border: 2px solid #ddd !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  margin-bottom: 10px !important;
  box-sizing: border-box !important;
}

.emergency-manual-search button {
  width: 100% !important;
  padding: 12px !important;
  background: #e74c3c !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.3s ease !important;
}

.emergency-manual-search button:hover {
  background: #c0392b !important;
}

/* Responsive */
@media (max-width: 768px) {
  .emergency-button {
    bottom: 20px !important;
    right: 20px !important;
    padding: 12px 18px !important;
    font-size: 0.8rem !important;
  }
  
  .emergency-modal-content {
    max-height: 90vh !important;
    margin: 10px !important;
  }
  
  .emergency-actions {
    flex-direction: column !important;
  }
  
  .emergency-vet-header {
    flex-direction: column !important;
    gap: 10px !important;
  }
  
  .emergency-distance {
    align-self: flex-start !important;
  }
}

/* ================================
   FOOTER CENTRADO
   ================================ */
.webanimal-footer {
  margin-top: 3rem;
  background: linear-gradient(180deg,
      #4a90c2 0%,
      #207daf 40%,
      #1a6a96 70%,
      rgba(255, 255, 255, 0.3) 100%);
  color: white;
  padding: 3rem 0 2rem;
  border-radius: 12px;
  text-align: center;
  width: 100%;
}

.webanimal-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
}

.webanimal-footer h4 {
  margin-top: 0;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.webanimal-footer p {
  margin-bottom: 0;
  font-size: 1rem;
}

/* Copyright Section */
.webanimal-copyright {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.webanimal-copyright-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.webanimal-copyright p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.webanimal-credits {
  font-size: 0.8rem !important;
  opacity: 0.7;
}

/* ================================
   PAGINACIÓN CENTRADA
   ================================ */
.navigation.pagination {
  text-align: center;
  margin: 3rem 0;
  width: 100%;
}

/* Ocultar paginación en homepage - no es necesaria */
body.home .navigation.pagination {
  display: none !important;
}

.navigation.pagination .page-numbers {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  margin: 0 0.3rem;
  background: white;
  border: 2px solid var(--webanimal-border);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 44px;
  line-height: 1.5;
}

.navigation.pagination .page-numbers:hover,
.navigation.pagination .page-numbers.current {
  background: var(--webanimal-primary);
  color: white;
  border-color: var(--webanimal-primary);
  transform: translateY(-2px);
}

/* ================================
   ANIMACIONES
   ================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.entry-card,
.secondary-article,
.featured-article {
  animation: fadeInUp 0.6s ease-out;
}

/* ================================
   MENÚ MÓVIL - BOTÓN HAMBURGUESA
   ================================ */
.webanimal-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.webanimal-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ================================
   RESPONSIVE - TABLET
   ================================ */
@media (max-width: 992px) {
  .webanimal-homepage {
    padding: 0 15px;
  }

  .webanimal-header-inner {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }

  .webanimal-logo {
    margin-right: 0;
  }

  .webanimal-menu-toggle {
    display: block !important;
    cursor: pointer !important;
    z-index: 1000;
    position: relative;
  }

  .webanimal-main-nav-wrapper {
    display: none !important;
  }

  .webanimal-nav-search {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #4a90c2 0%, #207daf 50%, #1a6a96 100%);
    padding: 1rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 9999;
  }

  .webanimal-nav-search.active {
    display: flex !important;
    z-index: 9999;
  }

  .webanimal-main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem !important;
  }

  .webanimal-main-nav li a {
    padding: 0.5rem 1rem !important;
    font-size: 0.95rem !important;
  }

  .webanimal-search-box {
    margin-left: 0;
    width: 100%;
    max-width: 300px;
  }

  .featured-image img {
    height: 300px;
  }

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

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

  .main-content-with-sidebar {
    grid-template-columns: 1fr;
  }

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

/* ================================
   RESPONSIVE - MÓVIL
   ================================ */
@media (max-width: 768px) {
  .webanimal-homepage {
    padding: 0 10px;
  }

  .webanimal-header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
  }

  .webanimal-logo {
    margin-right: 0;
  }

  .webanimal-logo a {
    font-size: 1.4rem;
  }

  .webanimal-menu-toggle {
    display: block;
    cursor: pointer;
    z-index: 1000;
    position: relative;
  }

  .webanimal-nav-search {
    display: none;
    width: 100%;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #4a90c2 0%, #207daf 50%, #1a6a96 100%);
    padding: 1rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 9999;
  }

  .webanimal-nav-search.active {
    display: flex !important;
    z-index: 9999;
  }

  .webanimal-main-nav {
    flex-direction: column;
    width: 100%;
    text-align: center;
    gap: 0.5rem;
  }

  .webanimal-main-nav li {
    display: block;
    width: 100%;
  }

  .webanimal-main-nav li a {
    padding: 0.8rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: block;
    font-size: 1rem !important;
  }

  .webanimal-search-box {
    margin: 1rem 0;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .recent-articles-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Ocultar submenús en móvil (se muestran al expandir) */
  .webanimal-main-nav ul,
  .webanimal-main-nav .sub-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    margin-top: 0.5rem !important;
  }

  .webanimal-main-nav ul li a,
  .webanimal-main-nav .sub-menu li a {
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem !important;
  }

  .featured-article {
    padding: 1.5rem;
  }

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

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

  .featured-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

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

  .secondary-thumbnail img {
    height: 200px;
  }

  .entry-card .entry-title {
    font-size: 1.1rem;
    margin: 1rem;
  }

  .entry-card .entry-meta,
  .entry-card .entry-summary,
  .entry-card .entry-taxonomies {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .entry-card .read-more {
    margin-left: 1rem;
  }

  .webanimal-footer {
    padding: 2rem 1rem;
  }

  .webanimal-footer h4 {
    font-size: 1.2rem;
  }
}

/* ================================
   ARTÍCULOS INDIVIDUALES (SINGLE)
   ================================ */

/* REGLA PRINCIPAL: Forzar ancho completo y centrar todo - SIN EXCEPCIONES */

/* Sobrescribir todas las clases de ancho de Kadence */
body.single-post #wrapper,
body.single-post #primary,
body.single-post #main,
body.single-post .site-main,
body.single-post .content-area,
body.single-post .content-container,
body.single-post .site-container,
body.single-post .content-wrap {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  float: none !important;
}

/* Forzar ancho completo eliminando restricciones de ancho narrow/boxed */
body.single-post,
body.single-post .wp-site-blocks,
body.single-post #inner-wrap {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
}

/* Eliminar estilos boxed que estrechan el contenido */
body.single-post.content-style-boxed .entry-content-wrap,
body.single-post .entry-content-wrap {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 2rem !important;
}

/* Asegurar que el artículo ocupe todo el ancho */
body.single-post article.single-entry {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
}

/* CENTRAR TODO EL CONTENIDO DEL ARTÍCULO */
body.single-post .entry-header,
body.single-post h1.entry-title,
body.single-post .post-thumbnail,
body.single-post .entry-content,
body.single-post .entry-content>*,
body.single-post .entry-footer {
  max-width: 1100px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: left !important;
}

/* Pero el contenido interno del artículo centrado */
body.single-post .entry-content {
  text-align: left !important;
}

body.single-post .entry-content p {
  max-width: 1100px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ================================
   NAVEGACIÓN ANTERIOR/SIGUIENTE
   ================================ */
body.single-post .post-navigation {
  max-width: 1100px !important;
  margin: 3rem auto !important;
  padding: 0 !important;
}

body.single-post .post-navigation .nav-links {
  display: flex !important;
  justify-content: space-between !important;
  gap: 1rem !important;
}

body.single-post .post-navigation .nav-previous,
body.single-post .post-navigation .nav-next {
  flex: 1 !important;
  max-width: 45% !important;
  background: white !important;
  border-radius: 12px !important;
  padding: 1.5rem !important;
  border: 1px solid var(--webanimal-border) !important;
}

body.single-post .post-navigation .nav-previous a,
body.single-post .post-navigation .nav-next a {
  color: var(--webanimal-primary) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  text-decoration: none !important;
}

body.single-post .post-navigation .nav-previous a:hover,
body.single-post .post-navigation .nav-next a:hover {
  color: var(--webanimal-secondary) !important;
}

body.single-post .post-navigation .nav-previous .post-title,
body.single-post .post-navigation .nav-next .post-title {
  font-size: 0.95rem !important;
  color: var(--webanimal-dark) !important;
  margin-top: 0.5rem !important;
}

body.single-post .post-navigation .nav-previous span,
body.single-post .post-navigation .nav-next span {
  font-size: 0.85rem !important;
  color: var(--webanimal-gray) !important;
  text-transform: uppercase !important;
}

/* ================================
   PUBLICACIONES SIMILARES - MEJORADO
   ================================ */
body.single-post .related-posts,
body.single-post .similar-posts,
body.single-post .related-entries,
body.single-post .kadence-related-posts,
.single-post .related-posts,
.single-post .similar-posts {
  max-width: 1100px !important;
  margin: 3rem auto !important;
  padding: 0 30px !important;
  width: 100% !important;
}

body.single-post .related-posts h2,
body.single-post .similar-posts h2,
body.single-post .related-entries h2,
body.single-post .kadence-related-posts h2,
.single-post .related-posts h2,
.single-post .similar-posts h2 {
  color: var(--webanimal-primary) !important;
  font-size: 1.5rem !important;
  text-align: left !important;
  margin-bottom: 1.5rem !important;
  padding-bottom: 0.5rem !important;
  border-bottom: 2px solid var(--webanimal-primary) !important;
}

body.single-post .related-posts .related-post-grid,
body.single-post .similar-posts .related-post-grid,
body.single-post .related-entries .related-post-grid,
body.single-post .kadence-related-posts .related-post-grid,
.single-post .related-posts .related-post-grid,
.single-post .similar-posts .related-post-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1rem !important;
}

body.single-post .related-posts article,
body.single-post .similar-posts article,
body.single-post .related-entries article,
body.single-post .kadence-related-posts article,
.single-post .related-posts article,
.single-post .similar-posts article {
  background: white !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  border: 1px solid var(--webanimal-border) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
  transition: all 0.3s ease !important;
}

body.single-post .related-posts article:hover,
body.single-post .similar-posts article:hover,
.single-post .related-posts article:hover,
.single-post .similar-posts article:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

body.single-post .related-posts article .post-thumbnail,
body.single-post .similar-posts article .post-thumbnail,
.single-post .related-posts article .post-thumbnail,
.single-post .similar-posts article .post-thumbnail {
  margin: 0 !important;
  overflow: hidden !important;
}

body.single-post .related-posts article .post-thumbnail img,
body.single-post .similar-posts article .post-thumbnail img,
.single-post .related-posts article .post-thumbnail img,
.single-post .similar-posts article .post-thumbnail img {
  width: 100% !important;
  height: 140px !important;
  object-fit: cover !important;
  transition: transform 0.3s ease !important;
}

body.single-post .related-posts article:hover .post-thumbnail img,
body.single-post .similar-posts article:hover .post-thumbnail img,
.single-post .related-posts article:hover .post-thumbnail img,
.single-post .similar-posts article:hover .post-thumbnail img {
  transform: scale(1.05) !important;
}

body.single-post .related-posts article .entry-title,
body.single-post .similar-posts article .entry-title,
.single-post .related-posts article .entry-title,
.single-post .similar-posts article .entry-title {
  font-size: 0.85rem !important;
  line-height: 1.3 !important;
  margin: 0.75rem !important;
  padding: 0 !important;
  font-weight: 600 !important;
}

body.single-post .related-posts article .entry-title a,
body.single-post .similar-posts article .entry-title a,
.single-post .related-posts article .entry-title a,
.single-post .similar-posts article .entry-title a {
  color: var(--webanimal-dark) !important;
  text-decoration: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

body.single-post .related-posts article .entry-title a:hover,
body.single-post .similar-posts article .entry-title a:hover,
.single-post .related-posts article .entry-title a:hover,
.single-post .similar-posts article .entry-title a:hover {
  color: var(--webanimal-primary) !important;
}

body.single-post .related-posts h2,
body.single-post .similar-posts h2,
body.single-post .related-entries h2,
body.single-post .kadence-related-posts h2 {
  color: var(--webanimal-primary) !important;
  font-size: 1.8rem !important;
  text-align: center !important;
  margin-bottom: 2rem !important;
  padding-bottom: 1rem !important;
  border-bottom: 3px solid var(--webanimal-primary) !important;
}

body.single-post .related-posts .related-post-grid,
body.single-post .similar-posts .related-post-grid,
body.single-post .related-entries .related-post-grid,
body.single-post .kadence-related-posts .related-post-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
}

body.single-post .related-posts article,
body.single-post .similar-posts article,
body.single-post .related-entries article,
body.single-post .kadence-related-posts article {
  background: white !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid var(--webanimal-border) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08) !important;
}

body.single-post .related-posts article .post-thumbnail,
body.single-post .similar-posts article .post-thumbnail,
body.single-post .related-entries article .post-thumbnail,
body.single-post .kadence-related-posts article .post-thumbnail {
  margin: 0 !important;
}

body.single-post .related-posts article .post-thumbnail img,
body.single-post .similar-posts article .post-thumbnail img,
body.single-post .related-entries article .post-thumbnail img,
body.single-post .kadence-related-posts article .post-thumbnail img {
  width: 100% !important;
  height: 180px !important;
  object-fit: cover !important;
}

body.single-post .related-posts article .entry-title,
body.single-post .similar-posts article .entry-title,
body.single-post .related-entries article .entry-title,
body.single-post .kadence-related-posts article .entry-title {
  font-size: 1rem !important;
  line-height: 1.3 !important;
  margin: 1rem !important;
  padding: 0 !important;
}

body.single-post .related-posts article .entry-title a,
body.single-post .similar-posts article .entry-title a,
body.single-post .related-entries article .entry-title a,
body.single-post .kadence-related-posts article .entry-title a {
  color: var(--webanimal-dark) !important;
  text-decoration: none !important;
}

body.single-post .related-posts article .entry-title a:hover,
body.single-post .similar-posts article .entry-title a:hover,
body.single-post .related-entries article .entry-title a:hover,
body.single-post .kadence-related-posts article .entry-title a:hover {
  color: var(--webanimal-primary) !important;
}

/* Responsive para navegación y relacionados */
@media (max-width: 992px) {
  body.single-post .related-posts .related-post-grid,
  body.single-post .similar-posts .related-post-grid,
  .single-post .related-posts .related-post-grid,
  .single-post .similar-posts .related-post-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  body.single-post .post-navigation .nav-links {
    flex-direction: column !important;
  }

  body.single-post .post-navigation .nav-previous,
  body.single-post .post-navigation .nav-next {
    max-width: 100% !important;
  }

  body.single-post .related-posts .related-post-grid,
  body.single-post .similar-posts .related-post-grid,
  .single-post .related-posts .related-post-grid,
  .single-post .similar-posts .related-post-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  body.single-post .related-posts .related-post-grid,
  body.single-post .similar-posts .related-post-grid,
  .single-post .related-posts .related-post-grid,
  .single-post .similar-posts .related-post-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ================================
   BIO DEL AUTOR
   ================================ */
body.single-post .author-bio {
  max-width: 1100px !important;
  margin: 3rem auto !important;
  padding: 2rem !important;
  background: var(--webanimal-light) !important;
  border-radius: 12px !important;
  border: 1px solid var(--webanimal-border) !important;
}

body.single-post .author-bio .author-title {
  font-size: 1.3rem !important;
  color: var(--webanimal-primary) !important;
  margin-bottom: 1rem !important;
}

body.single-post .author-bio .author-description {
  font-size: 1rem !important;
  color: var(--webanimal-dark) !important;
  line-height: 1.6 !important;
}

/* ================================
   COMENTARIOS
   ================================ */
body.single-post .comments-area {
  max-width: 1100px !important;
  margin: 3rem auto !important;
  padding: 0 !important;
}

body.single-post .comments-area .comments-title {
  font-size: 1.5rem !important;
  color: var(--webanimal-primary) !important;
  margin-bottom: 2rem !important;
  padding-bottom: 1rem !important;
  border-bottom: 2px solid var(--webanimal-border) !important;
}

body.single-post .comment-list {
  list-style: none !important;
  padding: 0 !important;
}

body.single-post .comment-list .comment {
  background: white !important;
  border-radius: 12px !important;
  padding: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  border: 1px solid var(--webanimal-border) !important;
}

body.single-post .comment-list .comment .comment-author .fn {
  font-weight: 600 !important;
  color: var(--webanimal-primary) !important;
}

body.single-post .comment-list .comment .comment-metadata {
  font-size: 0.85rem !important;
  color: var(--webanimal-gray) !important;
}

body.single-post .comment-list .comment .comment-content {
  margin-top: 1rem !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  color: var(--webanimal-dark) !important;
}

body.single-post .comment-respond {
  background: white !important;
  border-radius: 12px !important;
  padding: 2rem !important;
  border: 1px solid var(--webanimal-border) !important;
}

body.single-post .comment-respond .comment-reply-title {
  font-size: 1.3rem !important;
  color: var(--webanimal-primary) !important;
}

body.single-post .comment-form textarea,
body.single-post .comment-form input {
  border-radius: 8px !important;
  border: 1px solid var(--webanimal-border) !important;
  padding: 0.8rem !important;
}

body.single-post .comment-form .submit {
  background: var(--webanimal-primary) !important;
  color: white !important;
  border-radius: 25px !important;
  padding: 0.8rem 2rem !important;
  font-weight: 600 !important;
  border: none !important;
}

body.single-post .comment-form .submit:hover {
  background: var(--webanimal-secondary) !important;
}

/* Contenedor del contenido - MÁS ANCHO */
body.single-post .content-container.site-container,
body.single .content-container.site-container {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 0 30px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Ocultar sidebar */
body.single-post aside,
body.single-post .widget-area,
body.single-post #secondary,
.single-post aside,
.single-post .widget-area {
  display: none !important;
}

/* Main a ancho completo */
body.single-post #main.site-main,
body.single #main.site-main {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

/* Centrar header del artículo */
body.single-post .entry-header,
.single-post .entry-header {
  text-align: center !important;
  margin-bottom: 2rem !important;
}

/* Título del artículo */
body.single-post h1.entry-title,
body.single-post .entry-title,
.single-post h1.entry-title,
.single-post .entry-title {
  color: var(--webanimal-primary) !important;
  font-size: 2.5rem !important;
  line-height: 1.3 !important;
  margin-bottom: 1rem !important;
  text-align: center !important;
}

/* Meta información */
body.single-post .entry-meta,
.single-post .entry-meta {
  color: var(--webanimal-gray) !important;
  font-size: 0.95rem !important;
  display: flex !important;
  justify-content: center !important;
  gap: 1.5rem !important;
  flex-wrap: wrap !important;
  text-align: center !important;
}

/* Imagen destacada */
body.single-post .post-thumbnail,
.single-post .post-thumbnail {
  margin: 2rem 0 !important;
  text-align: center !important;
}

body.single-post .post-thumbnail img,
.single-post .post-thumbnail img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Contenido del artículo */
body.single-post .entry-content,
.single-post .entry-content {
  font-size: 1.1rem !important;
  line-height: 1.8 !important;
  color: var(--webanimal-dark) !important;
  max-width: 100% !important;
}

body.single-post .entry-content p,
.single-post .entry-content p {
  margin-bottom: 1.5rem !important;
}

body.single-post .entry-content h2,
.single-post .entry-content h2 {
  color: var(--webanimal-primary) !important;
  font-size: 1.8rem !important;
  margin: 2rem 0 1rem !important;
}

body.single-post .entry-content h3,
.single-post .entry-content h3 {
  color: var(--webanimal-dark) !important;
  font-size: 1.5rem !important;
  margin: 1.5rem 0 0.8rem !important;
}

body.single-post .entry-content img,
.single-post .entry-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px !important;
  margin: 1.5rem auto !important;
  display: block !important;
}

body.single-post .entry-footer,
.single-post .entry-footer {
  margin-top: 3rem !important;
  padding-top: 2rem !important;
  border-top: 2px solid var(--webanimal-border) !important;
}

/* Responsive para artículos individuales */
@media (max-width: 768px) {

  body.single-post #primary.content-area,
  body.single #primary.content-area,
  .single-post #primary.content-area,
  .single #primary.content-area {
    padding: 10px !important;
  }

  body.single-post .content-container.site-container,
  body.single .content-container.site-container {
    padding: 0 10px !important;
  }

  body.single-post h1.entry-title,
  body.single-post .entry-title,
  .single-post h1.entry-title,
  .single-post .entry-title {
    font-size: 1.6rem !important;
  }

  body.single-post .entry-content,
  .single-post .entry-content {
    font-size: 1rem !important;
  }

  body.single-post .entry-meta,
  .single-post .entry-meta {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
}

/* ================================
   PÁGINAS DE CATEGORÍA Y ARCHIVO
   ================================ */

/* RESET GENERAL: Todos los artículos en categorías deben verse igual */
body.archive article,
body.category article,
body.archive article:first-child,
body.category article:first-child,
body.archive article.sticky,
body.category article.sticky {
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 15px !important;
  overflow: hidden !important;
}

/* Centrar contenido en páginas de categoría */
body.archive #primary.content-area,
body.category #primary.content-area {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 20px !important;
}

/* Contenedor del contenido de categoría */
body.archive .content-container.site-container,
body.category .content-container.site-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  width: 100% !important;
}

/* Título de la categoría */
body.archive .archive-title,
body.category .archive-title,
body.archive h1.page-title,
body.category h1.page-title {
  color: var(--webanimal-primary) !important;
  font-size: 2.5rem !important;
  text-align: center !important;
  margin-bottom: 2rem !important;
}

/* Grid de artículos en categoría */
body.archive .content-wrap,
body.category .content-wrap {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
}

/* Artículos individuales en categoría - TODOS incluyendo el primero */
body.archive article.loop-entry,
body.category article.loop-entry,
body.archive article.loop-entry:first-child,
body.category article.loop-entry:first-child {
  background: white !important;
  border-radius: 15px !important;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden !important;
  border: 1px solid var(--webanimal-border) !important;
  margin: 0 !important;
  width: 100% !important;
}

body.archive article.loop-entry:hover,
body.category article.loop-entry:hover,
body.archive article.loop-entry:first-child:hover,
body.category article.loop-entry:first-child:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

/* Forzar que sticky posts se vean igual que los demás */
body.archive article.sticky,
body.category article.sticky,
body.archive article.loop-entry.sticky,
body.category article.loop-entry.sticky {
  background: white !important;
  border-radius: 15px !important;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid var(--webanimal-border) !important;
}

/* Imágenes en artículos de categoría */
body.archive article.loop-entry .post-thumbnail,
body.category article.loop-entry .post-thumbnail,
body.archive article.loop-entry:first-child .post-thumbnail,
body.category article.loop-entry:first-child .post-thumbnail {
  margin: 0 !important;
  width: 100% !important;
}

body.archive article.loop-entry .post-thumbnail img,
body.category article.loop-entry .post-thumbnail img,
body.archive article.loop-entry:first-child .post-thumbnail img,
body.category article.loop-entry:first-child .post-thumbnail img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
}

/* Contenido de artículos en categoría */
body.archive article.loop-entry .entry-content-wrap,
body.category article.loop-entry .entry-content-wrap,
body.archive article.loop-entry:first-child .entry-content-wrap,
body.category article.loop-entry:first-child .entry-content-wrap {
  padding: 1.5rem !important;
}

body.archive article.loop-entry h2.entry-title,
body.category article.loop-entry h2.entry-title,
body.archive article.loop-entry:first-child h2.entry-title,
body.category article.loop-entry:first-child h2.entry-title {
  font-size: 1.2rem !important;
  line-height: 1.3 !important;
  margin-bottom: 1rem !important;
}

body.archive article.loop-entry h2.entry-title a,
body.category article.loop-entry h2.entry-title a,
body.archive article.loop-entry:first-child h2.entry-title a,
body.category article.loop-entry:first-child h2.entry-title a {
  color: var(--webanimal-dark) !important;
  text-decoration: none !important;
}

body.archive article.loop-entry h2.entry-title a:hover,
body.category article.loop-entry h2.entry-title a:hover,
body.archive article.loop-entry:first-child h2.entry-title a:hover,
body.category article.loop-entry:first-child h2.entry-title a:hover {
  color: var(--webanimal-primary) !important;
}

/* Meta información en categoría */
body.archive article.loop-entry .entry-meta,
body.category article.loop-entry .entry-meta,
body.archive article.loop-entry:first-child .entry-meta,
body.category article.loop-entry:first-child .entry-meta {
  color: var(--webanimal-gray) !important;
  font-size: 0.9rem !important;
  margin-bottom: 1rem !important;
}

/* Ocultar sidebar en categorías para grid completo */
body.archive aside.widget-area,
body.category aside.widget-area {
  display: none !important;
}

/* Responsive para categorías */
@media (max-width: 992px) {

  body.archive .content-wrap,
  body.category .content-wrap {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
}

@media (max-width: 768px) {

  body.archive .content-wrap,
  body.category .content-wrap {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  body.archive .archive-title,
  body.category .archive-title,
  body.archive h1.page-title,
  body.category h1.page-title {
    font-size: 1.8rem !important;
  }
}

/* ================================
   OCULTAR CONTADOR DE VISTAS - GLOBAL
   ================================ */
/* Ocultar cualquier elemento que contenga el emoji de ojo (👁️) o texto de vistas */
span:has(img.emoji[alt="👁️"]),
span:has(img.emoji[alt="👁"]),
.entry-meta > span:nth-child(3),
.featured-meta > span:nth-child(3),
.post-meta > span:nth-child(3),
.single-post .entry-meta > span:nth-child(3) {
  display: none !important;
}

/* Ocultar por clases comunes de contadores de vistas */
.views,
.view-count,
.post-views,
.entry-views,
.views-count,
.post-view-count,
article .views,
.loop-entry .views {
  display: none !important;
}

/* Ocultar en el destacado específicamente */
.featured-meta span {
  display: inline-flex !important;
}

.featured-meta span:has(img.emoji[alt="👁️"]),
.featured-meta span:has(img.emoji[alt="👁"]) {
  display: none !important;
}
