@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #007C8A;
  --primary-color-dark: #0d846c;
  --primary-color-light: #e9f7f7;
  --secondary-color: #4CAF50;
  --text-dark: #333333;
  --text-light: #767268;
  --white: #ffffff;
  --max-width: 1200px;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__header {
  margin-bottom: 0.5rem;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-dark);
  
}

.btn {
  padding: 0.75rem 2rem;
  outline: none;
  border: none;
  font-size: 1rem;
  white-space: nowrap;
  color: var(--white);
  background-color: var(--secondary-color);
  border-radius: 5px;
  cursor: pointer;
}

img {
  width: 100%;
  display: flex;
}

a {
  text-decoration: none;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
}
 /* Header original */
 /*
header {
  background-image: linear-gradient(
      to right,
      rgba(18, 123, 172, 0.9),
      rgba(18, 90, 172, 0.7)
    ),
    url("/images/header.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
  */

  /* Movimiento de header */
header {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  background-image: linear-gradient(
      to right,
      rgba(18, 123, 172, 0.9),
      rgba(18, 90, 172, 0.7)
    ),
    url("/images/header.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
  animation: changeBackground 10s infinite;
}

@keyframes changeBackground {
  0%, 50% {
    background-image: linear-gradient(
      to right,
      rgba(18, 123, 172, 0.9),
      rgba(18, 90, 172, 0.7)
    ),
    url("/images/header.jpg");
  }
  50.01%, 100% {
    background-image: linear-gradient(
      to right,
      rgba(18, 123, 172, 0.9),
      rgba(18, 90, 172, 0.7)
    ),
    url("/images/doctoras.jpg");
  }
}

 /*Fin movimiento de header */

.nav__container {
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
}

.nav__logo span {
  color: var(--secondary-color);
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.link a {
  padding: 0.5rem;
  color: var(--primary-color-light);
}

.link a:hover {
  color: var(--white);
}

.header__container {
  display: flex;
  align-items: center;
  gap: 5rem;
}

.header__container h1 {
  margin-bottom: 1rem;
  max-width: 800px;
  font-size: 3.5rem;
  line-height: 4rem;
  color: var(--white);
}

.header__container p {
  margin-bottom: 2rem;
  max-width: 600px;
  color: var(--primary-color-light);
}

.header__form {
  width: 100%;
  max-width: 350px;
}

.header__form form {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
}

.header__form input {
  padding: 1rem;
  outline: none;
  border: none;
  font-size: 1rem;
  color: var(--primary-color);
  background-color: var(--primary-color-light);
  border-radius: 5px;
}

.header__form input::placeholder {
  color: var(--primary-color);
}

.form__btn {
  background-color: var(--primary-color);
  transition: 0.3s;
}

.form__btn:hover {
  background-color: var(--primary-color-dark);
}

.header__form h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

/*fin  heaader */

/* ======== ESTILO DEL MENÚ DESPLEGABLE "ESPECIALIDADES" CON FONDO TRANSPARENTE ======== */

.nav__links .dropdown {
  position: relative;
}

.nav__links .dropdown-toggle {
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0, 0, 0, 0.2); /* Fondo transparente */
  backdrop-filter: blur(6px); /* Desenfoque del fondo */
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  padding: 12px 0;
  border-radius: 12px;
  display: none;
  min-width: 240px;
  z-index: 1;
  transition: all 0.3s ease;
}

.dropdown-menu li {
  padding: 8px 20px;
  list-style: none;
}

.dropdown-menu li a {
  color: white; /* Color de texto blanco para contrastar con el fondo oscuro */
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.dropdown-menu li:hover a {
  color: #0077cc; /* Cambia el color al pasar el mouse */
}

.dropdown:hover .dropdown-menu {
  display: block;
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


 
 
/*fin del menu desplegable especialidades _________________________________*/

/*Especialistas */
.specialties-section {
  background-color: #f4fcfd;
  padding: 5rem 8%;
  font-family: 'Roboto', sans-serif;
}

.specialties-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.specialties-text {
  flex: 1 1 500px;
  max-width: 600px;
}

.section-title {
  font-size: 2.5rem;
  color: #007C8A;
  margin-bottom: 1.5rem;
}

.section-title .highlight {
  color: #0095c8;
}

.brand-accent {
  color: #0095c8;
}

.section-description {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.specialties-subtitle {
  font-size: 1.4rem;
  color: #0067a3;
  margin-bottom: 1rem;
  font-weight: 600;
}

.specialties-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.specialties-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
  color: #333;
}

.specialties-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #0095c8;
  font-size: 1.2rem;
}

.specialties-image {
  flex: 1 1 400px;
  text-align: center;
}

.specialties-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 1rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .specialties-container {
    flex-direction: column;
    text-align: center;
  }

  .specialties-text {
    max-width: 100%;
  }

  .specialties-image img {
    max-width: 90%;
  }
}



/*fin  especialistas  */

/* inicio Doctores dddddddddddddddddd */

.doctors__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.doctors__header__content p {
  max-width: 600px;
  color: var(--text-light);
}

.doctors__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.doctors__nav span {
  padding: 5px 15px;
  font-size: 1.5rem;
  color: var(--primary-color);
  background-color: var(--primary-color-light);
  cursor: pointer;
}

.doctors__grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.doctors__card {
  text-align: center;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.doctors__card__image {
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease;  /* Agrega transición */
}

.doctors__card:hover .doctors__card__image {
  transform: scale(1.1);  /* Efecto de ampliación de imagen */
}

.doctors__socials {
  position: absolute;
  left: 0;
  bottom: -4rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: 0.5s;
}

.doctors__socials span {
  display: inline-block;
  padding: 6px 12px;
  font-size: 1.5rem;
  color: var(--text-dark);
  background-color: var(--white);
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.doctors__socials span:hover {
  color: var(--primary-color);
}

.doctors__card:hover .doctors__socials {
  bottom: 2rem;
}

.doctors__card h4 {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.doctors__card p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* finDoctores dddddddddddddddddd */








  

/* Estilos para el footer */
/* Estilos para el footer */
.footer {
  background-color: #f4f6f8; /* Fondo claro para una sensación limpia */
  color: #333; /* Texto oscuro para contraste */
  padding: 4rem 8%;
  font-family: 'Roboto', sans-serif;
}

/* Sección superior del footer */
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Logotipo y descripción */
.footer__brand {
  flex: 1 1 30%;
}

.footer__logo {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0067a3; /* Azul profesional para la marca */
}

.footer__logo span {
  color: #0095c8; /* Azul claro para resaltar */
}

.footer__description {
  font-size: 1.1rem;
  color: #555;
  margin-top: 1rem;
  line-height: 1.5;
}


/* Secciones del footer */
.footer__sections {
  flex: 2 1 60%;
  display: flex;
  justify-content: space-between;
  gap: 3rem;
}

.footer__section {
  flex: 1;
}

.footer__section h4 {
  font-size: 1.3rem;
  color: #0067a3;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.footer__section ul {
  list-style-type: none;
  padding: 0;
}

.footer__section li {
  margin-bottom: 0.8rem;
}

.footer__section a {
  color: #333;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__section a:hover {
  color: #0067a3; /* Azul para el hover */
}

/* Íconos de contacto */
.footer__section i {
  color: #0067a3;
  margin-right: 10px;
}

/* Barra inferior */
.footer__bottom {
  text-align: center;
  padding: 2rem 0;
  background-color: #007C8A;
  color: #fff;
}

.footer__bottom p {
  font-size: 1rem;
  opacity: 0.8;
}

.footer__socials {
  margin-top: 1.5rem;
}

.footer__socials .social-icon {
  font-size: 1.8rem;
  color: #fff;
  margin: 0 0.8rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer__socials .social-icon:hover {
  color: #0095c8; /* Azul claro para hover */
  transform: scale(1.2); /* Efecto de escala al pasar el ratón */
}

