* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Helvetica, sans-serif;
  color: rgb(0, 0, 0);
  line-height: 1.4;
}

/* HEADER */
header {
  background-color: rgb(181, 91, 211);
  border-bottom: 1px solid #ddd;
  padding: 1em 2em;
}

/* CONTENEDOR DEL HEADER */
.contenedora {
  display: flex;
  justify-content: space-between;  
  align-items: center;            
  max-width: 1200px;
  margin: 0 auto;
}

/* LOGO */
#logo img {
  height: 60px;  
  width: auto;
}

/* NAVEGACIÓN */
nav ul {
  display: flex;
  list-style: none;  
  gap: 2em;        
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: rgb(255, 255, 255);     
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #fae4ff;  
}

/* SECCIONES GENERALES */
main section {
  text-align: center;
  padding: 4em 2em;
}

h1, h2, h3 {
  margin-bottom: 0.5em;
}

p {
  max-width: 700px;
  margin: 0.5em auto;
}

.sobre-nosotros p {
  max-width: 700px;
  margin: 0.5em auto;
  text-align: left;
}

/* TARJETAS */
.tarjetas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2em;
  margin-top: 2em;
}

.tarjetas article {
  border: 1px solid #4b0076;
  border-radius: 1em;
  padding: 1.5em;
  width: 280px;
  transition: all 0.3s ease;
}

.tarjetas article:hover {
  background-color: #ffffff;
  transform: translateY(-5px);
}

/* IMAGEN PRINCIPAL */
.imagen-principal img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
}

/* FOOTER */
footer {
  background-color: #e9b7f5;
  padding: 2em;
  text-align: center;
}
footer ul li {
  justify-content: center;
  text-align: center;
}

footer .contacto p {
  margin-bottom: 0.5em;
}

footer .redes {
  margin-top: 1em;
  display: flex;
  justify-content: center;
  gap: 1em;
}

footer img {
  width: 24px;
  height: 24px;
  opacity: 0.8;
}

footer img:hover {
  opacity: 1;
}

footer .copyright {
  margin-top: 1em;
  font-size: 0.9em;
  opacity: 0.7;
}

/* CONTACTO */
.contacto ul {
  list-style: none;  
  padding: 0;         
  margin: 0;      
  text-align: left;
}

/* RESPONSIVE */
@media (min-width: 40em) {
  .tarjetas {
    justify-content: space-around;
  }
}

.tarjetas article figure {
  margin-bottom: 1em;
}

.tarjetas article img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

@media (max-width: 48em) {
  .contenedora {
    flex-direction: column;
    align-items: center;
  }

  nav ul {
    flex-direction: column;
    gap: 1em;
    margin-top: 1em;
  }
}
/* SECCIÓN IMPACTO */
.impacto {
  background-color: #7f35ac;
  padding: 60px 0; 
  text-align: center;
}

.impacto h2 {
  color: #ffffff;
  font-size: 2em;
  margin-bottom: 20px;
}

.impacto p {
  color: #000000;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
}

.impacto h3 {
  color: #641b7a;
  font-size: 1em;
  margin-bottom: 20px;
}

.impacto .tarjetas article {
  border: 1px solid #822d9e;
  border-radius: 1em;
  padding: 1.5em;
  width: 280px;
  background-color: #ffffff; 
  transition: all 0.3s ease;
}

