/*
Theme Name:     Hello Elementor Child
Theme URI:      https://elementor.com/hello-theme/
Description:    Tema hijo de Hello Elementor
Author:         Tu nombre
Author URI:     https://tusitio.com
Template:       hello-elementor
Version:        1.0
Text Domain:    hello-elementor-child
*/

/* Contenedor global fijado a 937px de ancho */
.vt-mod-after-of-before {
  width: 937px;
  margin: 0 auto;
}

/* Visor principal: tamaño fijo de 650px de alto */
.visor-principal {
  position: relative;
  width: 100%;
  height: 650px; /* Altura fija */
  overflow: hidden;
  transition: opacity 0.5s ease; /* Para el efecto fade */
}

/* Clase para aplicar fade al cambiar el par */
.visor-principal.fade {
  opacity: 0;
}

/* Contenedor interno del slider */
.img-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Las imágenes se posicionan de forma absoluta para ocupar todo el contenedor */
.img-comp-before,
.img-comp-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-comp-after {
  z-index: 2;
}

/* Slider/divisor para el efecto before/after */
.img-comp-slider {
  position: absolute;
  top: 0;
  left: 50%;  /* Inicia en el centro */
  width: 12px;  /* Ancho aumentado para mayor visibilidad */
  height: 100%;
  background-color: rgba(255,255,255,0.8);
  border: 1px solid #aaa;
  cursor: ew-resize;
  transform: translateX(-50%);
  z-index: 3;
  transition: left 0.3s ease;
}

/* Pseudo-elemento para el handle circular */
.img-comp-slider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background-color: #fff;
  border: 2px solid #333;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

/* Botones de control: se posicionan en la esquina inferior del visor.
   Se ha incrementado el z-index para que queden por encima de las imágenes. */
.btn-before,
.btn-after {
  position: absolute;
  bottom: 10px;  /* 10px desde el fondo */
  z-index: 10;   /* Mayor z-index para estar por encima de todo */
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 14px;
}

/* Botón "Before" situado a la izquierda */
.btn-before {
  left: 10px;
}

/* Botón "After" situado a la derecha */
.btn-after {
  right: 10px;
}

/* Miniaturas: contenedor en fila, cada miniatura de 100px x 100px */
.vt-thumbnails {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 10px;
}

.vt-thumbnail {
  width: 100px;
  height: 100px;
  margin: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.3s ease;
}

.vt-thumbnail.active {
  border: 2px solid #333;
}

.vt-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ESTILOS PARA CARDS SERVICIOS */
.mi-hover-wrapper {
    position: relative;
    overflow: hidden; /* Evita que se salga el contenido al hacer zoom */
    background-size: 100%; /* Estado normal del fondo */
    background-position: center; /* Fondo centrado */
    transition: background-size 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

/* Pseudo-elemento para oscurecer el fondo sin afectar al texto */
.mi-hover-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent; /* Sin oscurecimiento por defecto */
    z-index: 1;
    transition: background 0.5s ease-in-out;
}

.mi-hover-wrapper:hover::before {
    background: rgba(0, 0, 0, 0.5); /* Oscurece el fondo en hover */
}

.mi-hover-wrapper:hover {
    background-size: 110%; /* Efecto zoom sutil en el fondo */
    box-shadow: inset 0 0 0 10px #5F6B47; /* Marco interno de 10px con el color deseado */
}

.overlay {
    position: absolute;
    z-index: 2; /* Sobre el pseudo-elemento para que el texto permanezca claro */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase; /* Transforma el texto */
    opacity: 0; /* Comienza oculto */
    transition: opacity 0.5s ease-in-out;
}

.mi-hover-wrapper:hover .overlay {
    opacity: 1;
}



/* CARROUSEL DE IMAGENES HOME */
.carruselLogos .swiper-slide-image {
    max-height: 120px;
    padding: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carruselLogos .swiper-wrapper {
    transition-timing-function: linear !important;
}



/* ESTILOS PARA EL BREADCUMB */
.breadcrumb {
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  font-size: 16px;
  color: #000;
}

.breadcrumb a {
  color: #000;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .separator {
  margin: 0 8px;
  color: #666;
}
