/* Fuente y colores base */
body {
  margin: 0;
  font-family: 'KoHo', sans-serif;
  color: #545454;
  background: #fff;
}

h1, h2, h3, h4 {
  margin: 10px 0;
  font-weight: 700;
}
@keyframes expand {
  0% { width: 60px; }
  100% { width: 50%; }
}
header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #c9d7e3;
  border-radius: 50px;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  animation: expand 1.5s ease forwards; /* ESTA ES LA ANIMACIÓN */
  z-index: 1000;
}

header .logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: url("img/logob.png") center/cover no-repeat;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

header nav ul li a {
  text-decoration: none;
  color: #545454;
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 10%;
  background: url("img/fondo_header.png") center/cover no-repeat;
  min-height: 90vh;
}

.hero-content {
  max-width: 600px;

}

.hero h1 {
  font-size: 2.8rem;
  color: #fff;
}

.hero h3 {
  font-size: 1.3rem;
  font-weight: 400;
  color:#fff;
}

.hero p {
  margin: 20px 0;
  line-height: 1.6;
  color:#fff;
}

.hero .btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  background: #c9d7e3;
  text-decoration: none;
  color: #545454;
  font-weight: 600;
  transition: 0.3s;
}
.hero .btn:hover {
  background: #a5bccd;
}

/* Imagen circular extra */
.circle-extra {
  position: absolute;
  left: 5%;
  top: 30%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: url("img/paciente.png") center/cover no-repeat;
}

/* Servicios con círculo */
.servicios {
  text-align: center;
  padding: 80px 10%;
}

.circle-bg {
  background: #fff;
  border-radius: 50%;
  padding: 80px 5%;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.servicio img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
}

.servicio h3 {
  margin-top: 15px;
  font-size: 1rem;
  font-weight: 600;
}

/* Ruta del paciente con círculo */
.ruta {
  text-align: center;
  padding: 100px 10%;
}

.ruta .circle-bg {
  background: #f0efee;
  border-radius: 50%;
  padding: 80px 5%;
}

.ruta .pasos {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 30px;
}

.ruta .paso {
  flex: 1 1 180px;
  margin: 10px;
}

.ruta .paso span {
  font-size: 2rem;
  font-weight: 700;
  color: #c9d7e3;
  display: block;
}

/* Footer */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #738a9b;
  color: white;
  padding: 40px 10%;
}

.footer-info ul {
  list-style-type: none;
  padding: 0;
}

.footer-info ul li {
  margin: 8px 0;
  padding-left: 20px;
  position: relative;
}

.footer-info ul li::before {
  content: "+";
  color: #8dd3c7;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.footer-logo {
  width: 120px;
  height: 120px;
  background: url("img/logo.png") center/cover no-repeat;
}
/* ========== Responsive ========== */

/* Tablets y pantallas medianas */
@media (max-width: 992px) {
  header {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
    animation: expand 1.5s ease forwards; /* Mantener animación */
  }

  header .logo {
    width: 60px;
    height: 60px;
  }

  .hero {
    flex-direction: column;
    padding: 100px 5% 60px;
    text-align: center;
  }

  .circle-extra {
    position: relative;
    left: 0;
    top: 0;
    margin: 20px auto;
  }

  .servicios-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .ruta .pasos {
    flex-direction: column;
    align-items: center;
  }

  footer {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

/* Teléfonos y pantallas pequeñas */
@media (max-width: 576px) {
  header {
    animation: expand 1.5s ease forwards; /* También aquí */
  }

  header nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero h3 {
    font-size: 1rem;
  }

  .servicio img {
    width: 120px;
    height: 120px;
  }

  .ruta .paso span {
    font-size: 1.5rem;
  }

  .footer-logo {
    width: 80px;
    height: 80px;
  }
}
/* ========== PÁGINA DE CONTACTO ========== */

.contacto-contenedor {
  max-width: 500px;
  margin: auto;
  text-align: center;
  padding: 40px 20px;
}

.contacto-contenedor h1 {
  font-size: 2.3rem;
  color: #545454;
}

.contacto-contenedor p {
  margin-bottom: 30px;
  color: #545454;
}

.form-contacto {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #f5f5f5;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.form-contacto label {
  text-align: left;
  font-weight: 600;
  color: #545454;
}

.form-contacto input {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: 'KoHo', sans-serif;
}

.btn-enviar {
  background: #c9d7e3;
  padding: 12px;
  border: none;
  border-radius: 30px;
  font-family: 'KoHo', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #545454;
  cursor: pointer;
  transition: 0.3s;
}

.btn-enviar:hover {
  background: #a5bccd;
}

