/* Estilos del emcabezado de la página */
:root {
	--lighht-grey: #d9d9d9;
	--light: #ffff;
	--dark: #000;
  --Golden-Yellow : #f3be10;
  --Purple-Heart: #5D3CA6;
  --green: #45a049;
  --red: #ff0000;
}
a {
	text-decoration: none;
}

li {
	list-style: none;
}

nav {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
  color: var(--light);
  background: var(--Purple-Heart);
  display: flex;
  align-items: center; 
  height: 50px;         
  gap: 1rem;   
}
/* Estilos pra el button del nav */
.nav__button {
  background: none;
  border: none;
  margin: 5px;
  cursor: pointer;
  outline: none;
}

/* Estilos para el icono del button */
.nav__button-icon {
  width: 30px;
  height: 30px;
  color: var(--light); 
}

.nav__profile {
	position: relative;
  margin-left: auto;
  padding: 15px;
}

.nav__profile-img {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: contain;
	cursor: pointer;
}

.nav__profile-link {
  position: absolute;
  right: 0;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  background-color: rgba(251, 253, 251, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  width: 160px;
  z-index: 10;
  list-style: none;
  padding: 0;
  margin: 10px;
  top: auto;
}

.nav__profile-link.show {
  opacity: 1;
  pointer-events: auto;
  align-items: left; 
}

.nav__profile-link a {
  display: flex;              
  align-items: center;         
  gap: 8px;                    
  padding: 10px 12px;         
  color: var(--dark);
  font-size: 14px;
}


.nav__profile-link a:hover {
  background: var(--lighht-grey);
}

/* Estilo de la linea que separa el encabezado y  el nav */
.separador {
  background: var(--Golden-Yellow);
  padding: 0.9rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  display: flex;
  text-align: center;
  word-spacing: 2rem; 
  height: 5px;         
  gap: 1rem;  
  margin: 0;
  padding: 0;                                                                                                                                                                                                                                                                                                                                                    
} 

body {
  margin: 0;
  padding: 0;
  font-size: 18px;
  position: relative;
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  background: var(--light); 
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./images/Img.2.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.35;
  z-index: -1;
}

.layout__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  box-sizing: border-box;
}

.layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  flex-wrap: wrap;
}

.layout__image img {
  width: 270px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  max-width: 100%;
}

.layout__section {
  padding: 20px;
  margin: 30px auto; 
  max-width: 800px; 
  background-color: rgba(251, 253, 251, 0.3);
  border-radius: 10px;
  border: 2px solid var(--Purple-Heart);
  box-sizing: border-box;
   
}

.section__title {
  font-size: 25px;
  text-align: start;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 800px;
  margin: auto;
}

.form__grid--columna {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.form__control {
  width: 240px;  
  height: 35px; 
  border-radius: 6px;
  border: 1px solid var(--Purple-Heart);
  box-sizing: border-box;
}
.form__table{
  display: block;
  border: 4px var(--light);
  font-size: 12px;
  overflow: auto;
  width: 100%;
}

.form__table table{
  min-width: 600px;
}

.form__table-campo{
  background-color: #897bb0;
  padding: 4px;
}

.form__table-fila {
  background-color: rgba(137, 123, 176, 1);
}

.form__table-campo--header {
 background-color: var(--Purple-Heart);
 color:var(--light);
 font-size: 14px;
}

.form__input{
  background-color: rgba(137, 123, 176, 1);
  border: none;
  width: 40px;
  height: 20px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .form__table{
    width: 100%;
    overflow-x: auto;
  }
}

.form__button {
  display: flex;
  justify-content: flex-end;
  gap: 15px;               
  padding-right: 30px; 
  margin-top: 30px;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.form__button button {
  padding: 10px 20px;
  color: var(--light);
  font-weight: bold;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.form__button--green {
  background-color: var(--green); 
}
.form__button--purple {
  background-color: var(--Purple-Heart);
}
.form__button--red {
  background-color: var(--red); 
}

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
    align-items: center;
  }

  .layout__image img {
    width: 200px
  }

  .layout__section {
    width: 100%;
  }
  .form__grid{
    grid-template-columns: 1fr;
  }

  .form__button{
    justify-content: center;

  }

  .nav__profile {
    padding: 5px;
  }

  .nav__profile-img {
    width: 20px;
    height: 20px;
  }

  .nav__profile-link {
    width: 120px;
    font-size: 12px;
    margin: 5px;
  }

  .nav__profile-link a {
    padding: 8px 10px;
  }

}



