/*
Theme Name: Porto Child
Theme URI: https://www.portotheme.com/wordpress/porto
Author: P-THEMES
Author URI: https://www.portotheme.com/
Description: Porto Responsive WordPress + eCommerce Theme.
Version: 1.1
Template: porto
License: Commercial
License URI: http://themeforest.net/licenses/regular_extended
Tags: woocommerce, corporate, ecommerce, responsive, blue, black, green, white, light, dark, red, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
*/

/*************** ADD YOUR CUSTOM CSS HERE  ***************/

.no-breadcrumbs .main-content {
  padding-top: 0;
}

/* SEARCH FORM HEADER */
#header .search-toggle i:before {
  background: var(--porto-primary-color);
  padding: 12px;
  border-radius: 100%;
  color: var(--porto-primary-color-inverse, #fff);
  width: 50px;
  height: 50px;
}
#header .search-toggle i:hover:before {
  background: var(--porto-primary-light-7);
}
/* FIN SEARCH FORM HEADER */

/* SELECTOR DE IDIOMA WPML CUSTOM */
.selector-idioma-custom-wpml
  .wpml-ls-legacy-dropdown
  a.wpml-ls-item-toggle:after {
  display: none;
}

.selector-idioma-custom-wpml .wpml-ls-legacy-dropdown {
  width: auto;
}

.selector-idioma-custom-wpml .wpml-ls-legacy-dropdown a.wpml-ls-item-toggle {
  border: none;
  background: none;
  padding: 5px 10px;
}
/* FIN SELECTOR DE IDIOMA WPML CUSTOM */

.btn {
  font-weight: bold;
}

.elemento-titulo-con-subtitulo .porto-u-main-heading h2,
.elemento-titulo-con-subtitulo .porto-u-sub-heading {
  font-weight: 700;
}

.elemento-titulo-con-subtitulo .porto-u-main-heading h2 {
  font-size: 3rem;
  text-transform: uppercase;
  line-height: 3rem;
}

.elemento-titulo-con-subtitulo .porto-u-sub-heading {
  font-size: 1.25rem;
}

/* PÁGINA DE RESULTADOS DE BÚSQUEDA */
/* Estilos del encabezado */
.search-header {
  margin-top: 120px;
  margin-bottom: 2rem;
}

.search-title {
  font-size: 2rem;
  color: #333;
  margin: 1rem 0;
}

.search-title i {
  margin-right: 0.5rem;
  color: var(--porto-primary-color);
}

/* Breadcrumbs */
.page-top {
  background-color: unset;
}
.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.breadcrumb-item a {
  color: var(--porto-body-color);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--porto-primary-color);
}

/* Estadísticas y filtros */
.search-stats {
  margin-bottom: 2rem;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stats-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #6c757d;
}

.filters-container {
  margin-bottom: 2rem;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: #f8f9fa;
}

.filter-btn.active {
  background: var(--porto-primary-color);
  color: #fff;
  border-color: var(--porto-primary-color);
}

.filter-btn .count {
  margin-left: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Grid de resultados */
.resultados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Tarjetas de resultado */
.resultado-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.resultado-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  line-height: normal;
  margin: 0 0 1rem 0;
  color: #333;
}

.card-description {
  color: #6c757d;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: #6c757d;
}

.resource-type {
  display: flex;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: #e9ecef;
  border-radius: 15px;
  font-size: 0.75rem;
  color: #495057;
}

/* Estados de carga y error */
.loading-state {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.skeleton-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skeleton-image {
  height: 200px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.skeleton-content {
  padding: 1.5rem;
}

.skeleton-title {
  height: 24px;
  background: #f0f0f0;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.skeleton-text {
  height: 16px;
  background: #f0f0f0;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  width: 90%;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.no-results,
.error-state {
  text-align: center;
  padding: 4rem 2rem;
}

.no-results > i,
.error-state > i {
  font-size: 4rem;
  color: #6c757d;
  margin-bottom: 1rem;
}

/* Botón cargar más */
.load-more-container {
  text-align: center;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .resultados-grid {
    grid-template-columns: 1fr;
  }

  .search-title {
    font-size: 1.5rem;
  }

  .stats-info {
    flex-direction: column;
    gap: 0.5rem;
  }
}
/* FIN PÁGINA DE RESULTADOS DE BÚSQUEDA */
