/* Estilos personalizados para Medicos24 */

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f7f9fc;
  }
  
  .hero {
    background: #014f86;
    color: white;
  }
  
  .hero .form-control {
    border-radius: 2rem;
    padding-left: 1.5rem;
  }
  
  .btn-search {
    border-radius: 2rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    background: #00c3ff;
    border: none;
  }
  
  .testimonio {
    background: #013a63;
    color: white;
  }
  
  .especialistas {
    background: #f9f9f9;
  }
  
  .especialistas .card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
  }
  
  .especialistas .btn-warning {
    border-radius: 2rem;
    font-weight: bold;
  }
  
  .hero-image-wrapper {
    position: relative;
  }

  .hero-image-wrapper::before {
    content: "";
    position: absolute;
    top: -40px;
    left: -60px;
    width: 140%;
    height: 120%;
    background: radial-gradient(circle at 40% 50%, #00c3ff33 0%, transparent 70%);
    z-index: 0;
    border-radius: 50%;
  }

  .hero-image-wrapper img {
    position: relative;
    z-index: 1;
  }  

  .hero-image-wrapper {
    position: relative;
    animation: float 6s ease-in-out infinite;
  }

  .hero-image-wrapper::before {
    content: "";
    position: absolute;
    top: -40px;
    left: -60px;
    width: 140%;
    height: 120%;
    background: radial-gradient(circle at 40% 50%, #00c3ff33 0%, transparent 70%);
    z-index: 0;
    border-radius: 50%;
  }

  .hero-image-wrapper img {
    position: relative;
    z-index: 1;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  }

  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }

  .especialistas .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .especialistas .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  }

@media (max-width: 768px) {
  .hero form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero .form-control,
  .hero select,
  .hero button {
    width: 100%;
    border-radius: 0.75rem !important;
    font-size: 1rem;
  }

  .hero button {
    font-weight: bold;
    padding: 0.75rem;
  }
}


  .hero {
    position: relative;
    background: url('assets/img/hero-doctora2.png') center/cover no-repeat;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    min-height: 100vh;
    display: flex;
    align-items: center;
    z-index: 1;
  }

  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(99, 125, 143, 0.30);
    z-index: 2;
  }




  .hero .container {
    position: relative;
    z-index: 3;
  }

  .hero form .form-control,
  .btn-search {
    background-color: white;
    color: #014f86;
  }

  .hero-image-wrapper {
    display: none;
  }

  @media (max-width: 768px) {
    .hero {
      text-align: center;
      padding-top: 4rem;
      padding-bottom: 4rem;
    }
    .hero form {
      flex-direction: column;
    }
    .hero .form-control {
      width: 100%;
    }
  }  

  .btn-search-24 {
      background-color: #0d6efd; /* Azul Bootstrap */
      border-radius: 50px;
  }

  .btn-search-24-1 {
    border-radius: 50px;
  }

  .btn-search-m {
  transition: all 0.3s ease;
  }
  .btn-search-m:hover {
    background-color: #0056b3;
    transform: scale(1.05);
  }

  .btn-search-Som {
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
  .btn-search-Som:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  }

  .link-underline {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: #000;
  }

  .link-underline::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #0d6efd;
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

  .link-underline:hover::after {
    width: 100%;
  }

  .nav-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #00c3ff;
  transition: width 0.3s ease, left 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}


.buscador-group {
  display: flex;
  flex-wrap: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 50px;
  overflow: hidden;
  background-color: white;
  width: 100%;
  max-width: 800px;
}

.buscador-group input {
  flex: 2;
  padding: 0.75rem 1rem;
  border: none;
  outline: none;
}

.buscador-group select {
  flex: 1;
  border: none;
  padding: 0.75rem 1rem;
  border-left: 1px solid #ccc;
  background-color: white;
}

.buscador-group button {
  background-color: #FFE552;
  color: #333;
  padding: 0 1.5rem;
  font-weight: bold;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

#formBusqueda input {
  width: 45%;
}

#formBusqueda select {
  width: 45%;
}

#formBusqueda button {
  width: 65px;
}

/*buscador*/

  /* Tamaño general */
  #formBusqueda input,
  #formBusqueda select,
  #formBusqueda button {
    height: 50px;
    font-size: 1.1rem;
  }

  #estadoSelect {
    border-radius: 0;
  }

  #formBusqueda button {
    height: 50px;
    border-left: none !important;
  }

  
  @media (max-width: 768px) {
    .input-group {
      flex-direction: column;
    }

    .input-group > * {
      border-radius: 0 !important;
      width: 100%;
      margin-bottom: 8px;
    }

    .input-group > input {
      border-radius: 1rem 1rem 0 0 !important;
    }

    .input-group > button {
      border-radius: 0 0 1rem 1rem !important;
    }
  }

/* Tarjetas de doctores */
.card {
  border: none;
  border-radius: 1rem;
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: relative;
}

/* Texto y títulos */
.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #014f86;
}

.text-muted {
  color: #6c757d !important;
}

/* Botones redondeados */
.btn-primary,
.btn-outline-primary,
.btn-outline-secondary {
  border-radius: 2rem;
}

/* Íconos espaciados */
i.me-2 {
  margin-right: 0.5rem;
}

/* Encabezados de secciones internas */
.card h6.fw-semibold {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* Responsive para imágenes */
.card img.rounded-circle {
  max-width: 110px;
}  

.micrositio-link {
  display: inline-block;
  font-weight: 600;
  color: #0077cc;
  background: #f0f8ff;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.3s ease-in-out;
}

.micrositio-link:hover {
  background-color: #e0f2ff;
  color: #004b8a;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}


.form-buscador .form-control,
.form-buscador .form-select {
  min-height: 48px;
  font-size: 1rem;
  box-shadow: none;
}

@media (min-width: 768px) {
  #estadoSelect {
    max-width: 200px;
  }
}

/* Estilo común para todos */
#estadoSelect {
  min-height: 48px;
  font-size: 1rem;
  border: none;
  box-shadow: none;
}

/* SOLO en móviles: que el select se estire como los demás */
@media (max-width: 767.98px) {
  #estadoSelect {
    width: 100% !important;
    flex: 1 1 auto !important;
  }
}

/* SOLO en escritorio: limita el ancho */
@media (min-width: 768px) {
  #estadoSelect {
    max-width: 190px;
  }
}

/* Estilo para lista de sugerencias */
#sugerencias {
  position: absolute;
  bottom: 100%; /* Esto lo coloca justo arriba del contenedor */
  margin-bottom: 0.5rem;
  z-index: 999;
  width: 100%;
}



#sugerencias .list-group-item {
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

#sugerencias .list-group-item:hover {
  background-color: #f1f1f1;
}

#sugerencias .active {
  background-color: #e6f7ff;
  font-weight: bold;
  color: #007bff;
}

/* Para navegadores WebKit (Chrome, Edge, Safari) */
#sugerencias::-webkit-scrollbar {
  width: 6px;
}
#sugerencias::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

