/*------------------------------------------------------------------
    File Name: custom.css
-------------------------------------------------------------------*/

/** ADD YOUR AWESOME CODES HERE **/

/* Forzar texto blanco en los títulos del slider */
.tp-caption.NotGeneric-Title,
.NotGeneric-Title,
#slider .NotGeneric-Title,
.rev_slider .NotGeneric-Title,
.rev_slider .tp-caption.NotGeneric-Title {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
}

.tp-caption.NotGeneric-SubTitle,
.NotGeneric-SubTitle,
#slider .NotGeneric-SubTitle,
.rev_slider .NotGeneric-SubTitle,
.rev_slider .tp-caption.NotGeneric-SubTitle {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
}

/* Asegurar que los caracteres splitin también sean blancos */
.tp-splitted.tp-charsplit {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Mejorar el diseño del slider principal - CORREGIDO */
#slider.section.main_slider {
    position: relative;
    overflow: visible !important;  /* Corregido de hidden para evitar cortes */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 50px;
}

/* Estilo especial para el slider moderno - CORREGIDO */
.modern_slider {
    position: relative;
}

.modern_slider .rev_slider_wrapper {
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* Corregir posición de elementos del slider */
.modern_slider .tp-parallax-wrap {
    display: block !important;
    /* Eliminar transformaciones que causaban problemas */
    position: absolute !important;  
}

/* Corregir alineación de capas */
.tp-parallax-wrap, .tp-loop-wrap, .tp-mask-wrap {
    position: absolute !important;
}

.modern_slider .tp-caption {
    transition: all 0.3s ease-in-out !important;
}

.modern_slider .tp-caption.NotGeneric-Title {
    font-size: 60px !important;
    margin-bottom: 20px !important;
    font-family: 'Barlow', sans-serif !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

.modern_slider .tp-caption.NotGeneric-SubTitle {
    font-family: 'Barlow', sans-serif !important;
    font-weight: 500 !important;
    font-size: 20px !important;
    line-height: 1.6 !important;
}

/* Estilos para las clases específicas del slider - CORREGIDO */
.bg-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6)) !important;
    opacity: 0.9 !important;
    width: 100% !important;
    height: 100% !important;
    left: 0 !important;
    top: 0 !important;
    position: absolute !important;
}

.caption-box {
    background-color: rgba(29, 29, 29, 0.75) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    /* Quitar backdrop-filter que causa problemas en algunos navegadores */
    transition: all 0.5s ease !important;
}

/* Corregir línea decorativa para que no afecte el layout */
.title-layer {
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7) !important;
    letter-spacing: 1px !important;
    font-weight: 800 !important;
    position: relative !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 0 !important;
    padding-bottom: 20px !important;
    clear: both !important;
    z-index: 9 !important;
}

/* Usar otro método para la línea */
.title-underline {
    display: none !important;
    width: 100px !important;
    height: 3px !important;
    background-color: #fff !important;
    opacity: 0.8 !important;
    position: relative !important;
    clear: both !important;
    margin: 0 auto !important;
    margin-top: 20px !important;
    margin-bottom: 15px !important;
    z-index: 8 !important;
}

.subtitle-layer {
    font-weight: 500 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
    letter-spacing: 0.5px !important;
    margin-top: 15px !important;
    position: relative !important;
    z-index: 7 !important;
}

/* Fondo oscuro mejorado para el texto - CORREGIDO */
.tp-caption.tp-shape.tp-shapewrapper {
    background-color: rgba(0, 0, 0, 0.5) !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important;
    -webkit-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Mejora visual para los títulos del slider - CORREGIDO */
#slide-18-layer-112, 
#slide-18-layer-11, 
#slide-18-layer-1 {
    text-align: center !important;
}

/* Mejora visual para los subtítulos - CORREGIDO */
#slide-18-layer-412,
#slide-18-layer-41,
#slide-18-layer-4 {
    text-align: center !important;
    opacity: 0.95 !important;
    font-size: 18px !important;
    line-height: 1.6 !important;
}

/* Efecto de capa para el slider - CORREGIDO */
.rev_slider_wrapper {
    border-radius: 0 0 8px 8px !important;
    overflow: hidden !important;
}

/* Efecto de sombra en las imágenes del slider - CORREGIDO */
.rev_slider img {
    filter: brightness(0.9) !important; /* Aumentado para mejor visibilidad */
}

/* Corrección para las flechas de navegación */
.tparrows {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    transition: background-color 0.3s ease, transform 0.3s ease !important;
    opacity: 1 !important;
    visibility: hidden!important;
    transform: matrix(1, 0, 0, 1, 20, 0) !important;
    position: absolute !important;
    display: block !important;
    z-index: 100 !important;
    cursor: pointer !important;
}

/* Flecha izquierda */
.tp-leftarrow {
    left: 30px !important;
    transform: matrix(1, 0, 0, 1, 0, 0) !important;
}

/* Flecha derecha */
.tp-rightarrow {
    right: 30px !important;
    left: auto !important;
    transform: matrix(1, 0, 0, 1, 0, 0) !important;
}

.tparrows:hover {
    background-color: rgba(0, 0, 0, 0.7) !important;
    transform: scale(1.1) !important;
}

/* Iconos dentro de las flechas */
.tparrows:before {
    font-size: 20px !important;
    color: #ffffff !important;
    display: block !important;
    line-height: 50px !important;
    text-align: center !important;
}

/* Corrección para posición en móviles */
@media (max-width: 767px) {
    .tparrows {
        width: 40px !important;
        height: 40px !important;
        display: block !important; /* Mostrar flechas en móvil */
    }
    
    .tparrows:before {
        line-height: 40px !important;
    }
    
    .tp-leftarrow {
        left: 10px !important;
    }
    
    .tp-rightarrow {
        right: 10px !important;
    }
    
    .title-underline {
        width: 60px;
        height: 2px;
        margin: 12px auto;
        margin-top: 15px;
        margin-bottom: 10px;
    }
    
    .caption-box {
        width: 90% !important;
        left: 5% !important;
    }
}

/* Corrección para los bullets de navegación */
.tp-bullets {
    position: absolute !important;
    display: block !important;
    bottom: 20px !important;
    z-index: 99 !important;
    padding: 10px 5px !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    border-radius: 20px !important;
    opacity: 1 !important;
    visibility: visible !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    height: auto !important;
    text-align: center !important;
    direction: ltr !important;
}

.tp-bullet {
    width: 12px !important;
    height: 12px !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border-radius: 50% !important;
    transition: background-color 0.3s ease, transform 0.3s ease !important;
    position: relative !important;
    display: inline-block !important;
    margin: 0 5px !important;
    cursor: pointer !important;
    float: left !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.tp-bullet.selected {
    background-color: #ffffff !important;
    transform: scale(1.2) !important;
}

/* Asegurarse que los bullets tengan el estilo correcto */
.tp-bullets .tp-bullet {
    background: rgba(255, 255, 255, 0.5) !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.tp-bullets .tp-bullet.selected {
    background: #ffffff !important;
}

/* Correcciones adicionales para bullets */
.tp-bullets.zeus {
    background-color: rgba(0, 0, 0, 0.3) !important;
    border-radius: 20px !important;
    padding: 10px 5px !important;
    z-index: 99 !important;
}

.tp-bullets.horizontal {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: auto !important;
}

/* Corregir contenedores de bullets específicos */
.tp-bullets.zeus .tp-bullet {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    border: none !important;
}

.tp-bullets.zeus .tp-bullet:after {
    display: none !important;
}

/* Eliminar imágenes y efectos extra que causan problemas */
.tp-bullets.zeus .tp-bullet-image,
.tp-bullets.zeus .tp-bullet-imageoverlay,
.tp-bullets.zeus .tp-bullet-title {
    display: none !important;
}

/* Estilos adicionales para varios tipos de bullets en Revolution Slider */
.tp-bullets.ares .tp-bullet,
.tp-bullets.custom .tp-bullet,
.tp-bullets.hebe .tp-bullet,
.tp-bullets.hermes .tp-bullet,
.tp-bullets.persephone .tp-bullet {
    width: 12px !important;
    height: 12px !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border-radius: 50% !important;
    border: none !important;
}

.tp-bullets.ares .tp-bullet.selected,
.tp-bullets.custom .tp-bullet.selected,
.tp-bullets.hebe .tp-bullet.selected,
.tp-bullets.hermes .tp-bullet.selected,
.tp-bullets.persephone .tp-bullet.selected {
    background-color: #ffffff !important;
}

/* Ajustes para móvil */
@media (max-width: 767px) {
    .tp-bullets {
        bottom: 10px !important;
        padding: 5px 3px !important;
    }
    
    .tp-bullet {
        width: 8px !important;
        height: 8px !important;
        margin: 0 3px !important;
    }
}

/* Asegurar que las capas del slider mantengan sus posiciones correctas */
.rev_slider .tp-revslider-slidesli {
    overflow: visible !important;
}

/* Corregir posiciones de capas específicas */
.tp-caption.NotGeneric-Title {
    z-index: 9 !important; 
}

.tp-caption.NotGeneric-SubTitle {
    z-index: 8 !important;
}

.tp-caption.tp-shape.tp-shapewrapper {
    z-index: 7 !important;
}

/* Mejora de diseño responsive para el slider - CORREGIDO */
@media (max-width: 991px) {
    .modern_slider .tp-caption.NotGeneric-Title {
        font-size: 40px !important;
        margin-bottom: 10px !important;
    }
    
    .modern_slider .tp-caption.NotGeneric-SubTitle {
        font-size: 16px !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 767px) {
    .modern_slider .tp-caption.NotGeneric-Title {
        font-size: 30px !important;
        margin-bottom: 5px !important;
    }
    
    .modern_slider .tp-caption.NotGeneric-SubTitle {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }
    
    .tparrows {
        width: 40px !important;
        height: 40px !important;
        display: block !important; /* Mostrar flechas en móvil */
    }
    
    .tparrows:before {
        line-height: 40px !important;
    }
    
    .title-underline {
        width: 60px;
        height: 2px;
        margin: 12px auto;
        margin-top: 15px;
        margin-bottom: 10px;
    }
    
    .caption-box {
        width: 90% !important;
        left: 5% !important;
    }
}

/* NUEVOS ESTILOS PARA BULLETS PERSONALIZADOS */
/* 1. Estilos para custom-bullets */
.custom-bullets {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    border-radius: 20px !important;
    padding: 10px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: auto !important;
    max-width: 90% !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.custom-bullet {
    display: inline-block !important;
    width: 12px !important;
    height: 12px !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border-radius: 50% !important;
    margin: 0 5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.custom-bullet.active {
    background-color: #ffffff !important;
    transform: scale(1.2) !important;
}

/* 2. Estilos para emergency-bullets */
.emergency-bullets {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    border-radius: 20px !important;
    padding: 10px !important;
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
    width: auto !important;
    max-width: 90% !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.emergency-bullet {
    display: inline-block !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    margin: 0 5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.emergency-bullet.active {
    background-color: #ffffff !important;
    transform: scale(1.2) !important;
}

/* 3. Ajustes responsive para bullets personalizados */
@media (max-width: 767px) {
    .custom-bullets,
    .emergency-bullets {
        bottom: 10px !important;
        padding: 5px !important;
        z-index: 9999 !important;
    }
    
    .custom-bullet,
    .emergency-bullet {
        width: 8px !important;
        height: 8px !important;
        margin: 0 3px !important;
    }
}

/* Estilos para el nuevo slider moderno */
.modern-slider {
  position: relative;
  width: 100%;
  height: 700px;
  overflow: hidden;
}

.slide-item {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1;
}

.slide-item.active {
  opacity: 1;
  z-index: 2;
}

.slide-img {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
 
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  width: 80%;
  max-width: 1000px;
}

.inner-content {
  padding: 30px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 5px;
}

.slide-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
  color: #ffffff;
}

.slide-divider {
  width: 80px;
  height: 4px;
  background-color: #e30613;
  margin: 0 auto 20px;
}

.slide-text {
  font-size: 24px;
  margin-bottom: 30px;
  line-height: 1.5;
	color:aliceblue;
}

.slide-btn {
  display: inline-block;
  background-color: #e30613;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #e30613;
}

.slide-btn:hover {
  background-color: transparent;
  color: #e30613;
}

.slider-controls {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slider-arrows {
  display: flex;
  margin-bottom: 20px;
}

.arrow-prev, .arrow-next {
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  font-size: 20px;
  margin: 0 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.arrow-prev:hover, .arrow-next:hover {
  background-color: #e30613;
}

.slider-dots {
  display: flex;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  margin: 0 5px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: #e30613;
  transform: scale(1.2);
}

/* Animaciones */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -50px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 50px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.animated {
  animation-duration: 0.8s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.fadeInDown {
  animation-name: fadeInDown;
}

.fadeInUp {
  animation-name: fadeInUp;
}

/* Estilos responsivos */
@media (max-width: 991px) {
  .modern-slider {
    height: 600px;
  }
  
  .slide-title {
    font-size: 36px;
  }
  
  .slide-text {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .modern-slider {
    height: 500px;
  }
  
  .slide-title {
    font-size: 28px;
  }
  
  .slide-text {
    font-size: 16px;
  }
  
  .slide-btn {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .modern-slider {
    height: 400px;
  }
  
  .inner-content {
    padding: 15px;
  }
  
  .slide-title {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .slide-divider {
    margin-bottom: 10px;
  }
  
  .slide-text {
    margin-bottom: 15px;
  }
}

/* Animaciones adicionales para transiciones más modernas */
.slide-exit {
  opacity: 1;
  transition: transform 0.5s ease, opacity 0.5s ease;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.slide-exit-next {
  transform: translateX(-100%);
  opacity: 0;
}

.slide-exit-prev {
  transform: translateX(100%);
  opacity: 0;
}

.slide-enter {
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.slide-enter-next {
  transform: translateX(100%);
}

.slide-enter-prev {
  transform: translateX(-100%);
}

.slide-item.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Refinamiento de animaciones existentes */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -50px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 50px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.animated {
  animation-duration: 0.8s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

/* Mejora en los controles del slider */
.arrow-prev, .arrow-next {
  transition: all 0.3s cubic-bezier(0.215, 0.610, 0.355, 1.000);
  transform: scale(1);
}

.arrow-prev:hover, .arrow-next:hover {
  transform: scale(1.1);
}

.dot {
  transition: all 0.3s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.dot.active {
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(227, 6, 19, 0.5);
}

/* Asegurar que el menú de navegación esté siempre por encima del slider */
#navbar_menu {
    position: relative;
    z-index: 1000 !important; /* Valor alto para asegurar que esté por encima de todos los elementos del slider */
}

#navbar_menu > ul {
    z-index: 1000 !important;
}

#navbar_menu > ul > li {
    z-index: 1000 !important;
}

#navbar_menu ul ul {
    z-index: 1001 !important; /* Valor aún más alto para los submenús */
}

/* Asegurar que el menú completo esté por encima */
.menu_side {
    position: relative;
    z-index: 1000 !important;
}

/* Ajustar el z-index del slider para que esté por debajo del menú */
#slider, 
.modern_slider,
.modern-slider,
.rev_slider_wrapper,
#rev_slider_4_1_wrapper,
.rev_slider,
.tp-fullwidth-forcer,
.tp-parallax-wrap {
    z-index: 10 !important; /* Valor bajo para asegurar que esté por debajo del menú */
}

/* Ajustar específicamente los elementos que pueden estar tapando el menú */
.tp-caption,
.tp-mask-wrap,
.tp-loop-wrap,
.tp-bannertimer,
.tp-bullets,
.tparrows {
    z-index: 20 !important; /* Mayor que el slider base pero menor que el menú */
}

/* Asegurar que el header completo está por encima */
#default_header {
    position: relative;
    z-index: 1000 !important;
}

/* Ajustar la visibilidad del menú desplegable */
#navbar_menu ul li:hover > ul {
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1001 !important;
}
