html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Elimina el scroll horizontal */
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: #fafafa;
  color: #000;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  position: sticky; /* Cambia a absolute para que se superponga */
  width: 100%;
  color: white;
  box-sizing: border-box; /* Para que el padding no afecte el tamaño */
  z-index: 10; /* Asegúrate de que esté por encima del carrusel */
  background: transparent; /* Asegúrate de que no haya fondo */
}

.logo {
  cursor: pointer; /* Cambiar el cursor al pasar por encima */
  flex-shrink: 0; /* Evitar que el logo se reduzca */
}

.logo i {
  font-size: 24px;
  color: #dd1417;

  cursor: pointer; /* Cambiar el cursor al pasar por encima */
}

h1 {
  font-size: 2em;
  font-weight: normal;
  margin: 0;
  color: #dd1417;
}

header a{
  text-decoration: none;

}

.bio-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  margin: 0 auto;
  max-width: 95vw;
  /* max-width: 1200px; */
  flex-wrap: wrap;
  gap: 20px;
}

.bio-content {
  display: flex;
  flex-direction: row;
  /* gap: 20px; */
  align-items: center;
  flex-wrap: wrap;
}

.bio-image {
  width: 100%;
  object-fit: cover;
  margin-top: 2rem;
}

.bio-text {
  flex: 1;
  color: #000;
  font-family: "Montserrat", sans-serif;
  text-align: justify;
}

.bio-text h6{
  line-height: 1.5;
}

.bio-text p {
  font-size: 1em;
  margin-bottom: 15px;
  font-weight: 200;
  text-align: justify;
}
.bio-consultas{
  color: #dd1417;

}
.download-link {
  display: inline-block;
  margin: 15px 0;
  color: #dd1417;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  text-align: left;

}

.download-link:hover {
  color: black;
}

.mail{
  color: black;
  text-decoration: none;
text-align: justify;

}

.mail:hover {
  color: #dd1417;
  text-decoration: none;
}

.separator{
  border: 0;
  height: 1px;
  background: #ccc; /* Color de la línea */
  width: 100%; /* Ancho ajustable */
}

@media (max-width: 768px) {
  
  header h1 {
      font-size: 1.5em;
    }
  .bio-content {
    flex-direction: column;
    text-align: center;
  }

  .bio-image {
    max-width: 100%;
  }

  .download-link {
    margin: 20px auto;
  }
  .bio-image {
    margin-top: 0;
  }
  .bio-text h6{
    text-align: left;
  }
}


footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 20px;
  background-color: #fafafa;
  color: #000;
  box-sizing: border-box;
}
footer h2 {
  color: #dd1417;
  font-size: 1.5em;
}

.social-icons {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  flex: 1;
}

.social-icons i {
  font-size: 24px;
  margin-left: 10px;
  color: #dd1417;
}
.social-icons i:hover {
  color: #000;
}

.social-icons a {
  text-decoration: none;
  color: #000;
}

/* Estilos para el menú de pantalla completa */
.fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9); /* Fondo oscuro */
  z-index: 9999; /* Asegura que el menú esté por encima de otros elementos */
  align-items: center;
  justify-content: center;
}

.fullscreen-menu a{
  text-decoration: none;
}

/* Estilo para el botón de cerrar */
.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 30px;
  color: #dd1417;
  cursor: pointer;
}

/* Asegúrate de que el SVG se ajuste al tamaño del menú */
.menu_svg {
  max-width: 90%; /* Ajusta el ancho máximo al 90% del contenedor */
  max-height: 90%; /* Ajusta el alto máximo al 90% del contenedor */
  width: auto; /* Ajuste automático */
  height: auto; /* Ajuste automático */
}


.menu_link{
  color: #dd1417;
}

/* Estilo para el menú cuando se hace visible */
.fullscreen-menu.show {
  display: flex;
}

h1 {
  opacity: 0;
  animation: fadeInText 1.5s ease-out forwards;
}


@keyframes fadeInText {
  to {
    opacity: 1;
  }
}

/* Transiciones suaves para el menú fullscreen */
.fullscreen-menu {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.fullscreen-menu.show {
  opacity: 1;
  display: flex;
}

.fullscreen-menu.hide {
  opacity: 0;
}

/* === Margen inline solo para escritorio === */
@media (min-width: 1024px) {
  .bio-container {
    max-width: 100%; /* ajusta el ancho general */
    margin-inline: auto; /* centra el bloque */
  }

  .bio-content {
    margin-inline: 9vw; /* margen respirado a los lados */
  }

  .bio-text p {
    text-align: justify;
    margin-inline: 1vw; /* leve margen interior para columnas */
  }

  .bio-image {
    max-width: 100%; /* la imagen no llega a tocar los bordes */
    margin-inline: auto; /* la centra */
    display: block;
  }
}
