body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    background-color: #222;
    color: white;
    padding: 10px 14px;
}

.logo {
    height: 70px;
    margin-right: 5px;
}

header h1 {
    flex: 1 1 auto;
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.25;
    text-align: left;
}

.btn-volver-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-left: auto;
    padding: 0.65rem 1.1rem;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    color: #ffffff;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-volver-app:hover,
.btn-volver-app:focus-visible {
    color: #ffffff;
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.5);
    outline: none;
}

.btn-volver-app:focus-visible {
    outline: 3px solid rgba(94, 234, 212, 0.7);
    outline-offset: 2px;
}

.btn-volver-app svg {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    header h1 {
        flex: 1 1 100%;
        order: 3;
        font-size: 1.05rem;
        text-align: center;
    }

    .btn-volver-app {
        margin-left: 0;
        padding: 0.55rem 0.9rem;
        font-size: 0.85rem;
    }
}

main {
    padding: 20px;
}

button {
    padding: 15px 25px;
    font-size: 18px;
    cursor: pointer;
}

#result {
    margin-top: 20px;
    font-size: 20px;
    transition: opacity 0.5s ease;
}

.hidden {
    display: none;
}

#result.inexistente {
    font-size: 36px;
    font-weight: bold;
    color: red;
    text-align: center;
    margin-top: 100px;
}

#result.encontrado {
    font-size: 32px;
    text-align: center;
    margin-top: 80px;
    color: #222;
}

#result.encontrado .precio {
    font-weight: bold;
    color: green;
}

#result.inexistente {
    font-size: 36px;
    font-weight: bold;
    color: red;
    text-align: center;
    margin-top: 100px;
}
button#scanBtn {
    padding: 15px 30px;
    font-size: 20px;
    font-weight: bold;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button#scanBtn:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

#cameraSelect {
    display: none;
    margin-top: 10px;
    font-size: 16px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}


@media (min-width: 768px) {

#result .codigo {
        font-size: 20px;
        margin-top: 10px;            /* o más si querés más espacio */
    }

    #result .descripcion {
        font-size: 20px;
    }

    #result .precio {
        font-size: 30px;
        margin-top: 10px;    /* o más si querés más espacio */
    }
}

@media (max-width: 767px) {

    #result .codigo {
        font-size: 20px;
        margin-top: 10px;            /* o más si querés más espacio */   
    }

    #result .descripcion {
        font-size: 20px;
    }

    #result .precio {
        font-size: 30px;
        margin-top: 10px;  /* o más si querés más espacio */
    }
}