@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);
}




/* EXAMEN MEDICO */
.examen-medico{
padding:60px 20px;
background:#f5f5f5;
}

.carousel{
position:relative;
max-width:1200px;
margin:auto;
overflow:hidden;
}

.carousel-track{
display:flex;
gap:25px;
transition:transform 0.5s ease;
}

.tarjeta{
min-width:320px;
background:white;
border-radius:14px;
padding:25px;
box-shadow:0 10px 25px rgba(0,0,0,0.1);
border-top:6px solid #FF0000;
}

/* BOTONES */

.carousel-btn{
position:absolute;
top:50%;
transform:translateY(-50%);
background:#fac734;
border:none;
font-size:30px;
padding:10px 15px;
cursor:pointer;
border-radius:8px;
z-index:2;
}

.carousel-btn:hover{
background:#EA6F2C;
color:white;
}

.prev{
left:0;
}

.next{
right:0;
}
.examen-medico{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
gap:30px;
padding:60px 20px;
background:#f5f5f5;
}

/* TARJETAS */

.tarjeta{
background:white;
border-radius:14px;
padding:25px;
box-shadow:0 10px 25px rgba(0,0,0,0.1);
border-top:6px solid #FF0000;
transition:0.3s;
display:flex;
flex-direction:column;
justify-content:space-between;
}

.tarjeta:hover{
transform:translateY(-6px);
box-shadow:0 14px 30px rgba(0,0,0,0.18);
}

/* TITULOS */

.tarjeta h2{
color:#4D4C4A;
font-size:20px;
margin-bottom:10px;
}

.tarjeta h3{
color:#EA6F2C;
margin-top:12px;
}

/* LISTAS */

.tarjeta ul{
padding-left:18px;
margin-top:5px;
}

.tarjeta li{
margin-bottom:6px;
}

/* BOTON WHATSAPP */

.btn-whatsapp{
display:flex;
align-items:center;
justify-content:center;
gap:8px;

background:#25D366;
color:white;

padding:14px 18px;

border-radius:10px;
text-decoration:none;

font-size:14px;
font-weight:bold;

margin-top:20px;

border:none;
cursor:pointer;

width:100%;
max-width:260px;
align-self:center;

transition:0.3s;
}

/* ICONO */

.btn-whatsapp img{
width:26px;
height:26px;
}

/* TEXTO */

.btn-whatsapp span{
text-align:center;
line-height:1.3;
}

/* HOVER */

.btn-whatsapp:hover{
background:white;
color:#25D366;
border:2px solid #25D366;
}

/*CARRUSEL*/

.examen-medico{
padding:60px 20px;
background:#f5f5f5;
}

.carousel{
overflow:hidden;
max-width:1200px;
margin:auto;
}

.carousel-track{
display:flex;
gap:25px;
transition:transform 0.5s ease;
}

.tarjeta{
min-width:300px;
background:white;
border-radius:14px;
padding:25px;
box-shadow:0 10px 25px rgba(0,0,0,0.1);
border-top:6px solid #FF0000;
}

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/LOGO/BANNER/Examen_medico/1.jpg');
  animation-delay: 0s;
} /* Imagen 2 */
.banner::after {
  background-image: url('../images/LOGO/BANNER/Examen_medico/2.jpg');
  animation-delay: 6s;
} /* Imagen 3 - usando div extra */
.banner .extra-bg {
  background-image: url('../images/LOGO/BANNER/Examen_medico/3.jpg');
  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);
}



.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;
}

@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;
  }
}
