/* ------------------- General styles ------------------- */
html, body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    margin: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Evita el scroll horizontal */
}


.inicio {
  position: relative;
  max-width: 100vw;
  overflow-x: hidden;
  /* Bloquea el desplazamiento horizontal solo en la página de inicio */
}

/*Cotina tipo preloader con icono*/

#curtain-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: transparent;
  /* Ya no bloquea visualmente */
  pointer-events: none;
  /* Permite que el fondo no reciba clics aún */
}

.curtain {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 30, 30, 0.8);
  /* gris oscuro con transparencia */
  backdrop-filter: blur(3px);
  /* opcional: efecto vidrio esmerilado */
  display: flex;
  justify-content: center;
  align-items: center;
  animation: curtainUp 1.5s ease forwards;
  animation-delay: 0.5s;
}

@keyframes curtainUp {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-100%);
  }
}

.preloader-icon {
  width: 120px;
  height: auto;
  animation: fadeIn 0.8s ease-in-out;
  z-index: 10000;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* -------------------  Barra Navigation  ------------------- */
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background-color: #255468;
  box-shadow: 0px 4px 6px rgba(180, 70, 70, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  margin-top: 0;
  box-sizing: border-box;
  transition: top 0.3s ease;
}

/* Oculta la barra al subir */
.main-nav.hidden {
  transform: translateY(-100%);
}

/* Muestra la barra al bajar */
.main-nav.visible {
  transform: translateY(0);
}

/* Clase para cuando la barra de navegación debe ocultarse */
.main-nav.hidden {
  top: -80px;
  /* Oculta la barra fuera de la vista */
}

/* Transiciones suaves para el título */
.page-title.active {
  transform: translateY(50px);
  transition: transform 0.3s ease;
}

/* Logo Styling */
.main-nav .logo img {
  width: 150px;
  height: auto;
}

/* Menu items (visible on larger screens) */
.nav {
  display: flex;
  list-style: none;
  margin: 0;
  /* Eliminamos márgenes */
  padding: 0;
  /* Eliminamos relleno */
}

.nav li {
  margin-right: 30px;
}

.nav li:last-child {
  margin-right: 0;
}

.nav a {
  text-decoration: none;
  color: white;
  font-size: 16px;
  font-weight: 750;
  transition: all 0.3s ease;
  /* animacion de suave*/
}

/* Efecto al pasar el ratón sobre los enlaces del menú */
.nav a:hover {
  color: #00eeff;
  /* Cambia el color del texto (puedes elegir otro color si prefieres) */
  transform: scale(1.1);
  /* Aumenta ligeramente el tamaño del texto */
}

/* ------------------- Estilo especial para el enlace "Contáctanos" ------------------- */
.nav li .main-red-button a {
  color: white;
  padding: 10px 20px;
  transition: all 0.3s ease;
  font-weight: 750;
  font-size: 16px;
  background-color: #ffbb00;
}

/* Al pasar el ratón sobre "Contáctanos" */
.nav li .main-red-button a:hover {
  color: #255468;
  /* Texto blanco */
  background-color: #ffbb00;
  /* Fondo rojo al pasar el ratón */
  border-color: orange;
  /* Borde más oscuro */
  transform: scale(1.1);
  /* Aumenta ligeramente el tamaño del texto y la circunferencia */
}

/* ------------------- Menu ------------------- */
.menu-icono {
  display: none;
  width: 30px;
  height: 30px;
  cursor: pointer;
  position: relative;
}

.menu-icono .line {
  background-color: #ffb433;
  height: 4px;
  width: 100%;
  margin: 6px 0;
  transition: 0.3s;
}

/* When the icon is active (X) */
.menu-icono.active .top {
  transform: rotate(45deg);
  position: absolute;
  top: 10px;
}

.menu-icono.active .middle {
  opacity: 0;
}

.menu-icono.active .bottom {
  transform: rotate(-45deg);
  position: absolute;
  top: 10px;
}

@media (max-width: 1320px) {

  /* Hide regular menu */
  .nav {
    display: none;
    width: 100%;
    text-align: center;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1rem 0;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  }

  .nav li {
    margin-bottom: 15px;
    margin-right: 0;
  }

  .nav li a {
    font-size: 18px;
    color: #333;
    text-transform: uppercase;
  }

  /* Display icon on small screens */
  .menu-icono {
    display: block;
  }

  /* Show menu when active */
  .nav.active {
    display: block;
  }
}

/* ------------------- Menu Active Styles ------------------- */
.nav.active {
  display: block;
  transform: translateY(0);
  animation: slideIn 0.5s ease;
}

/* Animation for the mobile menu */
@keyframes slideIn {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(0);
  }
}

/* ------------------- Solo centrado cuando el menú está activo ------------------- */
.main-nav.active .page-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  /* Centra el título cuando el menú está abierto */
  top: 50%;
  /* Lo coloca verticalmente en el centro de la barra */
  margin-top: 0;
  font-size: 1.2rem;
  /* Ajusta el tamaño del título si es necesario */
}

/* Nueva clase para mover el título hacia abajo cuando el menú esté visible */
.page-title.active {
  margin-top: 80px;
  /* Ajusta este valor según la altura de tu barra de navegación */
  transition: margin-top 0.3s ease;
  /* Animación para un deslizamiento suave */
  margin-top: 389px;
  margin-left: -50px;
  transform: translateX(0px);
}

/* Responsividad: pantallas medianas */
@media (max-width: 768px) {
  .page-title {
    font-size: 1rem;
    max-width: 100%;
    margin-top: 20px;
    margin-left: -20px;
  }
}

/* Responsividad: pantallas pequeñas */
@media (max-width: 480px) {
  .page-title {
    font-size: 1.3rem;
    margin-top: 10px;
    margin-left: 60px;
    max-width: 100%;
  }
}

/* ------------------- Pantallas más grandes (por encima de 1200px o el valor que prefieras) ------------------- */
@media (min-width: 1200px) {

  /* Título desplazado aún más a la derecha en pantallas más grandes */
  .main-nav.active .page-title {
    margin-left: 0;
    margin-top: 20px;
    transform: translateX(70%);
    /* Mueve el título aún más hacia la derecha */
    font-size: 2.2rem;
    /* Puedes ajustar el tamaño para pantallas más grandes */
  }
}


/* ------------------- Estilo de SUBMENU ------------------- */
.submenu {
  position: relative; /* para que el submenú se posicione respecto al padre */
}

/* Submenú oculto por defecto */
.submenu-items {
  position: absolute;
  top: 100%;      /* justo debajo del texto */
  left: 0;        /* alineado al inicio del li */
  background-color: #fff;
  padding: 15px;
  list-style: none;
  min-width: 250px;
  border-radius: 8px;
  display: none;  /* oculto inicialmente */
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  z-index: 2000;
}

/* Mostrar submenú al pasar el mouse (escritorio) */
.submenu:hover > .submenu-items {
  display: flex;
}

/* Items dentro del submenú */
.submenu-items li {
  margin: 8px 0;
}

.submenu-items li a {
  color: #255468;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  transition: all 0.3s ease;
}

.submenu-items li a:hover {
  color: #00eeff;
}

/* ======= Móvil ======= */
@media (max-width: 1320px) {
  .submenu-items {
    width: 100%; /* que ocupe todo el ancho del padre */
    position: relative;
    left: -10px; /* mueve 10px a la izquierda */
    /* también podrías usar: transform: translateX(-10px); */
  }

  /* Clase activa añadida por JS */
  .submenu-items.active {
    display: flex;
  }

  /* Apunta el cursor para indicar que es clickeable */
  .submenu > a {
    cursor: pointer;
  }
}



/* ------------------- Carrusel de las imagenes ------------------- */
.carousel-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  height: 100%;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Estilo para imágenes */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Recorta sin deformar */
  object-position: center;
  display: block;
}

/* Estilo para video */
.slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Recorta sin deformar */
  object-position: center;
  display: block;
}

/* Texto sobre cada slide */
.text-container { 
  position: absolute; 
  bottom: 39.5%; 
  left: 50%; 
  transform:translateX(-50%); 
  padding: 15px; 
  text-align: center; 
  border-radius: 5px; 
  width: 100%; 
  z-index: 2; 
  font-size: 1.5rem;
}

.text-container h1 {
  font-size: 40px;
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
  color: #EC9D2E;
}

.text-container h1 .line1 {
  display: block;
  color: #EC9D2E;
  /* Primer color */
}

.text-container h1 .line2 {
  display: block;
  color: #EC9D2E;
  /* Segundo color */
}

.text-container h1 .line3 {
  display: block;
  color: #EC9D2E;
  /* Segundo color */
}

.text-container p {
  color: white;
  /* Blanco */
  margin-top: 0;
  /* evita espacio extra arriba */
}

/* Indicadores */
.indicators {
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 75px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.indicator {
  width: 10px;
  height: 10px;
  margin: 5px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.indicator.active {
  background-color: #555;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .text-container {
    width: 90%;
    font-size: 16px;
    bottom: 45%;
  }

  .text-container h1 {
    font-size: 1.7rem;
    /* Tamaño más pequeño en móviles */
  }

  .text-container p {
    font-size: 1rem;
    /* Tamaño más pequeño en móviles */
  }

  .carousel-btn {
    width: 20%;
  }

  .indicators {
    bottom: 75px;
  }
}

@media (min-width: 1200px) {

  .slide img,
  .slide video {
    height: 100vh;
    object-fit: cover;
  }
}

/* --------- Para los servicios con sus iconos ------------- */

.counter-container {
  position: relative;
  padding: 60px 20px;
  margin-top: 20px;
  overflow: hidden;
}

/* Imagen de fondo estirada detrás del contenido (en HTML <img class="background-img">) */
.background-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
  /* Ajusta si quieres transparencia */
}

/* Wrapper que centra y organiza los contadores */
.counter-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  gap: 30px;
  padding: 20px;
}

/* Cada caja de contador */
.counter-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #000;
  border-radius: 12px;
}

/* Efecto hover en las cajas */
.counter-box:hover {
  transform: scale(1.05);
}

/* Íconos de las cajas */
.icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.counter-box img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* Número animado */
.number {
  font-size: 2.8rem;
  font-weight: bold;
  color: white;
  position: relative;
}

.number::after {
  content: "+";
  margin-left: 4px;
  font-size: 2.8rem;
  color: white;
  position: relative;
  top: -6px;
}

/* Texto inferior */
.text {
  font-size: 1.1rem;
  margin-top: 5px;
  color: white;
  font-weight: 500;
}

/* Separador entre cajas (solo visible en escritorio) */
.separator {
  display: block;
  width: 60%;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.2);
  margin: 20px auto;
}

/* Estilos en pantallas grandes (horizontal layout) */
@media (min-width: 768px) {
  .counter-wrapper {
    flex-direction: row;
  }

  .counter-box {
    flex: 1;
    min-width: 200px;
  }

  .separator {
    display: block;
    width: 3px;
    height: 80px;
    margin: 0 20px;
  }
}

/*Estilo de NUESTROS PROYECTOS*/
.section-title {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  margin-top: 55px;
  color: #255468;
  text-transform: uppercase;
  margin-bottom: 45px;
  /* espacio debajo del título */
}

.sectors {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.sector {
  position: relative;
  width: 500px;
  height: 420px;
  overflow: hidden;
  cursor: pointer;
  border-radius: 10px;
}

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

/* Ventana flotante */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(-100%);
  /* Empieza arriba */
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Texto dentro de la ventana */
.overlay-text {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  opacity: 0;
  transform: translateX(-50px);
  /* Empieza a la izquierda */
  transition: transform 0.4s ease, opacity 0.4s ease;
  transition-delay: 0.5s;
  /* Retardo para aparecer después */
  text-align: center;
  /* Centrar el texto dentro del div */
}

/* Hover */
.sector:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

.sector:hover .overlay-text {
  opacity: 1;
  transform: translateX(0);
}



/* ✅ Media query para celulares de 480px o menos */
@media (max-width: 480px) {
  .sectors {
    flex-direction: column;
    align-items: center;
  }

  .sector {
    width: 90%;
    /* Se adapta al ancho del contenedor */
  }
}

/* Estilos para la sección de certificaciones */
.certificacions-services {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

.cert-content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
}

.cert-text-content {
  flex: 1;
  position: relative;
}

.cert-bg-wrapper {
  position: relative;
  overflow: hidden;
  padding: 40px 30px;
  min-height: 100px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  margin-top: 30px;

}

.cert-bg-wrapper img {
  width: 100%;
  /* Estira la imagen */
}

/* imagen decorativa del cuadro */
.cert-text-bg-img {
  position: absolute;
  inset: 0;
  width: 110%;
  height: 110%;
  object-fit: contain;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-130px);
  z-index: 1;
  transition: all 0.8s ease-out;
}


/* texto encima */
.cert-text-inner {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateX(-20px);
  /* Mueve el texto un poco a la izquierda */
  transition: all 0.8s ease-out;
  color: #ffffff;
  text-align: center;
  /* sigue centrado visualmente */
  max-width: 500px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Título y párrafo */
.cert-title {
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0 0 15px 0;
  color: #ffffff;
  margin-left: 0;
  text-align: center;
}

.cert-text {
  color: #ffffff;
  text-align: center;
}

.cert-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.cert-image img {
  width: 110%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
  .cert-content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .cert-title,
  .cert-text {
    text-align: center;
  }

  .cert-image img {
    max-width: 100%;
  }

  /* En móvil, centrado perfecto sin desplazamiento */
  .cert-text-inner {
    transform: translateX(0);
    margin-top: 30px; /* 👈 hace que el bloque de texto baje */
  }

   /* 👇 Ajuste de tamaños en móviles */
  .cert-title {
    font-size: 14px; /* antes 20px */
  }

  .cert-text {
    font-size: 10px; /* más pequeño en móviles */
    line-height: 1.4; /* más compacto */
  }
}

/* animaciones base */
.animate-from-right,
.animate-from-left {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.animate-from-left {
  opacity: 0;
  transform: translateX(-100px) translateY(30px);
  transition: all 0.8s ease-out;
}

.animate-from-right {
  opacity: 0;
  transform: translateX(100px) translateY(30px);
  transition: all 0.8s ease-out;
}

/* cuando está en vista: secuencia */
.cert-bg-wrapper.in-view .cert-text-bg-img {
  opacity: 1;
  transform: translateX(0);
}

.cert-bg-wrapper.in-view .cert-text-inner {
  opacity: 1;
  transform: translateX(-20px);
  /* Mantener desplazamiento al entrar */
  transition-delay: 0.4s;
}

.cert-image.in-view {
  opacity: 1;
  transform: translateX(0) translateY(0);
  transition: all 0.8s ease-out;
}


/* ---------- Carrusel de imágenes de clientes ---------- */
.carrusel-cliente {
  text-align: center;
  margin: 50px auto;
}

.carousel-contenedor {
  width: 100%;
  max-width: 1100px;
  /* Ajusta según lo necesites */
  margin: 0 auto;
  overflow: hidden;
  border: none;
  /* ← Eliminamos el borde */
  background: transparent;
  /* ← Fondo completamente transparente */
  border-radius: 0;
  /* Sin esquinas redondeadas si no quieres */
  position: relative;
  height: 65px;
  /* Altura total del carrusel */
}

.carousel-track {
  display: flex;
  width: fit-content;
  animation: scroll-left 40s linear infinite;
}

.carousel-track img {
  height: 60px;
  /* Ajusta la altura de las imágenes */
  margin: 0 50px;
  object-fit: contain;
}

/* Animación de desplazamiento */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}


/* ========================================
   1. Pie de Página
======================================== */
.black-box {
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  /* separación uniforme */
  align-items: center;
  flex-direction: column;
  /* mobile first */
  padding: 30px 60px;
  gap: 40px;
  box-sizing: border-box;
  margin-top: 50px;
  text-align: center;
  color: #ffffff;
  background-color: #000000;
  /* Fondo con color base y degradado lateral derecho */
  /* Fondo con color base y degradado lateral derecho */
  background: linear-gradient(to left, rgba(0, 0, 0, 0.4) 23%, transparent 78%),
    #255468;
}


/* ========================================
   2. Logo y Redes Sociales
======================================== */

.address-container {
  display: flex;
  flex-direction: column;
  /* Logo arriba, iconos abajo */
  align-items: center;
  gap: 10px;
  /* Espacio entre logo e iconos */
}

/* Logo */
.bbti-logo {
  width: 140px;
  margin-bottom: 5px;
  /* Pequeño espacio antes de los iconos */
}

/* Iconos sociales */
.social-icons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.icon {
  width: 25px;
  height: auto;
  transition: transform 0.3s ease;
}

.icon:hover {
  transform: scale(1.1);
}


/* ========================================
   3. Menú y Horario
======================================== */
.menu-and-schedule {
  display: flex;
  flex-direction: column;
  /* mobile-first */
  align-items: center;
  gap: 15px;
  width: 100%;
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-links .item {
  font-size: 14px;
  color: #ffffff;
  cursor: pointer;
  display: block;
  text-decoration: none;
  margin-top: 10px;
  /* Puedes ajustar el valor según el espacio que quieras */
}

.menu-links .item:hover {
  color: #ffbb00;
}

.horario {
  display: flex;
  flex-direction: column;
  /* Uno debajo del otro */
  align-items: center;
  /* Centrado en mobile */
  gap: 6px;
  margin: 0;
  font-size: 13px;
}

.horario .title {
  font-weight: bold;
}

.horario .subtitle {
  font-size: 13px;
  margin-top: 10px;
  /* Puedes ajustar el valor según el espacio que quieras */
}

/* ========================================
   4. Libro de Reclamaciones
======================================== */
.info-legal-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 5px 0 15px;
  gap: 10px;
}

.terminos-box {
  color: #ffffff;
  font-size: 13px;
  background-color: transparent;
  padding: 6px 20px;
  border-radius: 8px;
}

.reclamaciones-box {
  margin-top: 0px;
}

.reclamaciones-link {
  color: #ffffff;
  font-size: 13.5px;
  text-decoration: none;
  border-radius: 10px;
  display: inline-block;
  padding-top: 10px;
  margin-top: 5px;
  /* Puedes ajustar el valor según el espacio que quieras */
}

.reclamaciones-link:hover {
  text-decoration: underline;
}

/* ========================================
   5. Contactos
======================================== */
.contact-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  color: #ffffff;
  font-size: 13px;
  width: 100%;
  margin-left: 14px;
  min-width: 0;
}

.email-container,
.phone,
.ubicacion-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inline-phone {
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-wrapper .icon {
  width: 28px;
  height: auto;
}

.address,
.email,
.phone-link span {
  line-height: 1.1;
  font-size: 13px;
  position: relative;
  top: -4px;
  display: inline-block;
}

.email,
.phone-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.phone a:hover {
  color: #ffbb00;
}

/* ========================================
   6. Iconos Generales
======================================== */
.icon {
  width: 25px;
  height: auto;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.icon:hover {
  transform: scale(1.1);
}

.location-icon {
  width: 28px;
  height: auto;
  margin-bottom: 8px;
}

/* ========================================
   7. Login 
======================================== */
.Login .login-link {
    color: #fff;             /* Texto blanco */
    text-decoration: none;   /* Quita el subrayado */
    font-weight: bold;       /* Opcional: lo hace más visible */
    display: inline-block;   /* Permite aplicar márgenes verticales */
    margin-top: 15px;        /* Espaciado con el elemento de arriba */
}

.Login .login-link:hover {
    color: #ddd; /* Un gris claro al pasar el mouse */
}

/* ========================================
   8. lineas de separacion
======================================== */

/* Línea vertical para .horario y .contact-wrapper */
.black-box-section.horario::before,
.black-box-section.contact-wrapper::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  width: 4px;
  /* Grosor de la línea */
  height: calc(100% - 30px);
  /* Altura ajustada */
  background-color: orange;
  border-radius: 2px;
}

/* Asegura que los contenedores tengan espacio a la izquierda y posición relativa */
.black-box-section.horario,
.black-box-section.contact-wrapper {
  position: relative;
  padding-left: 20px;
  /* Espacio para que la línea no se superponga al contenido */
}


/* ========================================
   9. Responsive
======================================== */
/* --- Pantallas pequeñas hasta 480px --- */
@media (max-width: 480px) {
  .black-box {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    gap: 25px;
    margin-top: 60px;
    text-align: center;
  }

  .menu-and-schedule,
  .bbti-logo,
  .horario,
  .contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-left: -35px;
    /* 👈 Se mueve un poco a la izquierda */
  }

  .email,
  .phone,
  .address {
    margin-bottom: 10px;
    text-align: center;
  }

  .icon {
    width: 35px;
  }

  .subtitle {
    margin-top: 10px;
  }

  .black-box-section.horario::before,
  .black-box-section.contact-wrapper::before {
    content: '';
    display: block;
    position: relative;
    width: 60px;
    height: 4px;
    background-color: orange;
    border-radius: 2px;
    margin: 0 auto 10px auto;
    /* Centrado horizontal */
  }
}


/* --- Pantallas medianas hasta 991px --- */
@media (max-width: 991px) {
  .black-box {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 30px;
    margin-top: 50px;
    padding: 20px;
  }

  .menu-and-schedule,
  .bbti-logo,
  .horario,
  .contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
    margin-left: -20px;
    /* 👈 Más hacia la izquierda en pantallas medianas */
  }

  .email,
  .phone,
  .address {
    margin-bottom: 10px;
    text-align: center;
  }

  .icon {
    width: 40px;
  }

  .subtitle {
    margin-top: 10px;
  }

  .black-box-section.horario::before,
  .black-box-section.contact-wrapper::before {
    content: '';
    display: block;
    position: relative;
    width: 60px;
    height: 4px;
    background-color: orange;
    border-radius: 2px;
    margin: 0 auto 10px auto;
  }
}


/* --- Pantallas grandes (>= 992px) --- */
@media (min-width: 992px) {
  .black-box {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 100px;
    text-align: left;
    margin-top: 25px;
  }

  .menu-and-schedule {
    flex-direction: row;
    align-items: flex-start;
    gap: 70px;
    width: auto;
  }

  .contact-wrapper {
    max-width: 260px;
    align-items: flex-start;
    text-align: left;
    margin-left: 0;
  }

  .ubicacion-container,
  .email-container,
  .phone,
  .social-icons {
    margin: 0 15px;
  }

  .bbti-logo {
    width: 190px;
    margin-bottom: 0;
  }

  .social-desktop {
    display: flex;
    margin-top: 10px;
  }

  .social-mobile {
    display: none;
  }

  .email {
    text-align: right;
    padding-right: 20px;
  }

  .phone-title {
    color: #ffffff;
    font-size: 12.8px;
    font-weight: bold;
    margin-bottom: 10px;
  }

  .social-icons {
    justify-content: flex-end;
  }

  .icon {
    width: 40px;
  }

  .horario {
    align-items: flex-start;
    /* Alinea a la izquierda en escritorio */
  }
}


/*----------Estilos para el Chatbot-------*/
.chatbot-container {
  position: fixed;
  bottom: 75px;
  right: 20px;
  z-index: 9999;
  /* muy alto para estar sobre todo */
  font-family: 'Segoe UI', sans-serif;
}

/* Ícono flotante */

.chatbot-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.chatbot-icon:hover {
  transform: scale(1.05);
}

.chatbot-icon img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.chatbot-text {
  position: absolute;
  top: 50%;
  right: 110%;
  transform: translateY(-50%);
  background-color: green;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.chatbot-icon-wrapper:hover .chatbot-text {
  opacity: 1;
}

/* cuando está desactivado (chat abierto), no mostrar tooltip */
.chatbot-icon-wrapper.no-tooltip .chatbot-text {
  opacity: 0 !important;
  pointer-events: none;
}

.chatbot-icon {
  position: relative;
  cursor: pointer;
}

.close-symbol {
  position: absolute;
  inset: 0;
  /* ocupa todo el tamaño del icono */
  background: #25D366;
  /* verde tipo WhatsApp */
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 30px;
  transition: background 0.3s ease;
}

.close-symbol:hover {
  background: #1ebe5c;
  /* un poco más oscuro al pasar el mouse */
}


/* Caja principal */
.chatbot-box {
  position: absolute;
  bottom: 90px;
  right: 0;
  width: clamp(300px, 90vw, 380px);
  height: 500px;
  background-color: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: none;
  flex-direction: column;
  transition: all 0.3s ease;
}

.chatbot-box.active {
  display: flex;
  animation: fadeIn 0.4s ease;
}

/* Cabecera */
.chatbot-header {
  background-color: #255468;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header .logo-small {
  width: 30px;
  height: 30px;
}

.chatbot-header .logo-small img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  flex: 1;
  padding-left: 10px;
}

.chatbot-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
}

/* Área de mensajes */
.chatbot-messages {
  flex: 1;
  padding: 12px 15px;
  overflow-y: auto;
  background-color: #f4f4f4;
  scroll-behavior: smooth;
}

.message {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 85%;
  position: relative;
  font-size: 14px;
  word-wrap: break-word;
  white-space: pre-wrap;
  line-height: 1.3;
}

.bot-message {
  background-color: #e1f5fe;
  border-left: 4px solid #039be5;
  margin-right: auto;
  color: #333;
}

.user-message {
  background-color: #e8f5e9;
  border-right: 4px solid #4caf50;
  margin-left: auto;
  text-align: right;
  color: #333;
}

.message .time {
  display: block;
  font-size: 11px;
  color: #999;
  margin-top: 6px;
  /* Añade espacio debajo del texto del mensaje */
  position: static;
  /* Elimina el posicionamiento absoluto */
  text-align: right;
}

/* indicador "escribiendo..." tipo oruga */
.typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: flex-end;
  height: 18px;
  vertical-align: middle;
}

.typing-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #555;
  animation: bounce 1s infinite ease-in-out;
  opacity: 0.7;
}

.typing-dots .dot:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dots .dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }

  50% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  .typing-dots .dot {
    animation: none;
    transform: translateY(0);
    opacity: 1;
  }
}

/* Entrada de texto */
.chatbot-input {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ddd;
  background-color: #fff;
  gap: 8px;
}

.chatbot-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
}

.chatbot-input button {
  width: 40px;
  height: 40px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chatbot-input button:hover {
  background-color: #3d8b40;
}

/* Animación */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Botones rápidos */
.chatbot-quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 12px 0 8px 0;
  padding: 0 10px;
}

.chatbot-quick-actions .chatbot-option {
  background-color: #255468;
  border: 1px solid #ccc;
  padding: 10px 16px;
  border-radius: 30px;
  font-size: 15px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.chatbot-quick-actions .chatbot-option:hover {
  transform: translateY(-1px);
}

.chatbot-option img.chatbot-icon-left {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.chatbot-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  color: white;
  cursor: pointer;
  z-index: 10;
}

.catalogo-btn {
  display: inline-flex;
  align-items: center;
  background-color: #255468;
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.catalogo-btn:hover {
  background-color: #1b3d4a;
}

/*Para el icono de brochure*/

/* 📄 Contenedor del icono de Brochure */
.brochure-container {
  position: fixed;
  bottom: 180px;
  /* 🔼 Más alto que el chatbot */
  right: 30px;
  z-index: 1000;
  /* Por encima de casi todo */
}

/* 🔗 Enlace del brochure */
.brochure-link {
  position: relative;
  display: inline-block;
}

/* 📷 Icono del brochure */
.brochure-icon {
  width: 55px;
  height: 55px;
  cursor: pointer;
}

/* 💬 Tooltip */
.brochure-link .tooltip {
  visibility: hidden;
  opacity: 0;
  background-color: #555;
  /* Fondo gris oscuro */
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 6px 12px;
  position: absolute;
  left: -140px;
  /* 🔧 Ajuste horizontal */
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

/* Mostrar tooltip al pasar el mouse */
.brochure-link:hover .tooltip {
  visibility: visible;
  opacity: 1;
}
