body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    color: white;
    padding-top: 1rem;
    font-weight: bold;
    background-image: url("../imgStyles/backAlpha.png");
    background-color: #e9e3e1;
}
.headerTitle{
    color: #2e5e44;
    margin-left: 30px;
    font-size: 110%;
    display:grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding-right: 20px;
}
.headerTitle img{
    width: 30%;
    justify-self: end; 
}
.headerNav{
    background-color: #36816C;
    padding: 1rem;
    text-align: center;
    font-size: 110%;

}

nav a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

footer {
    background-color: #36816C;
    color: white;
    text-align: center;
    padding: 1rem;
    position: fixed;
    width: 100%;
    bottom: 0;
}

.footer-button-link {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
}

main {
    padding: 2rem;
    padding-bottom: 10rem;
    background-image: url("../imgStyles/backAlpha.png");
    position:relative;
}
.pixelart {
  image-rendering: pixelated;
}
.pixelartTam{
    width: 80px; 
    height: auto;
}

.contenedorInv {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.cuadroInv {
    background-color: rgba(94, 186, 97, 0.7); /* verde planta */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cuadroInv img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.cuadroInv img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.nombreInv {
    font-weight: bold;
    margin: 10px 0 5px;
    text-align: center;
}

.infoInv {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 10px;
}

.infoInv div {
    background-color: #d0e8cf;
    padding: 5px;
    text-align: center;
    border-radius: 4px;
    font-size: 0.9em;
}

.accionesInv {
    width: 100%;
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 5px;
}

.accionesInv input[type="number"] {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.accionesInv button {
    padding: 6px;
    background-color: #3b7a57;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.accionesInv button:hover {
    background-color: #2e5e44;
}

.sesioncarro {
  text-align: right;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sesioncarro a {
  background-color: #36816C; 
  color: white;
  padding: 8px 12px;         
  border-radius: 6px;
  display: inline-block; 
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.accionesInv form {
    display: contents;
}

form.searchInv {
    border: 2px solid green;
    width: 500px;
    margin: 20px auto 30px auto; 
    padding: 10px;
    border-radius: 5px;
    box-sizing: border-box;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

form.searchInv input[type="text"] {
    flex-grow: 1;
    padding: 5px;
    font-size: 1em;
}

form.searchInv button {
    background-color: green;
    color: white;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 3px;
    font-weight: bold;
}

form.searchInv button:hover {
    background-color: darkgreen;
}

.adminForm {
    width: 300px;
    margin: 100px auto;
    border: 2px solid #006400;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-family: sans-serif;
}
.adminForm input[type="password"] {
    width: 90%;
    padding: 8px;
    margin-bottom: 10px;
}
.adminForm button {
    background-color: #006400;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
}
.error {
    color: red;
}



.tabla-pedidos {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem auto;
  padding: 1rem;
  width: 95%;
  max-width: 1000px;
}

.titulo-tabla {
  color: brown;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.tabla-admin {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
}

.tabla-admin thead {
  background-color: brown;
  color: white;
}

.tabla-admin th,
.tabla-admin td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #ccc;
}

.tabla-admin tbody tr:nth-child(even) {
  background-color: #efebe9;
}

.tabla-admin tbody tr:nth-child(odd) {
  background-color: #d7ccc8;
}

.tabla-admin tbody tr:hover {
  background-color: #bcaaa4;
}



.tabla-user {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
  border: 2px solid green;
}

.tabla-user thead {
  background-color: #36816C;
  color: white;
}

.tabla-user th,
.tabla-user td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #ccc;
}

.tabla-user tbody tr:nth-child(even) {
  background-color: #efebe9;
}

.tabla-user tbody tr:nth-child(odd) {
  background-color: #3b7a57;
  color: white;
}

.tabla-user tbody tr:hover {
  background-color: #2e664e;
}

.titulo-tabla-user {
  color: #36816C;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}


.toggle-btn {
    background-color: brown;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-left: 20px
}

.toggle-btn:hover {
    background-color: rgb(133, 33, 33);
}


.confirmarCarro {
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.confirmarCarro button {
  background-color: #36816C; 
  color: white;
  padding: 8px 12px;         
  border-radius: 6px;
  display: inline-block; 
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}


.bienvenidaHome {
    background-color: rgba(208, 232, 207, 0.85); /* antes #d0e8cf */
    padding: 2rem;
    border-radius: 10px;
    margin: 0 auto 2rem auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 900px; /* Ancho máximo definido */
}

.tituloHome {
    color: #2e5e44;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.textoHome {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.mapaHome {
    background-color: rgba(238, 246, 237, 0.85); /* antes #eef6ed */
    padding: 1rem;
    border-radius: 10px;
    margin: 0 auto 2rem auto;
    max-width: 900px;
}

.subtituloHome {
    font-size: 1.5rem;
    color: #36816C;
    text-align: center;
    margin-bottom: 1rem;
}

.contenedorMapaHome {
    border: 3px solid #36816C;
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
}

.background-frutas {
    position: absolute;
    bottom: 0;        
    left: 50%;        
    transform: translateX(-50%);
    width: 100vw;    
    height: auto;    
    min-height: 100%; 
    background-image: url("../imgStyles/frutasAlpha1.png");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto; 
    opacity: 0.8;
    pointer-events: none;
    z-index: -1;
    background-color: #e9e3e1;

}


.formLogin {
    background-color: #d0e8cfcc; /* ligera transparencia */
    padding: 2rem;
    border-radius: 10px;
    margin: 1rem auto;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tituloLogin {
    color: #2e5e44;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.etiquetaLogin {
    display: block;
    font-weight: bold;
    margin-top: 1rem;
    color: #2e5e44;
}

.campoLogin {
    width: 100%;
    padding: 0.6rem;
    margin-top: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

.botonLogin {
    margin-top: 1.5rem;
    width: 100%;
    padding: 0.8rem;
    background-color: #36816C;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.botonLogin:hover {
    background-color: #2e5e44;
}

.errorLogin {
    color: red;
    text-align: center;
    font-weight: bold;
}
