

/* Estilos generales del formulario */


.content_miembro_profile{
	padding-top:0px;
}

.section_miembro_profile{
	background-color:#F8B133;
	min-height:100vh;
}
.wrapper_miembro_profile{
	align-content: center;
}

.content_header{
	max-width: 1200px;
    margin: 15px auto;
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#update_member_profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#update_member_profile h1 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}
.miembro_profile_title {
	color: #212777 !important;
}

.form__section {
    margin-bottom: 40px;
}

.form__section__title {
    font-size: 22px;
    font-weight: 500;
    color: #444;
    margin-bottom: 15px;
}

.form__field {
    margin-bottom: 20px;
}

.field__title {
    font-size: 16px;
    font-weight: 400;
    color: #555;
    margin-bottom: 8px;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 16px;
    color: #333;
}

input[type="file"] {
    display: none;
}
input[type="text"] {
	width: 80% !important;
}

.photo-label {
  position: relative;
  display: inline-block;
  cursor: pointer;          /* puntero al pasar */
}

.photo-label img {
  display: block;
  max-width: 150px;         /* o el tamaño que quieras */
  border-radius: 4px;
}

/* Tooltip personalizado */
.photo-label::after {
  content: attr(data-help);
  position: absolute;
  bottom: 100%;             /* encima de la imagen */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.photo-label:hover::after {
  opacity: 1;
}

.form__field--photo img {
    max-width: 250px !important;
    max-height: 250px !important;
    width: 250px !important; /* Asegura que la imagen tenga dimensiones iguales */
    height: 250px !important; /* Asegura que la imagen tenga dimensiones iguales */
    object-fit: cover;
    border-radius: 50%; /* Hace que la imagen sea circular */
    border: 2px solid #ddd;
    margin-bottom: 10px;
}

.field__controls {
    display: flex;
    gap: 10px;
}

.field__controls__button {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.field__controls__button:hover {
    background-color: #ddd;
}

.field__controls__button svg {
    fill: #333;
}

.form__field--submit {
    text-align: center;
}

.container-botones {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Asegura que tome todo el ancho del contenedor padre */
    margin-top: 20px; /* Espacio entre los botones y los campos anteriores */
}

.container-botones .form__field {
    flex: 1;
}

.container-botones .form__field--submit {
    display: flex;
    justify-content: flex-start; /* Alinea el botón de "Actualizar perfil" a la izquierda */
}

.container-botones .form__field--logout {
    display: flex;
    justify-content: flex-end; /* Alinea el botón de "Salir" a la derecha */
}

.button-primary {
    background-color: #0073e6;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
    text-decoration: none; /* Para los enlaces */
    text-align: center;
}

.button-salir {
    background-color: #0073e6;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
    text-decoration: none; /* Para los enlaces */
    text-align: center;
}

.button-primary:hover {
    background-color: #005bb5;
}

.button-salir:hover {
    background-color: #005bb5;
}

.container-botones .form__field--logout .button-primary {
    display: inline-block; /* Asegura que el enlace se comporte como un botón */
    padding: 10px 20px; /* Aplica el mismo padding al enlace */
}

.container-botones .form__field--submit .button-primary {
    display: inline-block; /* Asegura el mismo comportamiento */
}

.form__field--availability input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.form__field--availability label {
    display: flex;
    align-items: center;
}

.form__field--biography textarea {
    width: 100%;
    min-height: 150px;
    padding: 10px;
    font-size: 14px;
}
.form__field--genero select {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.form__field--genero label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.form__field--specialty select, 
.form__field--genero select {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-top: 5px;
}

/* Estilos Curriculum */

/* Estilos generales del campo Curriculum */
.form__field--curriculum {
    position: relative;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fafafa;
}

.form__field--curriculum .field__title {
    font-weight: bold;
    margin-bottom: 10px;
}

.form__field--curriculum input[type="file"] {
    display: none; /* Ocultar el input de archivo */
}

.form__field--curriculum .filename {
    margin-bottom: 10px;
    font-style: italic;
    color: #555;
}

/* Estilos de los botones */
.field__controls {
    display: flex;
    gap: 10px;
}

.field__controls__button {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.field__controls__button:hover {
    background-color: #e0e0e0;
}

.field__controls__button i {
    font-size: 1.5em;
    color: #FF0000;
}

/* Botones específicos */
.button-view {
    /* Estilos adicionales si es necesario */
}

.button-edit {
    /* Estilos adicionales si es necesario */
}

.button-remove {
    /* Estilos adicionales si es necesario */
}

.button-upload {
    /* Estilos adicionales si es necesario */
}

/* Mostrar u ocultar botones según la clase 'has-file' */
.form__field--curriculum.has-file .button-upload {
    display: none;
}

.form__field--curriculum.has-file .button-view,
.form__field--curriculum.has-file .button-edit,
.form__field--curriculum.has-file .button-remove {
    display: flex;
}

.form__field--curriculum:not(.has-file) .button-view,
.form__field--curriculum:not(.has-file) .button-edit,
.form__field--curriculum:not(.has-file) .button-remove {
    display: none;
}

.form__field--curriculum:not(.has-file) .button-upload {
    display: flex;
}

.form__field--curriculum:not(.has-file) .filename {
    display: none;
}

.form__field--curriculum.has-file .filename {
    display: block;
}





/* Visualización Projects */
.field__slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    grid-gap: 20px; /* Espaciado entre los elementos */
    margin-bottom: 40px;
}

.field__slot {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Para que los controles estén en la parte inferior */
    align-items: center;
    position: relative;
    width: 100%;  /* Asegura que el slot ocupe todo el ancho disponible */
    height: auto;  /* Ajusta la altura automáticamente según el contenido */
    border: 1px solid #ddd;  /* Un borde sutil si lo necesitas */
    border-radius: 8px;
    overflow: hidden;  /* Oculta cualquier desbordamiento para mantener las proporciones */
}

.field__slot img {
    width: 100%; /* La imagen ocupa todo el ancho */
    height: auto; /* La altura se ajusta automáticamente */
    object-fit: cover; /* Asegura que la imagen se ajuste sin perder proporción */
    border-radius: 8px;
}

.field__controls {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 10px;
    background-color: #f7f7f7;
    border-top: 1px solid #ddd;
}

.field__slot-wraper {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Para distribuir correctamente la imagen y los controles */
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.field__controls__button {
    text-align: center;
    margin: 5px;
    padding: 8px 12px;
    background-color: #eee;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 14px;
    cursor: pointer;
}

.field__controls__button:hover {
    background-color: #ddd;
}

/* Placeholder para proyectos sin imagen */
.field__slot-wraper:not(.has-file) .file__preview {
    position: relative;
    background-color: #e0e0e0;
    width: 100%;
    height: 250px; /* Puedes ajustar la altura según sea necesario */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.field__slot-wraper:not(.has-file) .file__preview img{
    content: "";
    position: absolute;
  
    width: 70px;
    height: 70px;
    z-index: 10;
}

.field__slot-wraper.has-file .file__preview img {
    display: block;
    width: 100%;  /* Para ocupar todo el espacio horizontal */
    height: auto;  /* Para mantener la proporción de la imagen */
    object-fit: cover; /* Asegura que la imagen no se deforme */
}

.file__preview {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Oculta cualquier desbordamiento que rompa el diseño */
    position: relative;
    background-color: #e0e0e0; /* Mantén un fondo neutro */
}

.field__slot .file__preview img {
    display: block; /* Asegúrate de que la imagen sea visible */
    max-width: 100%; /* Asegúrate de que no exceda el ancho del contenedor */
    max-height: 100%; /* Asegúrate de que no exceda la altura del contenedor */
    object-fit: cover; /* Para que la imagen se recorte si es necesario y se ajuste bien al espacio */
    border-radius: 8px;
}


.button-featured {
    text-align: center;
    margin: 5px;
    padding: 8px 12px;
    background-color: #eee;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 14px;
    cursor: pointer;
}

.button-featured:hover {
    background-color: #e0e0e0;
	color: #FF0000; /* Cambia a rojo al hacer hover */
}

.button-featured i {
    font-size: 1.5em;
    
}

/* Botón destacado en rojo */
.button-featured.is-featured {
    color: #FF0000; /* Rojo para indicar que está destacado */
}

/* Botón de destacar en gris por defecto */
.button-featured {
    color: #ccc; /* Color gris para los proyectos no destacados */
}



/* Media Queries para hacer el diseño responsive */
@media (max-width: 600px) {
    #update_member_profile {
        padding: 15px;
    }

    .form__section {
        margin-bottom: 30px;
    }

    .form__field--photo img {
        max-width: 80px;
        max-height: 80px;
    }
}

/* Loader */

/* HTML: <div class="loader"></div> */
/* Loader Animation */
.loader {
  width: 50px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 8px solid lightblue;
  border-right-color: orange;
  animation: l2 1s infinite linear;
}

@keyframes l2 {
  to { transform: rotate(1turn); }
}

/* Full-screen overlay for loader */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Ensure it's above all other content */
  display: none; /* Hidden by default */
}

/* Editar Nombre del Miembro */

.editable-title {
    display: flex;
    align-items: center;
	justify-content: space-between;
}
.title-input {
    font-size: 2rem;
    font-weight: bold;
    padding: 0.2em;
    margin-right: 0.5em;
}
.edit-title-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 0.5em;
}
.edit-title-btn.editing i {
    color: green;
}


/* Select heredado */

/*--------------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------------*/
/*---------------------------------------@DEFAULT---------------------------------*/
/*--------------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------------*/

.select {
    position:relative;
    z-index:11;

    transition: all calc(1/3*1s) ease-in-out;
}

/*--------------------------------------------------------------------------------*/
/*----------------------------------------@FIELD----------------------------------*/
/*--------------------------------------------------------------------------------*/

.select .select__field {
    width:100%;
    height:auto;
    min-height:unset;

    display:flex;
    flex-direction: row;
    justify-content: space-between;

    padding: 12px 0px;

    font-family:var(--text-family-secondary);
    font-size:var(--text-body-xl-size);
    line-height:var(--text-body-xl-line-height);
    color:var(--color-black-eerie);
    font-weight: 400;

    background-color:transparent;

    border:0;
    border-bottom:3px solid var(--color-gray-platinum);
    border-radius:0;

    box-shadow:none;
    -webkit-box-shadow:none;
    outline: none;

    cursor:pointer;

    transition:all calc(1/3*1s) ease-in-out;
}
.select.focus .select__field {
    border-color:var(--color-black-eerie);
}

.select .select__field .selected-option {
    flex:1;

    margin:0;

    font-family:var(--text-family-secondary);
    font-size:var(--text-body-xl-size);
    line-height:var(--text-body-xl-line-height);
    color:var(--color-black-eerie);
    font-weight: 400;

    transition: all calc(1/3*1s) ease-in-out;
}

.select .select__field p {
    margin:0;

    transition:all calc(1/3*1s) ease-in-out;
}
.select.virgin .select__field p {
    color:var(--color-gray-battleship);
}

.select .select__field__icon {    
    transform-origin: 50%;

    transition: all calc(1/5*1s) ease-in-out;
}
.select[ aria-expanded="false" ] .select__field__icon {
    transform: rotate( 0 )
}
.select[ aria-expanded="true" ] .select__field__icon {
    transform: rotate( -180deg );
}

.select .select__field__icon rect{
    transition: calc(1/3*1s) ease-in-out; 
}
.select.virgin .select__field__icon path{
    stroke:var(--color-gray-battleship) 
}

/*--------------------------------------------------------------------------------*/
/*--------------------------------------@DROPDOWN---------------------------------*/
/*--------------------------------------------------------------------------------*/

.select .select__dropdown {
    width:100%;
    max-height:max( 400px, 50vh );
    
    position:absolute;
    top:100%;
    left:0;
    z-index:11;

    background-color:white;

    transform-origin: 50% 0%;

    overflow-y: scroll;

    transition: all calc(1/5*1s) ease-in-out;
}
.select[ aria-expanded="false" ] .select__dropdown {
    transform: scaleY( 0 );
    opacity:0;
}
.select[ aria-expanded="true" ] .select__dropdown {
    transform: scaleY( 1 );
    opacity: 1;
}

.select .select__dropdown .option {
    padding:20px 24px;

    font-family:var(--text-family-secondary);
    font-size:var(--text-body-xl-size);
    line-height:var(--text-body-xl-line-height);
    color:var(--color-black-eerie);
    font-weight: 400;

    cursor:pointer;

    transition: all .1 ease-in-out;
}
.select .select__dropdown .option:hover {
    color:var(--color-blue-palatinate);
}

.select .select__dropdown .option:first-child {
    padding-top:24px;
}

.select .select__dropdown .option:last-child {
    padding-bottom:24px;
}

/* Botones */
