@font-face {
  font-family: 'micro-extend';
  src: url('micro-extend/MicroExtendFLF-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'micro-extend', sans-serif;
}

/* ========================= */
/* MENÚ DE NAVEGACIÓN */
/* ========================= */
.menu .opciones {
  display: flex;
  flex-direction: row;
  gap: 30px;
  justify-content: flex-end;
  margin-top: 15px;
  margin-right: 15px;
}

.menu a {
  text-decoration: none;
  color: black;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.menu a:hover {
  color: darkred;
}

/* ========================= */
/* CABECERA */
/* ========================= */
h1 {
  color: #870000;
  font-size: clamp(1.6rem, 4vw, 4rem);
  text-align: center;
  margin: 2rem 1rem;
}

/* ========================= */
/* SECCIÓN SOBRE MI */
/* ========================= */
.sobre-mi {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 4rem;
  padding: 2rem 4rem;
  color: #000;
}

/* FOTO Y DATOS PERSONALES */
.sobre-mi .foto {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  gap: 1rem;
}

.sobre-mi .foto img {
  width: 300px;
  height: 300px;
  border: 3px solid #000;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: inset -2px -2px #808080, inset 2px 2px #000;
}

.info-personal {
  width: 100%;
  border: 2px solid #000;
  background-color: #c0c0c0;
  box-shadow: inset -2px -2px #808080, inset 2px 2px #000;
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.info-personal p {
  margin: 0.4rem 0;
}

/* DESCRIPCIÓN */
.descripcion {
  flex: 1 1 700px;
  max-width: 900px;
  border: 2px solid #000;
  background-color: #c0c0c0;
  box-shadow: inset -2px -2px #808080, inset 2px 2px #000;
  padding: 2rem;
  border-radius: 4px;
}

.descripcion h2 {
  color: #870000;
  margin-bottom: 1rem;
  font-size: clamp(1.2rem, 2vw, 2rem);
}

.descripcion p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
}

/* ========================= */
/* MEDIA QUERIES RESPONSIVE */
/* ========================= */

/* Tablets: ancho intermedio */
@media (max-width: 1024px) {
  .sobre-mi {
    flex-direction: column;
    align-items: center;
    padding: 2rem;
  }

  .sobre-mi .foto {
    flex: 0 0 auto;
    text-align: center;
  }

  .descripcion {
    flex: 1 1 auto;
    max-width: 100%;
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .sobre-mi {
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
  }

  .sobre-mi .foto img {
    width: 200px;
    height: 200px;
  }

  .info-personal {
    font-size: 0.85rem;
    padding: 0.8rem;
  }

  .descripcion {
    padding: 1rem;
  }

  h1 {
    font-size: clamp(1.4rem, 6vw, 3rem);
  }

  .menu a {
    font-size: 0.5rem; 
  }
}
