/* Estilos generales */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffff;
  color: #222;
}

/* Header */
header {
  background-color: #afafaa;
  color: #555;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Contenedor de marca */
.brand-container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1 1 300px;
  margin-bottom: 10px;
}

.logo-container {
  flex-shrink: 0;
}

.logo-container img {
  max-width: 200px;
  height: auto;
}

.text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

h1 {
  margin: 2px 0;
  font-size: 24px;
  color: #555;
}

p {
  font-size: 18px;
  color: #555;
  text-align: center;
}

/* Botones de navegación */
.button-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1 1 300px;
}

.button-container a {
  padding: 10px 20px;
  background-color: #555;
  color: white;
  text-decoration: none;
  border: 2px solid #555;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
  transition: all 0.3s ease;
  transform: scale(1);
}

.button-container a:hover {
  background-color: #333;
  border-color: #333;
  transform: scale(1.05);
}

/* Estilos del Footer */
footer.footer {
  background-color: #f1f1f1;
  color: #555; /* Color corregido */
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  gap: 60px;
}

footer.footer div {
  flex: 1 1 250px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

footer.footer h3 {
  font-size: 1.4rem;
  margin-top: 6px;
  margin-bottom: 10px;
  font-weight: bold;
  color: #555;
}

footer.footer div p:first-of-type {
  margin-top: 6px;
}

footer.footer p {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #555;
}


div[style*="text-align: center"] {
  background-color: #e0e0e0;
  padding: 10px;
  font-size: 0.9rem;
  color: #555; /* Corregido de #222 a #555 */
  margin-top: 30px;
  text-align: center;
  font-style: italic;
}


/* Responsive Design */
@media (max-width: 768px) {
  footer.footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 20px 10px;
  }

  footer.footer div {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  footer.footer h3 {
    font-size: 1.2rem;
    margin-top: 10px;
  }

  footer.footer p {
    font-size: 0.9rem;
    text-align: center;
  }
}


/* Logo del footer */
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo img {
  max-width: 250px;
  height: auto;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #20b858;
}

/* Sección Nosotros */
.nosotros-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.nosotros-section h2 {
  color: #555;
  font-size: 36px;
  margin-bottom: 20px;
}

.nosotros-section .nosotros-text {
  max-width: 900px;
  margin: 0 auto 40px;
  font-size: 18px;
  line-height: 1.6;
  color: #222;
}

/* Tarjetas de misión, visión, valores */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  background-color: #ffffff;
  border-left: 5px solid #555;
  padding: 20px;
  border-radius: 10px;
  flex: 1 1 300px;
  min-height: 180px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #222;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
}

.card h3 {
  color: #555;
  margin-bottom: 10px;
  font-size: 1.2rem;
  text-align: center;
}

.card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
}

.card.valor {
  flex: 1 1 620px;
  min-height: 180px;
}

@media (max-width: 768px) {
  .cards-container {
      flex-direction: column;
      align-items: center;
  }

  .card, .card.valor {
      width: 90%;
  }

  .nosotros-section {
      flex-direction: column;
      align-items: center;
  }

  .nosotros-img img {
      max-width: 100%;
  }
}

.nosotros-section {
  display: flex;
  flex-wrap: wrap;
  background-color: #f9f9f9;
  color: #222;
  padding: 60px 20px;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
}

.nosotros-img {
  flex: 1 1 500px;
  max-width: 600px;
}

.nosotros-img img {
  width: 80%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(85, 85, 85, 0.3);
  transition: transform 0.3s ease;
}

.nosotros-img img:hover {
  transform: scale(1.02);
}

.nosotros-text {
  flex: 1;
  max-width: 600px;
}

.nosotros-text h2 {
  color: #555;
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 0px;
}

.nosotros-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 30px;
}

/* Menú desplegable */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  padding: 10px 20px;
  background-color: #555;
  color: white;
  text-decoration: none;
  border: 2px solid #555;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
  transition: all 0.3s ease;
  display: inline-block;
}

.dropbtn:hover {
  background-color: #333;
  border-color: #333;
  transform: scale(1.05);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 180px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 5px;
  overflow: hidden;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid #ddd;
  background-color: #f9f9f9;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

/* Mostrar el menú al pasar el mouse */
.dropdown:hover .dropdown-content {
  display: block;
}


/* card apartado dentistas */

.dentistas-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 30px;
}

.card-dentista {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 300px;
  font-family: 'Arial', sans-serif;
  text-align: center;
}

.foto-dentista {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

.card-dentista h3 {
  font-size: 18px;
  color: #222;
  margin: 10px 0 5px;
}

.card-dentista .especialidad {
  font-style: italic;
  color: #666;
  margin-bottom: 10px;
}

.card-dentista hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 10px auto;
  width: 80%;
}

.card-dentista p {
  font-size: 14px;
  color: #444;
  margin: 5px 0;
}

.formacion {
  margin: 10px 0;
  text-align: left;
}

.formacion-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.logo-formacion {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

.admin-hidden-login {
    display: none;
}
