@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;
}
 

  /* inicio Movimiento de header */
/* Movimiento de header */
header {
  position: relative;
  width: 100%;
  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");
  }
}

/* Responsive header */
.nav-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Ocultar menú en móvil por defecto */
@media (max-width: 768px) {
  .nav__container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav__links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
  }

  .nav__links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 20;
  }

  .btn-contact {
    display: none; /* puedes mostrarlo si lo deseas */
  }

  .header__content {
    text-align: center;
    padding: 2rem 1rem;
  }

  .header__content h1 {
    font-size: 1.8rem;
  }

  .header__content p {
    font-size: 1rem;
  }
}

 /*Fin movimiento de header */


 
.nav__container {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 1.2rem;
  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: 1rem;
}

.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 header-------------------------------------------------------------------*/

/*menu desplegable especialidades  ____________________________*/

/* ======== ESTILO DEL MENÚ DESPLEGABLE "ESPECIALIDADES" ======== */

/* ======== 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 _________________________________*/



/* ======================== INICIO SECCIÓN SERVICIOS ======================== */

.service__container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Contenedor del título */
.service__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

/* Texto del encabezado */
.service__header__content p {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 700px;
}

/* Botón con animación de deslizamiento */
.service__btn {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, margin-left 0.3s ease;
}

.service__btn:hover {
  background-color: var(--primary-color-dark);
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  margin-left: 10px; /* Efecto de deslizamiento */
}

/* Grid de tarjetas */
.service__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Tarjeta individual */
.service__card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* ÍCONO REDONDO Y CENTRADO */
.service__icon {
  font-size: 2rem;
  color: var(--primary-color);
  background-color: rgba(0, 124, 138, 0.1); /* fondo suave */
  padding: 1rem;
  border-radius: 50%; /* ← redondo */
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

/* HOVER EN EL ÍCONO */
.service__card:hover .service__icon {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  background-color: var(--primary-color);
  color: #fff;
}

/* Título */
.service__card h4 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

/* Descripción */
.service__card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* ENLACE CON LÍNEA ANIMADA Y COLOR PERSONALIZADO */
.service__link {
  font-weight: 600;
  color: #007C8A;
  text-decoration: none;
  position: relative;
}

.service__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #007C8A;
  transition: transform 0.3s ease;
  transform: scaleX(0);
  transform-origin: left;
}

.service__link:hover::after {
  transform: scaleX(1);
}


/* ======================== FIN SECCIÓN SERVICIOS ======================== */

/* ======================== INICIO SECCIÓN ACERCA DE NOSOTROS ======================== */
.about__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 3rem 0;
}

.about__content {
  flex: 1 1 500px;
}

.about__content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.about__content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 1.2rem;
}

.about__image {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about__image img {
  width: 100%;
  max-width: 500px;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.about__image img:hover {
  transform: scale(1.03);
}
/* ======================== FIN SECCIÓN ACERCA DE NOSOTROS ======================== */



/* ======================== INICIO SECCIÓN ¿POR QUÉ ELEGIRNOS? ======================== */
.why__container {
  display: flex;
  flex-direction: row-reverse;  /* Imagen a la izquierda */
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 4rem 2rem;
  background-color: #f7f7f7;
  flex-wrap: wrap;
}

.why__image {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.why__image img {
  width: 100%;
  max-width: 550px;
  border-radius: 15px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.why__image img:hover {
  transform: scale(1.05);
}

.why__content {
  flex: 1 1 50%;
  color: #333;
}

.section__header {
  font-size: 2.5rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 1.5rem;
}

.section__description {
  font-size: 1rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.why__card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  text-align: center;
}

.why__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.why__card-icon {
  font-size: 3rem;
  color: #009688;
  margin-bottom: 1.5rem;
}

.why__card h4 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.why__card p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}
/* ======================== FIN SECCIÓN ¿POR QUÉ ELEGIRNOS? ======================== */

/* ======================== FIN SECCIÓN ¿POR QUÉ ELEGIRNOS? ======================== */

/*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 */











/*  inicio 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 */
}


/*  fin futer */

@media (width < 900px) {
  .service__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .about__container {
    grid-template-columns: repeat(1, 1fr);
  }

  .about__image {
    grid-area: 1/1/2/2;
  }

  .about__content {
    text-align: center;
  }

  

  .why__container {
    grid-template-columns: repeat(1, 1fr);
  }

  .why__content {
    text-align: center;
  }

  .why__grid {
    text-align: left;
  }
    

  .doctors__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width < 780px) {
  .nav__links {
    display: none;
  }

  .header__container {
    flex-direction: column;
  }
}

@media (width < 600px) {
  .service__header {
    flex-direction: column;
    text-align: center;
  }

  .service__grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .why__grid {
    column-gap: 1rem;
  }

  .doctors__header {
    flex-direction: column;
    text-align: center;
  }

  .doctors__grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .footer__bar__content {
    flex-direction: column;
    gap: 1rem;
  
  }

  /*-------------------Fina redes sociles */
  .footer__social-icons {
  position: relative;
  display: flex;
  z-index: 2;
}

.footer__social-icons li {
  position: relative;
  list-style: none;
  margin: 10px;
}

.footer__social-icons li a {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 2em;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 45px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(2px);
  transition: 0.5s;
  overflow: hidden;
}

.footer__social-icons li a:hover {
  transform: translateY(-20px);
}

.footer__social-icons li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  transform: skewX(45deg) translateX(150px);
  transition: 0.5s;
}

.footer__social-icons li a:hover::before {
  transform: skewX(45deg) translateX(-150px);
}



  
}