/* Portada que ocupa todo el ancho y altura fija */
.profile-cover {
  width: 100%;
  height: 100%; /* altura completa de la ventana */
  background-attachment: fixed; /* fondo fijo al hacer scroll */
  position: relative; /* mejor usar relative para que el contenido se comporte normalmente */

  /* Flexbox para centrar contenido */
  display: flex;
  justify-content: center; /* horizontal */
  align-items: center;     /* vertical */
}

.contenedor-contenido {
  margin-top: 10%;
  width: 100%;
  max-height: max-content;
  background: transparent;
  /* Opcional: para que el texto o contenido interno tenga algo de padding */
  color: rgb(190, 42, 42);
  border-radius: 8px;
}

/* Contenedor para foto y nombre, centrado y superpuesto */
.profile-avatar-name {
  max-width: 900px;
  margin: -80px auto 40px; /* negativo para superponer sobre portada */
  text-align: center;
  position: relative;
  z-index: 100;
}

.profile-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 5px solid white;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  margin-bottom: 15px;
}

.profile-name {
  font-size: 2rem;
  font-weight: 700;
}

.profile-content {
  margin-top: 20px; /* espacio para no superponerse con portada */
  max-width: 80%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 60px;
  display: flex;
  gap: 30px;
  padding: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
}

/* Perfil a la izquierda con ancho fijo */
.profile-info {
  flex: 0 0 300px; /* ancho fijo 300px */
  background: #2c2c2c;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgb(0 0 0 / 0.1);
  position: sticky;
  top: 100px;
  height: fit-content;
}

/* Obras al lado, con tamaño fijo y scroll si hay muchas */
.profile-works {
  flex: 1 1 auto;
  max-width: 1200; /* tamaño fijo máximo */
  height: auto; /* altura fija para contener las obras */
  background: #2c2c2c;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgb(0 0 0 / 0.1);
  min-width: 0;
  overflow-y: auto; /* scroll vertical si hay muchas obras */
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

/* Cada obra como un cuadrado */
.work-item {
  background: transparent;
  border-radius: 8px;
  width: 225px; /* ancho fijo */
  height: 375px; /* alto fijo para cuadrado */
  box-sizing: border-box;
  display: block;
  padding: 5px;
  margin-bottom: 20px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 1px 3px rgba (0,0,0,0.1);
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.work-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  margin-bottom: 8px;
}

.work-item:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.work-title {
  background-color: transparent;
  width: 100%;
  font-weight: 600;
  font-size: 1.1rem;
  color: #000000;
  border: 2px solid #000000;    /* marco sólido de 2px negro */
  border-radius: 8px;            /* bordes redondeados */
  padding: 6px 10px;             /* espacio interno para que el texto no quede pegado al borde */
  box-sizing: border-box;        /* para que el padding no aumente el ancho total */
}
.obras {
  max-width:10% ;
}
.work-item-link {
  text-decoration: none;
  color: inherit;
  display: inline-block; /* o block/flex según tu diseño */
  margin-bottom: 20px;
}

.work-item-link:hover .work-item {
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: box-shadow 0.3s ease;
  cursor: pointer;
}


.options-bar {

  max-height: 10%;
  width: 100%;
}
.work-meta {
  font-size: 0.85rem;
  color: #666;
}

/* Responsive: en pantallas pequeñas apilar verticalmente */
@media (max-width: 768px) {
  .profile-content {
    flex-wrap: wrap;
  }
  .profile-info, .profile-works {
    flex: 1 1 100%;
    max-width: 100%;
    position: static;
    top: auto;
  }
  .profile-info {
    margin-bottom: 30px;
  }
  .profile-works {
    height: auto;
    max-width: 100%;
    overflow-y: visible;
  }

}