/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

.servicio-tags-inline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.servicio-tags-inline li {
    display: flex;
    align-items: center;
    font-family: Karla, sans-serif;
    font-size: 13px;
    color: var(--e-global-color-15e26ab);
}
.servicio-tags-inline .tag-icon {
    color: var(--e-global-color-15e26ab);
    font-weight: bold;
    margin-right: 6px;
}

/* Elementor Gallery to Swiper Slider Styles */
/* Main container for the gallery slider */
.gallery-slider-container {
  width: 100%;
  max-width: none;
  position: relative;
}

/* Swiper container styling */
.gallery-slider-container .swiper {
  width: 100%;
  height: auto;
  position: relative;
}

/* Swiper wrapper */
.gallery-slider-container .swiper-wrapper {
  display: flex;
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Individual slides - Grid layout (4 columns x 2 rows) */
.gallery-slider-container .swiper-slide {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 15px;
  padding: 15px;
  height: auto;
  align-items: start;
  width: 100%;
  flex-shrink: 0;
}

/* Gallery items within slides */
.gallery-slider-container .elementor-gallery-item {
  width: 100% !important;
  display: block !important;
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer;
  /* Aspect ratio cuadrado usando padding-bottom */
  height: 0;
  padding-bottom: 100%;
}

/* Gallery image elements */
.gallery-slider-container .e-gallery-image {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

/* Swiper pagination */
.gallery-slider-container .swiper-pagination {
  position: relative !important;
  bottom: auto !important;
  margin-top: 20px;
  text-align: center;
}

.gallery-slider-container .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #ffffff;
  opacity: 0.5;
  margin: 0 5px;
  border-radius: 50%;
  border: 1px solid var( --e-global-color-bf890a9 );
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-slider-container .swiper-pagination-bullet-active {
  background: var( --e-global-color-bf890a9 );
  opacity: 1;
  transform: scale(1.2);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablet (≤ 1024px): 3 columnas x 2 filas = 6 items por slide */
@media (max-width: 1024px) {
  .gallery-slider-container .swiper-slide {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 12px;
    padding: 12px;
  }
}

/* Móvil (≤ 768px): 2 columnas x 2 filas = 4 items por slide */
@media (max-width: 768px) {
  .gallery-slider-container .swiper-slide {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 10px;
    padding: 10px;
  }
}

/* Hover effects */
.gallery-slider-container .elementor-gallery-item:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.gallery-slider-container .e-gallery-image:hover {
  filter: brightness(1.1);
  transition: filter 0.3s ease;
}

/* Loading state */
.gallery-slider-container .swiper-slide-duplicate {
  opacity: 1;
}

/* Ensure proper aspect ratio is maintained */
.gallery-slider-container .elementor-gallery-item * {
  box-sizing: border-box;
}

/* Custom lightbox compatibility */
.gallery-slider-container .elementor-gallery-item .elementor-gallery-item__overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3 !important;
}

.gallery-slider-container .elementor-gallery-item:hover .elementor-gallery-item__overlay {
  opacity: 1;
}

/* Navigation arrows if needed in future */
.gallery-slider-container .swiper-button-next,
.gallery-slider-container .swiper-button-prev {
  color: #007cba;
  width: 40px;
  height: 40px;
  margin-top: -20px;
}

.gallery-slider-container .swiper-button-next:after,
.gallery-slider-container .swiper-button-prev:after {
  font-size: 20px;
  font-weight: bold;
}

/* --- Ajuste general del carrusel --- */
.image-slider-simple .swiper,
.image-slider-places .elementor-widget-image {
  width: 100%;
  height: 100%;
}

.image-slider-simple .swiper-slide{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  overflow: hidden;
}


.image-slider-simple .swiper-slide img ,
.image-slider-places .elementor-widget-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.image-slider-simple figure {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

.image-slider-simple .swiper-pagination-bullet-active,
.image-slider-places .swiper-pagination-bullet-active {
    background: #fff;
}

.image-slider-simple .swiper-pagination-bullet,
.image-slider-places .swiper-pagination-bullet {
    border: 1px solid #fff;
}

.image-slider-simple .swiper-pagination .swiper-pagination-bullet:hover:not(.swiper-pagination-bullet-active),
.image-slider-places .swiper-pagination .swiper-pagination-bullet:hover:not(.swiper-pagination-bullet-active) {
    background: #fff;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.cld-carousel .swiper-pagination-bullet,
.image-slider-places .swiper-pagination-bullet {
    border: 2px solid #fff;
    opacity: 1;
}
.cld-carousel .swiper-pagination-bullet-active,
.image-slider-places .swiper-pagination-bullet-active {
    background: #fff;
}

.image-slider-spaces img {
    object-fit: cover;

}


.list-posts .elementskit-entry-thumb {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.list-posts .elementskit-entry-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.list-posts .post-items {
    align-items: stretch;
}

.list-posts .post-items > [class*="col-"] {
    display: flex;
}

.list-posts .elementskit-post-image-card {
    display: flex !important;
    flex-direction: column;
    width: 100%;
}

.list-posts .elementskit-post-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.list-posts .btn-wraper {
    margin-top: auto;
}

.wpml-ls-legacy-dropdown {
  width: 48px;
}
.wpml-ls-legacy-dropdown a,
.wpml-ls-statics-shortcode_actions,
.wpml-ls-statics-shortcode_actions .wpml-ls-current-language > a {
  padding: 0;
  background-color: transparent !important;
  color: #fff;
  border: 0;
}
.wpml-ls-statics-shortcode_actions .wpml-ls-current-language:hover>a {
  color: #fff;
}
.wpml-ls-legacy-dropdown .wpml-ls-sub-menu {
  border-top: 0;
}


.wpml-ls-legacy-dropdown .wpml-ls-item {
    padding: 2px 0;
}