/* ==============================
   1. RESET Y ESTILOS GENERALES
   ============================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif; /* Fuente moderna */
    background-color: #f9fafb; /* Fondo claro y minimalista */
    color: #333; /* Color de texto oscuro */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

main {
    width: 100%;
    max-width: 1000px; /* Ancho máximo reducido */
    background-color: #ffffff;
    padding: 15px; /* Padding reducido */
    border-radius: 8px;
    margin-top: 65px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Sombra más ligera */
}

/* ==============================
   2. TÍTULOS Y TEXTO
   ============================== */
h1 {
    text-align: center;
    color: #2d3748; /* Azul grisáceo */
    font-size: 24px; /* Tamaño reducido */
    margin-bottom: 15px; /* Espaciado reducido */
    letter-spacing: 1px; /* Espaciado entre letras */
}

label {
    font-size: 14px; /* Tamaño reducido */
    font-weight: 500;
    color: #4a5568; /* Gris oscuro */
    margin-bottom: 5px; /* Espaciado reducido */
}

/* ==============================
   3. FORMULARIOS Y ENTRADAS
   ============================== */
form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espaciado reducido */
}

input[type="text"],
input[type="number"],
textarea {
    width: 100%;
    max-width: 300px; /* Ancho máximo reducido */
    padding: 8px; /* Padding reducido */
    border: 1px solid #cbd5e0; /* Borde gris claro */
    border-radius: 6px; /* Bordes más suaves */
    font-size: 14px; /* Tamaño reducido */
    transition: border-color 0.3s ease; /* Transición suave */
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus {
    border-color: #4299e1; /* Azul cuando está enfocado */
    outline: none;
}

textarea {
    min-height: 60px; /* Altura reducida */
    resize: vertical;
}

/* ==============================
   4. BOTONES
   ============================== */
button {
    width: auto;
    max-width: 200px;
    padding: 10px 15px; /* Padding reducido */
    border: none;
    background-color: #4299e1; /* Azul claro */
    color: white;
    cursor: pointer;
    border-radius: 6px; /* Bordes más suaves */
    font-size: 14px; /* Tamaño reducido */
    font-weight: 600;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #3182ce; /* Azul más oscuro */
}

/* ==============================
   5. CONTENEDORES DE MATERIALES
   ============================== */
.material-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Espaciado reducido */
    justify-content: flex-start;
}

.material-row {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Espaciado reducido */
    width: calc(25% - 15px); /* Ancho ajustado */
    min-width: 200px; /* Ancho mínimo reducido */
    padding: 10px; /* Padding reducido */
    border: 1px solid #e2e8f0; /* Borde gris claro */
    border-radius: 8px; /* Bordes más suaves */
    background-color: #f7fafc; /* Fondo claro */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05); /* Sombra ligera */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.material-row:hover {
    transform: translateY(-2px); /* Efecto de elevación */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.08);
}

 /* Estilos específicos para subasta */
        .subasta-info {
            background-color: #f7fafc;
            border-left: 4px solid #4299e1;
            padding: 15px;
            margin-bottom: 30px;
            border-radius: 6px;
            box-shadow: 0px 1px 3px rgba(0,0,0,0.1);
        }

        .ofertas-lista {
            list-style: none;
            padding-left: 0;
            margin-top: 10px;
        }

        .ofertas-lista li {
            background-color: #ffffff;
            border: 1px solid #e2e8f0;
            padding: 10px;
            margin-bottom: 8px;
            border-radius: 6px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0px 1px 3px rgba(0,0,0,0.05);
        }

        .ofertas-lista li span.nombre {
            font-weight: 500;
            color: #2d3748;
        }

        .ofertas-lista li span.monto {
            color: #2b6cb0;
            font-weight: 600;
        }
/* ==============================
   6. RESPONSIVE DESIGN
   ============================== */
@media (max-width: 1024px) {
    .material-row {
        width: calc(33.33% - 15px); /* Acomodar 3 por fila */
    }
}

@media (max-width: 768px) {
    .material-row {
        width: calc(50% - 15px); /* Acomodar 2 por fila */
    }
}

@media (max-width: 576px) {
    .material-row {
        width: 100%; /* Una sola columna en móviles */
    }
}