/* ====== RESET ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ====== BODY ====== */
body {
  font-family: "Aptos Text", "Aptos", "Segoe UI", Arial, sans-serif;
  background-color: #fff8d6;
  color: #222;
}

/* ====== HEADER ====== */
header {
  background-color: #f3eab2;
  text-align: center;
  padding: 20px 0;
}

header h1 {
  font-family: "Aptos Display", "Aptos", "Segoe UI", sans-serif;
  font-size: 2.5em;
  color: #2f4f2f;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
}


/* ====== NAVBAR ====== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #7ad37a;
  padding: 10px 40px;
  border-bottom: 2px solid #5aa05a;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav ul li a {
  text-decoration: none;
  color: #103010;
  font-weight: bold;
  font-family: "Aptos Display", "Aptos", sans-serif;
  transition: color 0.2s;
}

nav ul li a:hover {
  color: white;
}

/* ====== MAIN ====== */
main {
  display: flex;
  justify-content: space-between;
  background-color: white;
  margin: 20px 40px;
  padding: 20px;
  gap: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ====== ARTICLE ====== */
article {
  flex: 3;
}

article h2 {
  font-family: "Aptos Display", "Aptos", "Segoe UI", sans-serif;
  font-size: 1.8em;
  text-align: center;
  margin-bottom: 15px;
  color: #234523;
}

article h3 {
  font-family: "Aptos Display", "Aptos", "Segoe UI", sans-serif;
  font-size: 1.3em;
  margin: 20px 0 10px 0;
  color: #2f5f2f;
}

article p {
  text-align: justify;
  line-height: 1.6;
  margin-bottom: 10px;
  color: #333;
}

/* ====== ASIDE ====== */
aside {
  flex: 1;
  background-color: #bdf3bd;
  padding: 15px;
  border-radius: 8px;
}

aside h2 {
  font-family: "Aptos Display", "Aptos", "Segoe UI", sans-serif;
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #234523;
}

aside ul {
  list-style: none;
  padding: 0;
}

aside ul li {
  margin-bottom: 10px;
  font-size: 0.9em;
}

aside ul li a {
  color: #004400;
  text-decoration: none;
  font-family: "Aptos Text", "Aptos", sans-serif;
}

aside ul li a:hover {
  text-decoration: underline;
  color: #2f5f2f;
}

/* ====== PERFIL ====== */
.perfil {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.foto-perfil {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.info-personal {
  list-style: none;
  text-align: left;
  margin: 10px 0 20px 0;
  padding: 0;
}

.info-personal li {
  margin-bottom: 5px;
}

/* ====== FOOTER ====== */
footer {
  background-color: #f3eab2;
  text-align: center;
  padding: 10px;
  font-size: 0.9em;
  color: #333;
  border-top: 2px solid #d8c56d;
}

.footer-logo {
  width: 50px;
  margin-top: 10px;
}
/* ====== IMÁGENES PRINCIPALES Y SECCIONES RESPONSIVAS ====== */
.img-principal,
.img-section {
  display: block;
  margin: 15px auto;
  width: 100%;         /* ocuparán todo el ancho posible */
  max-width: 250px;    /* pero no crecerán demasiado */
  height: auto;        /* mantiene la proporción */
  object-fit: contain;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ====== HEADER IMG RESPONSIVE ====== */
header .header-img {
  width: 100%;
  max-height: 250px;
  height: auto;        /* importante para mantener proporción */
  object-fit: cover;
}
