.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
  }

  /* Estilos para botones invisibles */
.btn-transparent {
  display: inline-block;      /* Se comporta como botón */
  padding: 0.5em 1em;         /* Ajusta el padding a tu gusto */
  font-size: 1.25rem;         /* Equivale a 20px si tu font-size base es 16px */
  color: inherit;             /* Hereda el color del texto */
  background: transparent;    /* Fondo totalmente transparente */
  border: none;               /* Sin borde */
  text-decoration: none;      /* Sin subrayado */
  cursor: pointer;            /* Puntero de botón */
}

/* Opcional: efecto hover para que el usuario sepa que es clicable */
.btn-transparent:hover {
  background: rgba(0,0,0,0.05); /* ligero sombreado al pasar el ratón */
}


  .chatbot-widget .chat-message {
    margin-right: 10px;
    background: #fff;
    color: #333;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    /* Inicialmente se posiciona detrás del robot */
    transform: translateX(100%);
    opacity: 0;
    animation: slideFromRobot 5s ease-in-out infinite;
  }

  @keyframes slideFromRobot {
    0% {
      transform: translateX(100%);
      opacity: 0;
    }
    20% {
      transform: translateX(0);
      opacity: 1;
    }
    80% {
      transform: translateX(0);
      opacity: 1;
    }
    100% {
      transform: translateX(100%);
      opacity: 0;
    }
  }

  .chatbot-widget img {
    width: 80px;
    height: 80px;
  }

  /* Estilos para la ventana del chat */
  #chatbot-chat {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 300px;
    max-height: 400px;
    background: #fff;
    border: 1px solid #ccc;
    z-index: 1001;
    display: none;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  #chatbot-header {
    background: #2649E6;
    color: #fff;
    padding: 10px;
    cursor: pointer;
  }

  #chatbot-messages {
    padding: 10px;
    flex-grow: 1;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.4;
  }

  #chatbot-input-container {
    display: flex;
    border-top: 1px solid #ccc;
  }

  #chatbot-input {
    width: 100%;
    padding: 10px;
    border: none;
    outline: none;
  }

  #chatbot-send {
    background: #2649E6;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
  }

  .message {
    margin-bottom: 10px;
  }

  .message.user {
    text-align: right;
    color: #2649E6;
  }

  .message.bot {
    text-align: left;
    color: #333;
  }

  a.whatsapp-link {
    color: #25D366;
    text-decoration: none;
    font-weight: bold;
  }
      /* Enlaces de color azul fuerte */
      .text-primary {
      color: #1b39be !important;
  }
  .text-primary:hover {
      color: #0f2a94 !important;
  }
  .company-logo{
    width: 400px;
    position: relative;
    left: -10px;
    top: -50px;

  }
 /* Sección final sin fondo, con iconos decorativos */
/* ==============================================================
 SECCIÓN FINAL: #contact
 ============================================================== */
#contact {
position: relative;
padding: 60px 0;
overflow: hidden;
perspective: 1200px;
}

/* ——————————————————————————————
 1) 30 ICONOS DECORATIVOS EN FONDO
 —————————————————————————————— */
#contact .decor-container {
position: absolute;
top: 0; left: 0;
width: 100%; height: 100%;
pointer-events: none;
z-index: 0;
}
#contact .decor-container i {
position: absolute;
font-family: "Font Awesome 5 Free";
font-weight: 900;
color: rgba(38,73,230,0.2);
font-size: 40px;
transform-origin: center;
}
/* Posicionamiento de los 30 iconos */
#contact .decor-container i:nth-child( 1)  { top:  5%; left: 10%; transform: rotate(10deg) scale(1.2); }
#contact .decor-container i:nth-child( 2)  { top: 15%; left: 80%; transform: rotate(-15deg) scale(1); }
#contact .decor-container i:nth-child( 3)  { top: 30%; left: 35%; transform: rotate(5deg)  scale(1.3); }
#contact .decor-container i:nth-child( 4)  { top: 50%; left:  5%; transform: rotate(-5deg) scale(1); }
#contact .decor-container i:nth-child( 5)  { top: 70%; left: 75%; transform: rotate(20deg) scale(0.9); }
#contact .decor-container i:nth-child( 6)  { top: 85%; left: 20%; transform: rotate(-10deg) scale(1.2); }
#contact .decor-container i:nth-child( 7)  { top: 10%; left: 55%; transform: rotate(30deg) scale(1); }
#contact .decor-container i:nth-child( 8)  { top: 35%; left: 90%; transform: rotate(-25deg) scale(1.1); }
#contact .decor-container i:nth-child( 9)  { top: 45%; left: 25%; transform: rotate(15deg) scale(1.4); }
#contact .decor-container i:nth-child(10)  { top: 60%; left: 60%; transform: rotate(-5deg) scale(0.8); }
#contact .decor-container i:nth-child(11)  { top: 75%; left: 40%; transform: rotate(10deg) scale(1.1); }
#contact .decor-container i:nth-child(12)  { top: 25%; left: 30%; transform: rotate(-20deg) scale(1.2); }
#contact .decor-container i:nth-child(13)  { top: 55%; left: 85%; transform: rotate(5deg)  scale(1); }
#contact .decor-container i:nth-child(14)  { top: 40%; left:  5%; transform: rotate(-10deg) scale(1.3); }
#contact .decor-container i:nth-child(15)  { top: 68%; left: 50%; transform: rotate(20deg) scale(1); }
#contact .decor-container i:nth-child(16)  { top: 82%; left: 15%; transform: rotate(-15deg) scale(0.9); }
#contact .decor-container i:nth-child(17)  { top:  7%; left: 65%; transform: rotate(10deg) scale(1.2); }
#contact .decor-container i:nth-child(18)  { top: 50%; left: 95%; transform: rotate(-30deg) scale(1); }
#contact .decor-container i:nth-child(19)  { top: 30%; left: 20%; transform: rotate(25deg) scale(1.1); }
#contact .decor-container i:nth-child(20)  { top: 65%; left: 45%; transform: rotate(-5deg) scale(1.4); }
#contact .decor-container i:nth-child(21)  { top: 55%; left: 10%; transform: rotate(15deg) scale(0.8); }
#contact .decor-container i:nth-child(22)  { top: 18%; left: 70%; transform: rotate(-20deg) scale(1.2); }
#contact .decor-container i:nth-child(23)  { top: 80%; left: 85%; transform: rotate(5deg)  scale(1); }
#contact .decor-container i:nth-child(24)  { top: 12%; left: 35%; transform: rotate(-25deg) scale(1.3); }
#contact .decor-container i:nth-child(25)  { top: 90%; left: 50%; transform: rotate(30deg) scale(1); }
#contact .decor-container i:nth-child(26)  { top: 20%; left: 45%; transform: rotate(15deg) scale(1.1); }
#contact .decor-container i:nth-child(27)  { top: 60%; left: 25%; transform: rotate(-10deg) scale(1.2); }
#contact .decor-container i:nth-child(28)  { top: 42%; left: 78%; transform: rotate(8deg)  scale(1); }
#contact .decor-container i:nth-child(29)  { top: 73%; left: 63%; transform: rotate(-12deg) scale(1.3); }
#contact .decor-container i:nth-child(30)  { top: 33%; left: 12%; transform: rotate(22deg) scale(1); }

/* ——————————————————————————————
 2) CONTENEDOR DE TARJETAS Y LOGO
 —————————————————————————————— */
#contact .card-container {
position: relative;
z-index: 2;        /* encima de los iconos de fondo */
display: flex;
align-items: center;
gap: 30px;
}

/* el logo se empuja automáticamente a la derecha */
#contact .contact-right {
margin-left: auto;
z-index: 3;
}

/* ——————————————————————————————
 3) TARJETAS 3D
 —————————————————————————————— */
#contact .contact-card.card-3d {
position: relative;
z-index: 3;
background: #ffffff;
border-radius: 12px;
box-shadow: 0 8px 30px rgba(0,0,0,0.1);
padding: 30px 20px;
width: 320px;
transform-style: preserve-3d;
transform: rotateX(5deg) rotateY(-5deg);
transition: transform 0.5s, box-shadow 0.5s;
}
#contact .contact-card.card-3d:hover {
transform: rotateX(0deg) rotateY(0deg) translateZ(20px);
box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

/* ——————————————————————————————
 4) TITULOS, TEXTOS Y ENLACES DENTRO DE TARJETAS
 —————————————————————————————— */
#contact .contact-card h4 {
font-size: 2rem !important;
color: #000 !important;
margin-bottom: 15px;
}
#contact .contact-card h4 i {
margin-right: 8px;
}
#contact .contact-card p {
margin-bottom: 10px;
font-size: 0.95rem;
color: #333;
}
#contact .contact-card a {
color: #1b39be;
text-decoration: none;
font-weight: 500;
}
#contact .contact-card a:hover {
color: #0f2a94;
}

/* Sobrescribe el hover “verde” por el azul de Inicio */
.navbar-nav .nav-link:hover {
color: #0f2a94 !important;     /* mismo azul oscuro del hover de Inicio */
background-color: transparent;  /* quita cualquier fondo verde */
}


/* ─────────────────────────────────────────────────────
   ESTILOS RESPONSIVOS PARA SECCIÓN “Final” (Contacto)
   ───────────────────────────────────────────────────── */
   #contact .decor-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  #contact .card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
  }
  
  /* Cada tarjeta (contact-card) y el logo ocupan 1/3 aprox. */
  #contact .contact-card,
  #contact .contact-right {
    flex: 1 1 calc(33% - 1rem);
    min-width: 220px;
  }
  
  /* Asegura que la imagen nunca se desborde */
  #contact .company-logo {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }
  
  /* ────────── PANTALLAS MEDIANAS (≤ 992px) ────────── */
  @media (max-width: 992px) {
    #contact .contact-card,
    #contact .contact-right {
      flex: 1 1 calc(50% - 1rem);
    }
  }
  
  /* ────────── MÓVILES (≤ 576px) ────────── */
  @media (max-width: 576px) {
    #contact .card-container {
      flex-direction: column;
      align-items: center;
    }
  
    #contact .contact-card,
    #contact .contact-right {
      flex: 1 1 100%;
      max-width: 95%;
    }
  }
/* Empuja el logo hacia abajo para que no quede encima de la tarjeta */
#contact .contact-right {
  /* si ya tienes flex aquí, solo añade: */
  margin-top: 1.5rem;  /* ajusta el valor hasta que quede bien */
}

/* Alternativa: si prefieres mover solo la imagen */
#contact .company-logo {
  margin-top: 1.5rem;  /* o el valor que necesites */
}
  



/* ───── Tablets y pantallas ≤ 992px ───── */
@media (max-width: 992px) {
  .page-header .d-flex.flex-column {
    min-height: 450px !important;
  }
  .page-header h3.display-4 {
    font-size: 2.5rem;
  }
  /* ─────────── HEADER RESPONSIVE (manteniendo HTML intacto) ─────────── */
.page-header .d-flex.flex-column {
  /* Anula el width y left inline */
  width: 100% !important;
  left: 0 !important;

  /* Asegura que la imagen cubra todo y la altura mínima sea 600px */
  background-size: cover !important;
  min-height: 300px !important;
  position: relative !important;
  left: -30px !important;
  
  /* Quita cualquier padding/overflow extraño */
  padding: 0 !important;
  overflow: hidden;
}

/* Ajusta los textos para que no queden muy grandes */
.page-header h3.display-4 {
  font-size: 3rem;
}

/* Breadcrumb inline-flex: en móviles pasamos a columna */
.page-header .d-inline-flex {
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}

}

/* ───── Móviles ≤ 576px ───── */
@media (max-width: 576px) {
  .page-header .d-flex.flex-column {
    min-height: 300px !important;
    min-width: 390px !important;
    padding: 1rem !important;
    position: relative !important;
    left: -30px !important;
  }
  /* ─────────── HEADER RESPONSIVE (manteniendo HTML intacto) ─────────── */
.page-header .d-flex.flex-column {
  /* Anula el width y left inline */
  width: 100% !important;
  left: 0 !important;

  /* Asegura que la imagen cubra todo y la altura mínima sea 600px */
  background-size: cover !important;
  min-height: 300px !important;
  position: relative !important;
  left: -30px !important;


  /* Quita cualquier padding/overflow extraño */
  padding: 0 !important;
  overflow: hidden;
}

/* Ajusta los textos para que no queden muy grandes */
.page-header h3.display-4 {
  font-size: 3rem;
}

/* Breadcrumb inline-flex: en móviles pasamos a columna */
.page-header .d-inline-flex {
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}


}



/* ────────── Carousel más alto en móviles ────────── */
@media (max-width: 576px) {
  /* Aumenta la altura mínima del .carousel-item */
  #header-carousel .carousel-item {
    position: relative;
    min-height: 350px;  /* ajusta este valor a tu gusto */
  }

  /* Hacemos que la imagen ocupe todo el contenedor */
  #header-carousel .carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }


}
