* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ESTILOS DEL CUERPO */
body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* CONTENEDOR PRINCIPAL */
#contenedor {
  width: 900px;
  max-width: 800px;
  margin: 40px auto;
  background-color: #E5E7E9;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,1.0);
}

/* ENCABEZADO */
header h1 {
  text-align: center;
  color: #2471A3;
  margin-bottom: 20px;
}

/* NAVEGACIÓN */
nav ul {
  list-style: none;
  display: flex;
  justify-content: space-between;  
  padding: 0;
  margin: 0 0 30px 0;
  width: 100%;
}

nav ul li {
  flex: 1;                     
  text-align: center;          
}

nav ul li a {
  display: inline-block;
  width: 100%;
  text-decoration: none;
  color: #5DADE2;
  font-weight: bold;
  padding: 8px 0;
  transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover {
  background-color: #5DADE2;
  color: white;
  border-radius: 4px;
}

.intro-terapia {
  color: ##1A5276;
  background-color: #E8E8E8;;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 15px;
  border-left: 4px;
  border-radius: 6px;

}

/* SECCIONES */
main section h2 {
  text-align: center;
  color: blueviolet;
  margin-bottom: 15px;
}

/* FOOTER */
footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 10px;
  border-top: 1px solid #ccc;
  color: #555;
  font-size: 0.9em;
}

/* ------------------------------------ */
/*  🔄 RESPONSIVE DESIGN (hasta 600px)  */
/* ------------------------------------ */
@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  nav ul li a {
    display: block;
    text-align: center;
    width: 100%;
    padding: 10px 0;
  }

  #contenedor {
    width: 95%;
    padding: 15px;
  }

  header h1 {
    font-size: 1.4rem;
  }

  .intro-terapia {
    font-size: 1rem;
  }

  main section h2 {
    font-size: 1.2rem;
  }

  footer {
    font-size: 0.8em;
  }
}
