@import url('./Styles-general.css');

/*BURBUJA DE BUSQUEDA*/
/* Contenedor de la burbuja y mensaje */
.floating-container {
  position: fixed;
  left: 30px;
  bottom: 35px;
  display: flex;
  align-items: center;
  z-index: 1000;
}

/* Burbuja flotante */
.floating-bubble {
  width: 60px;
  height: 60px;
  background-color: #000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #FF0000;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: none;
}

.floating-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.brands-menu-header {
  position: sticky;
  top: -15px;
  background: white;
  /* Para que no se vea lo que está debajo al hacer scroll */
  padding-bottom: 10px;
  z-index: 1;
  /* Asegura que quede encima de los botones al hacer scroll */
}


.brands-menu {
  position: fixed;
  left: 30px;
  bottom: 105px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 15px;
  width: 260px;
  /* Ancho fijo */
  height: 400px;
  /* Alto fijo */
  overflow-y: auto;
  display: none;
  flex-direction: column;
  z-index: 999;
  resize: both;
  /* Opcional: permite redimensionar manualmente */
  cursor: grab;
  /* Cursor visual para indicar que se puede mover */
}


/* Mostrar el menú */
.brands-menu.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Mensaje de la burbuja */
.bubble-message {
  margin-left: 15px;
  background-color: #333;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.brands-menu {
  position: fixed;
  left: 30px;
  bottom: 105px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 15px;
  width: 290px;
  /* Ancho fijo */
  height: 295px;
  /* Alto fijo */
  overflow-y: auto;
  display: none;
  flex-direction: column;
  z-index: 999;
  resize: both;
  /* Opcional: permite redimensionar manualmente */
  cursor: grab;
  /* Cursor visual para indicar que se puede mover */
}


/* Mostrar el menú */
.brands-menu.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Botones de marcas */
.brand-button {
  padding: 10px 15px;
  margin: 5px 0;
  background-color: #f0f0f0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s;
}

.brand-button:hover {
  background-color: #000;
  color: #ff0000;
}

/* Barra de búsqueda */
.search-box {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
}

/* Lista de accesorios */
.accessory-list {
  display: none;
  flex-direction: column;
  margin-left: 15px;
  border-left: 2px solid #00618A;
  padding-left: 10px;
}

.accessory-list.show {
  display: flex;
}

/* Botón para cerrar */
.close-button {
  background: transparent;
  border: none;
  font-size: 20px;
  color: #333;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.close-button:hover {
  color: red;
}

/* Título del menú */
.menu-title {
  margin: 5px 0 10px 0;
  font-size: 16px;
  font-weight: bold;
  color: #EA6F2C;
  text-align: center;
}

/* Ocultar mensaje */
.message-hidden {
  opacity: 0;
  pointer-events: none;
}


.accessory-button {
  padding: 6px 10px;
  background-color: #f0f0f0;
  border: none;
  text-align: left;
  cursor: pointer;
  margin-bottom: 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.accessory-button:hover {
  background-color: #ddd;
}

.highlighted {
  outline: 4px solid #007bff;
  outline-offset: 4px;
  border-radius: 8px;
  animation: fadeHighlight 2s ease-in-out;
}

@keyframes fadeHighlight {
  0% {
    outline-color: #007bff;
  }

  100% {
    outline-color: transparent;
  }
}






/* Estilo base */
.logo-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  font-family: 'Arial', sans-serif;
}

.logo-container {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.logo-logo img {
  width: 60px;
  height: 60px;
  transition: all 0.3s ease;
  border: 2px solid #000; /* Borde negro de 2px */
  border-radius: 8px;      /* Esquinas redondeadas (opcional) */
}


/* Globo de texto - Visible inicialmente */
.speech-bubble {
  position: absolute;
  right: 70px;
  background: white;
  padding: 10px 15px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  line-height: 1.4;
  width: max-content;
  max-width: 180px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.speech-bubble:after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid white;
}

/* Menú de opciones */
.contact-options {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 180px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.contact-option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
}

.contact-option:hover {
  background: #f5f5f5;
  transform: translateX(-5px);
}

.contact-option img {
  width: 28px;
  height: 28px;
  margin-right: 12px;
  object-fit: contain;
}

.whatsapp-option {
  color: #075E54;
}

.facebook-option {
  color: #001aff;
}

.instagram-option {
  color: #E4405F;
  /* Color oficial de Instagram */
}

.tiktok-option {
  color: #010101;
  /* TikTok usa un negro casi puro */
}

/* Estados interactivos */
.logo-container:hover .logo-logo img {
  transform: scale(1.1);
}

.logo-container.active .contact-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.logo-container.active .speech-bubble {
  opacity: 0;
  /* Oculta el mensaje al activar */
}

.logo-container.active .logo-logo img {
  transform: scale(1.1);
}

/* Responsive */
/* =============================== */
/* AJUSTE MAS COMPACTO PARA MOVIL */
/* =============================== */
@media (max-width: 768px) {
  
  .logo-float {
    bottom: 12px;
    right: 12px;
  }

  .logo-logo img {
    width: 38px;
    height: 38px;
  }

  .speech-bubble {
    font-size: 11px;
    right: 48px;
    max-width: 110px;
    padding: 5px 8px;
    border-radius: 15px;
  }

  .speech-bubble:after {
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid white;
    right: -6px;
  }

  .contact-options {
    width: 130px;
    bottom: 50px;
    padding: 8px;
  }

  .contact-option {
    padding: 5px 8px;
    font-size: 12px;
  }

  .contact-option img {
    width: 20px;
    height: 20px;
    margin-right: 6px;
  }

  .burbuja-inicio {
    bottom: 70px;
    right: 12px;
    padding: 6px 8px;
    font-size: 11px;
    border-radius: 20px;
  }
}
  /* ============================================
   AJUSTES RESPONSIVE ADICIONALES
   (Sin modificar código existente)
   ============================================ */

/* Para pantallas de tablets y móviles grandes */
@media (max-width: 992px) {
    .encabezado h1 {
        font-size: 2.5rem;
    }
    
    .encabezado p {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .text-content h1 {
        font-size: 60px;
    }
    
    .text-content h2 {
        font-size: 50px;
    }
    
    .banner {
        height: 400px;
    }
  }


/* Para móviles (pantallas pequeñas) */
@media (max-width: 768px) {
    /* Ajustes del encabezado */
    .encabezado {
        margin-top: 80px;
        padding: 60px 15px;
    }
    
    .encabezado h1 {
        font-size: 1.8rem;
    }
    
    .encabezado p {
        font-size: 1rem;
    }
    
    /* Banner */
    .banner {
        height: 300px;
        margin-top: 60px;
    }
    
    .text-content h1 {
        font-size: 40px;
    }
    
    .text-content h2 {
        font-size: 32px;
    }
    
    /* Sección Nosotros */
    .nosotros-box:last-of-type {
        flex-direction: column;
        gap: 20px;
    }
    
    /* Especialidades - que se vean una debajo de otra en móvil */
    .especialidades-box {
        flex-direction: column;
        align-items: center;
    }
    
    .especialidades-item {
        width: 90%;
        max-width: 300px;
    }
    
    .especialidades-item .img {
        height: 250px;
    }
    
    /* Botón de WhatsApp */
    .btn-whatsapp {
        width: 90%;
        max-width: 300px;
        min-height: 70px;
        padding: 10px 15px;
    }
    
    .btn-whatsapp img {
        width: 28px;
        height: 28px;
    }
    
    .btn-whatsapp span {
        font-size: 13px;
    }
    
    /* Menú flotante de marcas (burbuja) */
    .floating-container {
        left: 15px;
        bottom: 20px;
    }
    
    .floating-bubble {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .brands-menu {
        left: 15px;
        bottom: 85px;
        width: 250px;
        height: 350px;
    }
    
    .bubble-message {
        display: none; /* Oculta el mensaje en móvil para ahorrar espacio */
    }
    
    /* Modal de especialidades */
    .modal-contenido {
        width: 90%;
        margin: 0 auto;
        padding: 12px;
    }
    
    #opcionesContainer button {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .btn-cancelar {
        padding: 12px 15px;
        font-size: 16px;
    }
}

/* Para móviles muy pequeños (menos de 480px) */
@media (max-width: 480px) {
    .encabezado h1 {
        font-size: 1.5rem;
    }
    
    .text-content h1 {
        font-size: 28px;
    }
    
    .text-content h2 {
        font-size: 24px;
    }
    
    .banner {
        height: 250px;
    }
    
    .brands-menu {
        width: 220px;
        height: 300px;
    }
    
    .brand-button {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .search-box {
        padding: 8px;
        font-size: 14px;
    }
}


.burbuja-inicio {
  position: fixed;
  bottom: 110px;
  right: 30px;
  background-color: #000;
  color: white;
  padding: 12px 12px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease;
}

.burbuja-inicio:hover {
  background-color: #000;
  color: #ff0000;
  transform: scale(1.1);
}








.encabezado {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
  color: white;
  border-radius: 20px;
  margin: 120px auto 40px auto;
  width: 90%;
  max-width: 1200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.encabezado:hover {
  transform: scale(1.01);
}

.encabezado h1 {
  font-size: 3.5rem;
  font-weight: 800;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  margin-bottom: 20px;
}

.encabezado p {
  font-size: 1.3rem;
  max-width: 800px;
  line-height: 1.8;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.texto-blanco {
  color: white;
}


.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center; /* Centra logo + texto */
  gap: 5px;
  background: linear-gradient(135deg, #25D366);
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: background 0.3s ease;
  margin: 12px 0;
  outline: none;
  border:#25D366;
  width: 300px; /* Ancho fijo (elimina max-width y fit-content) */
  min-height: 80px; /* Altura mínima para consistencia (ajusta según necesidad) */
  box-sizing: border-box; /* Incluye padding en el ancho total */

  /* Transiciones suaves */
  transition:
    background-color 0.6s ease-in-out,
    background 0.6s ease-in-out,
    color 0.6s ease-in-out,
    border-color 0.6s ease-in-out;
}

/* Logo de WhatsApp (tamaño fijo y centrado verticalmente) */
.btn-whatsapp img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* Texto multilínea centrado y alineado */
.btn-whatsapp span {
  flex-grow: 1;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.4; /* Mejor legibilidad en múltiples líneas */
}

.btn-whatsapp:hover {
  background-color: #ffffff;      /* fondo blanco al pasar el mouse */
  color: #25D366;                 /* letras verdes */
  border:#25D366;      /* borde verde visible en hover */
  transform: none !important;
}


.btn-whatsapp:active {
  transform: scale(1); /* Evita desplazamiento accidental en clic */
}


.img {
  max-width: 600px;
  width: 100%;
  border-radius: 12px;
}

.mt-8 {
  margin-top: 40px;
}

/* === Banner y Carrusel === */
.banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 530px;
  margin-top: 90px;
  padding: 50px 0;
  overflow: hidden;
  border-bottom: 2px solid #ededed;
  background-color: #000;
  /* fallback */
}

.banner h2 {
  text-align: center;
  letter-spacing: normal;
  word-spacing: normal;
}

.banner::before,
.banner::after,
.banner .extra-bg {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: fadeSlider 18s infinite;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.banner::before {
  background-image: url('../images/LOGO/BANNER/INICIO/Banner_cayetano_H.jpg');
  animation-delay: 0s;
}

.banner::after {
  background-image: url('../images/doctores2.webp');
  animation-delay: 6s;
}
.banner-logo {
  position: relative;
  z-index: 2; /* para que quede encima del fondo */
  
  width: 1000px; /* tamaño base */
  max-width: 90%; /* responsive */
  transition: transform 0.4s ease;
}
.banner .extra-bg {
  background-image: url('../images/emergencia.webp');
  animation-delay: 12s;
}

/* Oscurece las imágenes para que el texto sea más legible */
.banner::before,
.banner::after,
.banner .extra-bg {
  filter: brightness(0.6);
}

/* Overlay opcional si quieres aún más contraste */
.banner::after,
.banner::before,
.banner .extra-bg {
  filter: brightness(0.5);
}

@keyframes fadeSlider {
  0% {
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  30% {
    opacity: 1;
  }

  40% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.text-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
}

.text-content h1 {
  font-size: 120px;
  color: #ff0000;
  text-shadow: 2px 2px 8px #000;
}

.text-content h2 {
  font-size: 100px;
  color: #ff0000;
  text-shadow: 2px 2px 6px #000;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
  background-color: #ff0000 !important;
}

.carousel-indicators [data-bs-target] {
  background-color: #0099cf !important;
}

/* === Secciones === */

.nosotros {
  background-size: cover;
  -webkit-mask-image: linear-gradient(to bottom,
      transparent,
      black 12%,
      black 97%,
      transparent);
  mask-image: linear-gradient(to bottom,
      transparent,
      black 4%,
      black 97%,
      transparent);
  background-repeat: no-repeat;
  padding: 50px 0;

}

.nosotros-box:last-of-type {
  display: flex;
  margin-top: 40px;
  gap: 50px;
}

/* Quiénes Somos */
.nosotros-box p {
  line-height: 26px;
  font-size: 18px;
  color: #555;
  margin: 20px 0 0;
}

.nosotros-box b {
  color: #EA6F2C;
}

.nosotros-box ul {
  margin-top: 20px;
  list-style: none;
  padding-left: 0;
  font-size: 18px;
  color: #555;
}

.nosotros-box li {
  margin-bottom: 20px;
}

.nosotros-box li strong {
  display: block;
  font-weight: 700;
  margin-bottom: 5px;
  color: #EA6F2C;
}

.nosotros-item .img {
  margin: 0 auto;
  margin-top: 40px;
  display: block;
}

.div-transparent:before {
  background-image: linear-gradient(to right,
      transparent,
      #0099cf,
      transparent);
}

/* === Servicios === */

.especialidades {
  background-size: cover;

  background-repeat: no-repeat;
  padding: 20px 0;


}

.especialidades-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-top: 20px;
}

.especialidades-item {
  background-color: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  margin: 0 auto;
  flex-direction: column;
  justify-content: space-between;
}

.especialidades-item .img {
  width: 100%;
  max-width: 300px;
  height: 300px; /* Fijamos altura */
  object-fit: cover; /* Recorta sin deformar */
  border-radius: 10px; /* Opcional: esquinas redondeadas */
}

.especialidades-box .button {
  padding: 4px 6px;
  margin: 10px auto 0;
  max-width: 300px;
  width: 100%;
  text-align: center;
}

.modalEspecialidades {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  overflow: auto;
  justify-content: center;
  align-items: center;
}

.modal-contenido {
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  width: 100%;
  margin: 0 auto -50px;
  max-width: 520px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.icon-whatsap {
  padding-right: 8px;
  width: 48px;
  height: auto;
}

.modal-contenido h3 {
  margin-top: 20px;
}

#opcionesContainer button {
  display: block;
  width: 100%;
  padding: 14px 20px;
  margin: 16px 0;
  background: linear-gradient(135deg, #005bea, #00c6fb);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  text-align: left;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

#opcionesContainer button:hover {
  background: linear-gradient(135deg, #0044cc, #0099cc);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

#opcionesContainer {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}


.btn-cancelar {
  margin-top: 15px;
  padding: 14px 20px;
  transition: all 0.3s ease-in-out;
  background: #ff4444;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 18px;
}

.btn-cancelar:hover {
  color: #ff4444;

  border: 1px solid #ff4444;
  background-color: #fff;
}

.button {
  font-weight: bold;
  font-size: 18px;
  border-radius: 10px;
  background-color: #ff0000;
  color: #fff;
  border: 1px solid transparent;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.button:hover {
  background-color: #fff;
  color: #ff0000;
  border: 1px solid #0099cf;
}

/* === map === */
.map {
  width: 100%;
  height: 500px;
  margin-bottom: -8px;
}

/* ============================================
   MAPA RESPONSIVE E INTERACTIVO

/* Para el iframe directo de Google Maps */
iframe[src*="google.com/maps"] {
    width: 100% !important;
    height: 500px !important;
    pointer-events: auto !important;
    display: block;
}

/* Si quieres que sea más alto en pantallas grandes */
@media (min-width: 1200px) {
    iframe[src*="google.com/maps"] {
        height: 550px !important;
    }
}

/* En móvil, un poco más pequeño */
@media (max-width: 768px) {
    iframe[src*="google.com/maps"] {
        height: 350px !important;
    }
}

/* ============================================
   ARREGLO SUBMENU RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .header .submenu {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-width: 320px !important;
        min-width: auto !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 20px !important;
        margin: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .header .submenu-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 15px !important;
        padding: 10px 15px !important;
    }
    
    .header .icon-big {
        font-size: 24px !important;
        margin: 0 !important;
        width: 30px !important;
    }
    
    .header .submenu-item span {
        font-size: 14px !important;
        text-align: left !important;
    }
}

/* ============================================
   ARREGLO ANCHO SUBMENU LAPTOP
   ============================================ */

@media (min-width: 769px) {
    .header .submenu {
        min-width: 480px !important;
        width: auto !important;
        padding: 25px 35px !important;
    }
}