/* 🎨 Estilos mejorados con el buscador en dos filas */
:root {
    --color-fondo: #FFFFFF;
    --color-primario: #D4A017;
    --color-secundario: #A86F00;
    --color-texto: #5A3E00;
    --color-hover: #C98C10;
    --color-tabla-header: #D98C00;
}

/* 🌍 Estilos Generales */
body {
    font-family: 'Arial', sans-serif;
    background: var(--color-fondo);
    margin: 0;
    padding: 0;

    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    color: var(--color-texto);
}

/* 📌 Buscador en la parte superior */
.search-container {
    width: 100%;
    background: white;
    padding: 20px;
    border-bottom: 2px solid var(--color-secundario);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.search-container h1 {
    text-align: center;
    font-size: 24px;
    color: var(--color-texto);
    margin-bottom: 15px;
}

/* 📌 Contenedor de Inputs en dos filas con tamaños uniformes */
.input-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 800px;
    width: 100%;
    justify-content: center;
}

input, select {
    padding: 10px;
    border: 1px solid var(--color-secundario);
    border-radius: 5px;
    font-size: 16px;
    background: white;
    color: var(--color-texto);
    width: 100%;
    box-sizing: border-box;
    height: 40px;
}

/* 🔘 Botón de Búsqueda */
.button-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px; /* Aumenta la separación del botón respecto a los inputs */
}

button {
    padding: 12px;
    padding-top: 12px;
    margin-top: 12px;
    background: var(--color-primario);
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s;
    width: 50%;
    height: 45px;
}

button:hover {
    background: var(--color-hover);
    transform: scale(1.03);
}

/* 📋 Tabla de Resultados - Mejorada */
.results-container {
    width: 100%; /* Ahora ocupa todo el ancho de la pantalla */
    max-width: 100%;
    margin-top: 20px; /* Se reduce el espacio para estar más cerca del buscador */
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 10px;
}

#resultsTable {
    width: 100%; /* La tabla ahora ocupa todo el ancho */
    border-collapse: collapse;
    text-align: left;
    table-layout: fixed;
}

th, td {
    padding: 14px; /* Espaciado mejorado */
    font-size: 20px; /* Texto más grande */
    color: var(--color-texto);
}

th {
    background: var(--color-tabla-header);
    color: white;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 20px;
}

tr {
    background: white; /* Todas las filas con fondo blanco */
}

tr:hover {
    background: rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease;
}

/* 📌 Estilos para enlaces dentro de la tabla */
#resultsTable a {
    text-decoration: none;
    color: var(--color-texto); /* Mantiene el color del texto original */
}

#resultsTable a:visited, #resultsTable a:active {
    color: var(--color-texto); /* Evita cambio de color al ser presionado */
}


/* 📌 Botón Volver - Rectangular y con texto centrado */
.volver-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-volver {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    background: var(--color-primario);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-volver:hover {
    background: var(--color-secundario);
    transform: scale(1.05);
}

.btn-volver:active {
    transform: scale(0.95);
}

/* Levadura.php */
/*  */
/*  */

.levadura-page {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 30px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

/* 📌 Contenedor de Información de la Levadura */
.levadura-container {
    display: flex;
    margin-top: 00px;
    flex-direction: column;
    align-items: center;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    flex-shrink: 0; /* Mantiene el tamaño fijo a la izquierda */
    font-size: 12px;
}

.levadura-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #ccc;
}



/* 📌 Contenedor Principal */
.container {

    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    font-size: 20px;
}


.banner-container {
    width: 100%;
    text-align: center;
    margin-top: 00px; /* Espacio entre el contenido y el banner */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.banner-img {
    width: 100%;
    max-width: 1200px; /* Controla el tamaño máximo del banner */
    height: 200px;
    object-fit: cover;
    border: 1px solid var(--color-secundario);
    border-radius: 10px;
}




/* 📱 Responsive: Ajuste a una sola columna en pantallas pequeñas */
@media (max-width: 768px) {
    .input-container {
        grid-template-columns: 1fr;
    }

    .button-container {
        width: 100%;
    }

    button {
        width: 100%;
    }

 .levadura-page {
        flex-direction: column;
        align-items: center;
    }
    .levadura-container {
        max-width: 100%;
    }
    .container {
        max-width: 100%;
    }
}
