body {
  margin: 0;
  font-family: Arial, sans-serif;
  opacity: 0;
  transform: translateY(20px);
  animation: aparecer 1s ease forwards;
  background: #f5f7fa;
}
@keyframes aparecer {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tel {
  color: rgb(250, 248, 248);
  font-weight: bold;
}

/* HEADER */
.header {
  
  text-align: center;
  background: #0A3D62;
  color: white;
  padding: 15px 40px;
  opacity: 0;
  transform: translateY(-20px);
  animation: bajar 1s ease forwards;
  animation-delay: 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  
}
.left {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.left img {
  height:150px;
}
.left p {
  margin-top: 5px;
  font-size: 14px;
}
.left p {
  margin-top: 5px;
  font-size: 14px;
}.center {
  text-align: center;
  flex: 1;
}

.center h1 {
  font-size: 28px;
}

/* DERECHA */
.redes {
  display: flex;
  gap: 15px;
}

.redes a {
  background: rgba(255,255,255,0.1);
  padding: 10px;
  border-radius: 50%;
  color: white;
  transition: 0.3s;
}

.redes a:hover {
  background: #1abc9c;
}
@keyframes bajar {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.marca img {
  height: 150px;
}

/* CONTENEDOR FLEX */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: center; /* centra el contenido */
  position: relative;
  width: 100%;
  margin-top: 30px;
  margin-bottom: 30px;
}

/* LOGO CENTRADO */
.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.icono {
  font-size: 40px;
  color: #2c3e50;
}
/* REDES A LA DERECHA */
.redes {
  position: absolute;
  right: 0;
}

.redes a {
  color: white;
  margin-left: 15px;
  font-size: 20px;
}

header h1 {
    text-align: center;
  margin: 0;
}
/* HEADER FLEX */
.header {
  background: #0A3D62;
  color: white;
  padding: 20px;
}

/* BARRA SUPERIOR */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* REDES SOCIALES */
.redes a {
  color: white;
  margin-left: 0px;
  font-size: 20px;
  transition: 0.3s;
  font-size: 22px;
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  
}
.redes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.redes a:nth-child(1):hover {
  background: #1877F2; /* Facebook */
}

.redes a:nth-child(2):hover {
  background: #E4405F; /* Instagram */
}

.redes a:nth-child(3):hover {
  background: #000000; /* TikTok */
}

.redes a:nth-child(4):hover {
  background: #d91515; /* Youtube */
}

.redes-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.redes-footer a {
  color: white;
  font-size: 22px;
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: 0.3s;
}

/* EFECTO HOVER BONITO */
.redes-footer a:hover {
  transform: scale(1.1);
}

/* COLORES OFICIALES */
.redes-footer a:nth-child(1):hover {
  background: #1877F2; /* Facebook */
}

.redes-footer a:nth-child(2):hover {
  background: #E4405F; /* Instagram */
}

.redes-footer a:nth-child(3):hover {
  background: #000000; /* TikTok */
}
.redes-footer a:nth-child(4):hover {
  background: #ec1212; /* Youtube */
}

/* HERO */
.hero {
  text-align: center;
  padding: 40px;
}

/* HERO PREMIUM */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background-image 1s ease-in-out;
}

.bg-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* 🔥 CLAVE */
  z-index: 0;
}


.bg-slider img {
   position: absolute;
   top: 0;
   left: 0;
  width: 100%;
  height: 100%; /* 🔥 CLAVE */
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  object-position: center;
}

.bg-slider img.active {
  opacity: 1;
}
.overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  padding: 20px;
}
.hero::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  top: 0;
  left: 0;
  z-index: 1;
}

/* BOTÓN SECUNDARIO */
.btn2 {
  background: #0A3D62;
  color: white;
  padding: 15px 25px;
  text-decoration: none;
  border-radius: 8px;
  margin-left: 10px;
  display: inline-block;
}

.hero h2 {
  color: #0A3D62;
}

/* BOTÓN */
.btn {
  background: #25D366;
  color: white;
  padding: 15px 25px;
  text-decoration: none;
  border-radius: 8px;
  display: inline-block;
  margin-top: 20px;
  font-size: 18px;
}

/* SERVICIOS */
.servicios {
  padding: 30px;
}

.servicios h2 {
  text-align: center;
  color: #0A3D62;
}
.doctor {
  padding: 30px;
  text-align: center;
}

.testimonios {
  padding: 30px;
  background: #eef2f7;
  text-align: center;
}

.card {
  background: white;
  padding: 20px;
  margin: 15px;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
}
.btn {
  background: #25D366;
  color: white;
  padding: 15px 25px;
  text-decoration: none;
  border-radius: 8px;
  display: inline-block;
  margin-top: 20px;
  font-size: 18px;
  transition: 0.3s;
}

.btn i {
  margin-right: 10px;
  font-size: 20px;
}

.btn:hover {
  background: #1ebe5d;
}
.testimonios {
  padding: 30px;
  background: #f0f2f5;
}

/* CAJA DE COMENTARIO */
.comentario {
  background: white;
  padding: 15px;
  border-radius: 10px;
  margin: 15px auto;
  max-width: 500px;
  box-shadow: 0px 0px 8px rgba(0,0,0,0.1);
}

/* PERFIL */
.perfil {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.perfil img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

/* FECHA */
.fecha {
  font-size: 12px;
  color: gray;
  margin: 0;
}

/* TEXTO */
.texto {
  margin: 0;
}

/* UBICACIÓN */
.ubicacion {
  padding: 30px;
  text-align: center;
}
.btn-waze {
  background: #33CCFF;
  color: white;
  padding: 15px 25px;
  text-decoration: none;
  border-radius: 8px;
  display: inline-block;
  margin-top: 15px;
  font-size: 18px;
  transition: 0.3s;
}

.btn-waze:hover {
  background: #1bb6e0;
}

.horario {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
}

.dia {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  transition: 0.3s;
}

.dia:nth-child(even) {
  background: #f5f5f5;
}

/* DÍA ACTUAL */
.dia.activo {
  background: #9fa4ad;
  color: white;
  font-weight: bold;
}
.estado {
  transition: 0.3s;
}

.estado.cerrado {
  background: #dc3545;
}

.estado.abierto {
  background: #28a745;
}

/* NUEVO ESTADO */
.estado.espera {
  background: #ffc107;
  color: black;
}


/* ESTILO ABIERTO */
.btn-accion.abierto {
  background: #25D366;
}

/* ESTILO CERRADO */
.btn-accion.cerrado {
  background: #6c757d;
}

/* HOVER */
.btn-accion:hover {
  transform: scale(1.05);
}
/* FOOTER */
footer {
  position: relative;
  background: #0A3D62;
  color: white;
  text-align: center;
  padding: 15px;
}
.whatsapp-float {
  position: absolute;
  width: 60px;
  height: 60px;
  bottom: -20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: 0.3s;
}

/* HOVER */
.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ANIMACIÓN LATIDO */
@keyframes latido {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.whatsapp-float {
  animation: latido 2s infinite;
}

@media (max-width: 768px) {

  .header {
    flex-direction: column;
    gap: 10px;
  }

  .marca {
    position: static;
    transform: none;
  }

}
.btn, .btn2 {
  padding: 12px 20px;
  font-size: 16px;
}
@media (max-width: 768px) {

  .btn, .btn2 {
    width: 90%;
    max-width: 300px;
    display: block;
    margin: 10px auto;
  }

}
h2 {
  font-size: 40px;
}
@media (max-width: 768px) {

  h2 {
    font-size: 22px;
  }

  p {
    font-size: 15px;
  }

}
.mapa {
  width: 100%;
  height: 300px;
}

.mapa iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {

  .header {
    flex-direction: column;
    gap: 10px;
  }

  .marca {
    position: static;
    transform: none;
  }

}
@media (max-width: 768px) {

  .header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .left {
    order: 1;
  }

  .center {
    order: 2;
  }

  .center h1 {
    font-size: 20px;
  }

  .right {
    order: 3;
    justify-content: center;
  }

  .left img {
    height: 60px;
  }

}
.header {
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
@media (max-width: 768px) {

  .redes {
    gap: 6px; 
  }

  .redes a {
    width: 32px;  
    height: 32px;
    padding: 0;    

    font-size: 14px; 

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
  }

}
