@import url('./Styles-general.css');


/* 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: #1877F2;
}

.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 */
@media (max-width: 768px) {
  .logo-float {
    bottom: 20px;
    right: 20px;
  }

  .logo-logo img {
    width: 50px;
    height: 50px;
  }

  .speech-bubble {
    font-size: 13px;
    right: 60px;
    max-width: 150px;
    padding: 8px 12px;
  }

  .contact-options {
    width: 160px;
    bottom: 70px;
  }
}
.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: #0099cf;
  transform: scale(1.1);
}










main {
  background-size: cover;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    black 0%,
    black 99%,
    transparent
  );
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 0%,
    black 99%,
    transparent
  );
  background-repeat: no-repeat;

  padding: 20px 0 70px;
}

/* === Banner y Carrusel === */
.banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
  margin-top: 90px;
  padding: 50px 0;
  overflow: hidden;
  background-color: #000; /* fallback */
}

.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/medicina1.avif');
  animation-delay: 0s;
} /* Imagen 2 */
.banner::after {
  background-image: url('../images/medicos2.jpg');
  animation-delay: 6s;
} /* Imagen 3 - usando div extra */
.banner .extra-bg {
  background-image: url('../images/medicos3.avif');
  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 h2 {
  font-size: 80px;
  color: #fff;
  text-shadow: 2px 2px 6px #000;
}

.medicos-section {
  padding-top: 100px;
}

.medicos-section .title {
  font-size: 30px;
  text-align: left;
}

.medicos-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px;
  margin-top: 24px;
}

.medicos-box .img {
  max-width: 310px;
  width: 100%;
  max-height: 382px;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.medicos-item {
  background-color: #fff;
  max-width: 350px;
  width: 100%;
  box-shadow: 0 14px 8px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

.medicos-item .text-item {
  margin: 0 12px 12px;
}

.medicos-item img {
  width: 200px;
  height: auto;
  margin: 10px auto 0;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.medicos-item .name {
  font-size: 20px;
  text-align: left;
  min-height: 68px;
  text-transform: none;
}

/* Estilos para la navegación de especialidades */
.especialidades-links.oculto {
  display: none;
}

.flecha-boton {
  color: #fff;

  background-color: transparent;

  width: fit-content;
  animation: pulse 1.5s infinite;
  border: 2px solid #fff;
  cursor: pointer;
  margin: 10px auto 0;
  font-size: 18px;
  padding: 8px;
  border-radius: 12px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.especialidades-nav {
  padding: 14px 0;
  box-shadow: 0 2px 5px #01193f;
  position: sticky;
  top: 90px;
  z-index: 100;
  width: 100%;
  background-size: cover;
  background-position: bottom;
  background-image: url('../images/banner-footer.jpg');
}

.especialidades-nav .container {
  display: flex;
  flex-direction: column;
}

.especialidades-nav h3 {
  color: #fff;
  font-size: 32px;
  text-shadow: 2px 2px 6px #000;
}

.especialidades-links {
  display: flex;
  flex-wrap: wrap;
  margin-top: 14px;
}

.especialidades-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  white-space: nowrap;
  padding: 6px 8px;
  border-radius: 10px;
  transition: all 0.3s;
}

.especialidades-links a:hover {
  background: #1a428c;
}

.especialidad-item {
  display: flex;
  gap: 22px;
  flex-direction: column;
}

.ob-left {
  object-position: left;
}

@media only screen and (max-width: 1100px) {
  .medicos-box {
    justify-content: center;
    gap: 20px;
  }
}

@media only screen and (max-width: 960px) {
  .banner {
    height: 300px;
  }

  .text-content h2 {
    font-size: 42px;
  }

  .especialidades-nav {
    top: 80px;
  }

  .medicos-box {
    gap: 10px;
  }

  .medicos-item {
    max-width: 300px;
  }

  .medicos-box .img {
    max-width: 280px;
  }
}

@media only screen and (max-width: 640px) {
  .banner {
    height: 200px;
    margin-top: 80px;
  }

  .text-content h2 {
    font-size: 36px;
  }

  .especialidades-links a {
    font-size: 16px;
  }

  .medicos-item {
    max-width: 440px;
  }

  .medicos-item .text-item {
    margin: 0 38px 10px;
  }

  .medicos-item .name {
    min-height: auto;
  }
}

@media only screen and (max-width: 480px) {
  .especialidades-nav {
    padding: 8px 0;
  }

  .especialidades-nav h3 {
    font-size: 26px;
  }

  .banner-section h2 {
    font-size: 32px;
  }

  .medicos-section .title {
    font-size: 26px;
  }

  .medicos-box {
    margin-top: 10px;
  }

  .medicos-item .name {
    font-size: 20px;
  }

  .medicos-item .text-item {
    margin: 0 30px 8px;
  }

  .medicos-box .img {
    max-width: 238px;
  }
}
