/* 
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 */

#bg-slideshow {
  position: relative;
  overflow: hidden;
}

/* Slides */
#bg-slideshow .bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: fadeSlide 20s infinite;
}

/* Asignación de imágenes */
#bg-slideshow .bg-slide:nth-child(1) {
  background-image: url('https://aireformas.com/wp-content/uploads/2026/04/29_jotajotape_NEXT.jpg');
  animation-delay: 0s;
}

#bg-slideshow .bg-slide:nth-child(2) {
  background-image: url('https://aireformas.com/wp-content/uploads/2026/04/75_ARMARIO_DESPACHO_jotajotape_NEXT.jpg');
  animation-delay: 5s;
}

#bg-slideshow .bg-slide:nth-child(3) {
  background-image: url('https://aireformas.com/wp-content/uploads/2026/04/69_LAVADERO_jotajotape_NEXT.jpg');
  animation-delay: 10s;
}

#bg-slideshow .bg-slide:nth-child(4) {
  background-image: url('https://aireformas.com/wp-content/uploads/2026/04/57_jotajotape_NEXT.jpg');
  animation-delay: 15s;
}

/* Animación suave real */
@keyframes fadeSlide {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  25%  { opacity: 1; }
  30%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Overlay con degradado */
#bg-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(21, 34, 56, 0.5) 0%,
    rgba(21, 34, 56, 0) 50%
  );
  z-index: 1;
}

/* Contenido encima */
#bg-slideshow > *:not(.bg-slide) {
  position: relative;
  z-index: 2;
}