/* Estilos generales */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.main {
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

.container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: all 0.3s ease;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.icon-title {
    font-size: 2.5rem;
    color: #4a6bff;
    margin-bottom: 15px;
}

h1 {
    font-family: 'Roboto Condensed', sans-serif;
    color: #2c3e50;
    margin: 0;
    font-size: 2rem;
}

p {
    color: #7f8c8d;
    margin-top: 10px;
}

/* Formulario */
.input-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: 500;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

input:focus {
    border-color: #4a6bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.2);
}

input::placeholder {
    color: #bdc3c7;
}

button {
    background-color: #4a6bff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button:hover {
    background-color: #3a5bef;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 107, 255, 0.3);
}

/* Resultado */
.result-container {
    margin-top: 30px;
    text-align: center;
}

.result {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.result h2 {
    margin: 0;
    font-family: 'Roboto Condensed', sans-serif;
}

#productName {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

#productPrice {
    color: #e74c3c;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

#barcode {
    margin: 15px auto;
    max-width: 100%;
    height: auto;
}

#barcodeNumber {
    font-family: monospace;
    font-size: 1rem;
    color: #7f8c8d;
}

.buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.buttons button:first-child {
    background-color: #7f8c8d;
}

.buttons button:first-child:hover {
    background-color: #6c7a7d;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    .buttons {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
}