/* ======= Estilos Generales ======= */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ======= Barra de Navegación ======= */
.navbar {
  width: 100%;
  background-color: #D65780;
  color: white;
  display: flex;
  justify-content: flex-start; /* Todo hacia la izquierda */
  align-items: center;
  padding: 15px 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.navbar .logo {
  font-size: 1.2rem;
  font-weight: bold;
  margin-right: 40px; /* espacio entre logo y botones */
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.navbar .nav-links li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: color 0.3s ease;
}

.navbar .nav-links li a:hover {
  color: #ffd6e2;
}

/* ======= Sección Home (Hero) ======= */
.home {
  display: none; /* oculto por defecto */
  width: 100%;
  height: 100vh; /* ocupa toda la pantalla */
  background-image: url("https://cdn.cosmos.so/71aeb369-1785-412e-bc51-3f77886d7104?format=webp&w=1168"); /* Imagen grande de fondo */
  background-size: cover;
  background-position: center;
  position: relative;
  margin-top: 70px; /* espacio para navbar fija */
}

.home.activo {
  display: flex; /* visible cuando se selecciona */
  justify-content: center;
  align-items: center;
}

.home .overlay {
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.5); /* oscurece la imagen para mejor lectura */
  padding: 80px;
  border-radius: 15px;
}

.home .overlay h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.home .overlay p {
  font-size: 1.2rem;
}

/* ======= Sección Perfil ======= */
.contenedor {
  display: none;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  max-width: 1000px;
  width: 100%;
  margin: 100px auto 50px;
  padding: 20px;
}

.contenedor.activo {
  display: flex;
}

.texto {
  flex: 2;
  text-align: justify;
  color: #D65780;
}

.texto p {
  margin-bottom: 15px;
  line-height: 1.5;


  
}
.imagen img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Solo afecta la imagen en la sección Perfil */
#perfil .imagen img {
  max-width: 300px;  /* 👈 tamaño más pequeño */
}