/*
 Theme Name:   Soledad Child Theme
 Theme URI:    http://pencidesign.com/
 Description:  Soledad Child Theme - Made by PenciDesign
 Author:       Pencidesign
 Version:      1.0
 Author URI:   http://pencidesign.com/
 Template:     soledad
 Text Domain:  soledad
*/

/* = Theme customization go here
-------------------------------------------------------------- */
h3.pcbg-title {
  line-height: 1;
}

.archive-box .title-bar {

  margin-bottom: 30px;
  position: relative;
  text-align: left;
  line-height: 1.3;
  background: 0 0;
  text-transform: uppercase;

}

.archive-box .title-bar h1 {
  border: 1px solid #e8280b;
  background: #fff;
  position: relative;
  display: block;
  text-transform: uppercase;
  padding: 8px 12px 7px;
  z-index: 3;

  border-left-width: 6px;
}

.header-date {
  color: white;
  font-size: 0.8em;
}

.pcbg-bgoverlay.active-overlay {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 25%, #000 100%);
}

.cat.pcbg-sub-title,
.grid-post-box-meta {
  /*  display: none;*/
}

.grid-featured {
  border: 0 !important;
}

.grid-featured .penci-featured-infor {
  padding: 0px !important;
  margin-top: 10px !important;
  margin-bottom: 5px !important;
}

.elementor-tabs {
  display: block !important;
  /* no flex ni grid, para evitar columna */
}

.tabs-titles-container {
  display: flex !important;
  gap: 8px;
  border-bottom: 2px solid #ccc;
  padding-left: 10px;
  background-color: #f5f5f5;
  border-radius: 6px 6px 0 0;
  /* Forzar alineación horizontal */
  flex-wrap: nowrap;
  overflow-x: auto;
}

.elementor-tab-title {
  display: inline-block !important;
  /* forzar en línea */
  padding: 12px 24px;
  cursor: pointer;
  color: #333;
  font-weight: 600;
  user-select: none;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background-color: #f5f5f5;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.elementor-tab-title.elementor-active {
  background-color: #0073e6;
  color: #fff;
  border-color: #0073e6;
  border-bottom: 2px solid white;
  /* pega al contenido */
}

.elementor-tab-content {
  display: none;
  padding: 16px;
  border: 1px solid #ccc;
  border-top: none;
  background-color: #fff;
  border-radius: 0 6px 6px 6px;
  color: #444;
  line-height: 1.5;
}

.elementor-tab-content.active,
.elementor-tab-content[style*="display: block"] {
  display: block !important;
}

aside#block-25 {
  padding: 20px !important;
}

/* Layout responsivo para sidebar */
.elementor-container {
  display: flex;
  flex-wrap: wrap;
}

.elementor-col-66 {
  width: 66.666%;
  flex: 0 0 66.666%;
}

.elementor-col-33 {
  width: 33.333%;
  flex: 0 0 33.333%;
}

/* Ocultar sidebar específico en móvil y tablet vertical */
@media (max-width: 1024px) {

  /* Solo ocultar el sidebar específico, no el contenido principal */
  .penci-ercol-33 .penci-sidebar-content,
  .penci-ercol-33 .theiaStickySidebar,
  .elementor-col-33 .theiaStickySidebar,
  .elementor-widget-penci-sidebar,
  #sidebar {
    display: none !important;
  }

  /* Ajustar el contenido principal cuando se oculta el sidebar */
  .penci-ercol-66.penci-sticky-ct {
    width: 100% !important;
    flex: 0 0 100% !important;
  }
}

/* Específicamente para tablets en orientación vertical */
@media (max-width: 768px) and (orientation: portrait) {

  .penci-ercol-33 .penci-sidebar-content,
  .penci-ercol-33 .theiaStickySidebar,
  .elementor-col-33 .theiaStickySidebar,
  .elementor-widget-penci-sidebar,
  #sidebar {
    display: none !important;
  }

  .penci-ercol-66.penci-sticky-ct {
    width: 100% !important;
    flex: 0 0 100% !important;
  }
}

/* Para móviles */
@media (max-width: 480px) {

  .penci-ercol-33 .penci-sidebar-content,
  .penci-ercol-33 .theiaStickySidebar,
  .elementor-col-33 .theiaStickySidebar,
  .elementor-widget-penci-sidebar,
  #sidebar {
    display: none !important;
  }

  .penci-ercol-66.penci-sticky-ct {
    width: 100% !important;
    flex: 0 0 100% !important;
  }
}

/* Botón para mostrar sidebar en móvil/tablet */
.sidebar-mobile-button {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #e8280b;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
}

.sidebar-mobile-button:hover {
  background: #c71f08;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.sidebar-mobile-button i {
  margin-right: 8px;
}

/* Mostrar botón solo en móvil/tablet */
@media (max-width: 1024px) {
  .sidebar-mobile-button {
    display: block !important;
  }
}

/* Lightbox para sidebar */
.sidebar-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  overflow: hidden;
}

.sidebar-lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-lightbox-content {
  background: white;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.3s ease;
}

.sidebar-lightbox-header {
  background: #e8280b;
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.sidebar-lightbox-header h3 {
  display: none;
}

.sidebar-close-button {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.sidebar-close-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.sidebar-lightbox-body {
  padding: 20px;
  max-height: calc(90vh - 70px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sidebar-lightbox-body::-webkit-scrollbar {
  width: 6px;
}

.sidebar-lightbox-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.sidebar-lightbox-body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.sidebar-lightbox-body::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Estilos para el contenido del sidebar en el lightbox */
.sidebar-lightbox-body .widget {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.sidebar-lightbox-body .widget:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.sidebar-lightbox-body .widget-title {
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* =================================================================
   ESTILOS PARA DIRECTORIO FILTER - CARDS BONITAS
   ================================================================= */

/* Header del filtro */
.directorio-filter-header {
  background: linear-gradient(135deg, #e8280b 0%, #c71f08 100%);
  color: white;
  padding: 40px 30px;
  border-radius: 15px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.directorio-filter-header h1.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.directorio-filter-header .filter-subtitle {
  font-size: 1.1rem;
  margin: 10px 0;
  opacity: 0.9;
}

.directorio-filter-header .results-count {
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  margin-top: 15px;
  backdrop-filter: blur(10px);
}

.directorio-filter-header .count-number {
  font-size: 1.5rem;
  font-weight: 700;
  margin-right: 5px;
}

/* Container principal */
.medium-12.column {
  max-width: 100%;
  padding: 0;
}

/* Estilos para client-box mejorados */
.client-box {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.client-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.client-box a {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

/* Layout horizontal para desktop */
.client-box a {
  display: flex;
  align-items: stretch;
  min-height: 180px;
}

/* Imagen del cliente */
.client-box img {
  width: 300px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.client-box:hover img {
  transform: scale(1.05);
}

/* Contenido del cliente */
.client-box-content {
  padding: 25px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.client-box-content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, #e8280b 0%, #c71f08 100%);
  border-radius: 0 2px 2px 0;
}

.client-box-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  color: #2c3e50;
  line-height: 1.3;
}

.client-box-content h3 strong {
  background: linear-gradient(135deg, #e8280b 0%, #c71f08 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.client-box-content p {
  color: #666;
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

/* Efectos hover adicionales */
.client-box::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 20px 20px 0;
  border-color: transparent #e8280b transparent transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.client-box:hover::after {
  opacity: 1;
}

/* Icono de enlace */
.client-box::before {
  content: '\f35d';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 15px;
  right: 15px;
  color: #e8280b;
  font-size: 1.2rem;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  z-index: 2;
}

.client-box:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* Responsive para tablets */
@media (max-width: 1024px) {
  .client-box a {
    flex-direction: column;
    min-height: auto;
  }

  .client-box img {
    width: 100%;
    height: 200px;
  }

  .client-box-content {
    padding: 20px 25px;
  }

  .directorio-filter-header h1.page-title {
    font-size: 2rem;
  }
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .client-box {
    margin-bottom: 20px;
    border-radius: 15px;
  }

  .client-box img {
    height: 160px;
  }

  .client-box-content {
    padding: 15px 20px;
  }

  .client-box-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .client-box-content p {
    font-size: 0.9rem;
  }

  .directorio-filter-header {
    padding: 25px 20px;
    margin-bottom: 20px;
  }

  .directorio-filter-header h1.page-title {
    font-size: 1.6rem;
  }

  .directorio-filter-header .filter-subtitle {
    font-size: 1rem;
  }
}

/* Animaciones para carga */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.client-box {
  animation: fadeInUp 0.6s ease;
}

.client-box:nth-child(1) {
  animation-delay: 0.1s;
}

.client-box:nth-child(2) {
  animation-delay: 0.2s;
}

.client-box:nth-child(3) {
  animation-delay: 0.3s;
}

.client-box:nth-child(4) {
  animation-delay: 0.4s;
}

.client-box:nth-child(5) {
  animation-delay: 0.5s;
}

/* Estilos para paginación */
.directorio-filter-pagination {
  text-align: center;
  margin-top: 40px;
  padding: 20px 0;
}

.directorio-filter-pagination .page-numbers {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 5px;
  background: #fff;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  color: #e8280b;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.directorio-filter-pagination .page-numbers:hover,
.directorio-filter-pagination .page-numbers.current {
  background: linear-gradient(135deg, #e8280b 0%, #c71f08 100%);
  color: white;
  border-color: #e8280b;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(232, 40, 11, 0.3);
}

/* Mensaje de no resultados */
.no-directorio-found {
  text-align: center;
  padding: 60px 30px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.no-directorio-found .no-results-icon {
  font-size: 4rem;
  color: #e1e8ed;
  margin-bottom: 20px;
}

.no-directorio-found h2 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.no-directorio-found p {
  color: #666;
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.no-results-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.no-results-actions a {
  display: inline-flex;
  align-items: center;
  padding: 12px 25px;
  background: linear-gradient(135deg, #e8280b 0%, #c71f08 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.no-results-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232, 40, 11, 0.3);
}

.no-results-actions a i {
  margin-right: 8px;
}

/* Mostrar vídeo y ocultar imagen destacada del tema */
.single.has-featured-video .post-image,
.single.has-featured-video .standard-post-image,
.single.has-featured-video .standard-post-special.post-image,
.single.has-featured-video .penci-entry-media {
  display: none !important;
}

/* Responsive del bloque de vídeo */
.ap-featured-video {
  aspect-ratio: 16/9;
  width: 100%;
}

.ap-featured-video iframe,
.ap-featured-video video {
  width: 100%;
  height: 100%;
  display: block;
}
